yt.geometry.coordinates.coordinate_handler module

Coordinate handler base class.

class yt.geometry.coordinates.coordinate_handler.CoordinateHandler(ds, ordering)[source]

Bases: object

axis_id
axis_name
convert_from_cartesian(coord)[source]
convert_from_cylindrical(coord)[source]
convert_from_spherical(coord)[source]
convert_to_cartesian(coord)[source]
convert_to_cylindrical(coord)[source]
convert_to_spherical(coord)[source]
distance(start, end)[source]
image_axis_name
name = None
period
pixelize(dimension, data_source, field, bounds, size, antialias=True)[source]
pixelize_line(field, start_point, end_point, npoints)[source]
sanitize_center(center, axis)[source]
sanitize_depth(depth)[source]
sanitize_width(axis, width, depth)[source]
setup_fields()[source]
x_axis
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_iterable_width(width, ds, unit=None)[source]