yt.geometry.coordinates.coordinate_handler module

class yt.geometry.coordinates.coordinate_handler.CoordinateHandler(ds, ordering: tuple[str, str, str] | None = None)[source]

Bases: ABC

property axis_id
property axis_name
abstract convert_from_cartesian(coord)[source]
abstract convert_from_cylindrical(coord)[source]
abstract convert_from_spherical(coord)[source]
abstract convert_to_cartesian(coord)[source]
abstract convert_to_cylindrical(coord)[source]
abstract convert_to_spherical(coord)[source]
property data_projection
property data_transform
distance(start, end)[source]
property image_axis_name
name: str
abstract property period
abstract pixelize(dimension, data_source, field, bounds, size, antialias=True, periodic=True, *, return_mask: Literal[False]) ndarray[Any, dtype[float64]][source]
abstract pixelize(dimension, data_source, field, bounds, size, antialias=True, periodic=True, *, return_mask: Literal[True]) tuple[ndarray[Any, dtype[float64]], ndarray[Any, dtype[bool]]]
abstract pixelize_line(field, start_point, end_point, npoints)[source]
sanitize_center(center, axis)[source]
sanitize_depth(depth)[source]
sanitize_width(axis, width, depth)[source]
abstract setup_fields()[source]
property x_axis
property y_axis
yt.geometry.coordinates.coordinate_handler.cartesian_to_cylindrical(coord, center=(0, 0, 0))[source]
yt.geometry.coordinates.coordinate_handler.cylindrical_to_cartesian(coord, center=(0, 0, 0))[source]
yt.geometry.coordinates.coordinate_handler.validate_sequence_width(width, ds, unit=None)[source]