yt.geometry.coordinates.cartesian_coordinates module

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

Bases: CoordinateHandler

property axis_id
property 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]
property data_projection
property data_transform
distance(start, end)
property image_axis_name
name: str = 'cartesian'
property period
pixelize(dimension, data_source, field, bounds, size, antialias=True, periodic=True, *, return_mask=False)[source]

Method for pixelizing datasets in preparation for two-dimensional image plots. Relies on several sampling routines written in cython

pixelize_line(field, start_point, end_point, npoints)[source]

Method for sampling datasets along a line in preparation for one-dimensional line plots. For UnstructuredMesh, relies on a sampling routine written in cython

sanitize_center(center, axis)
sanitize_depth(depth)
sanitize_width(axis, width, depth)
setup_fields(registry)[source]
property x_axis
property y_axis
yt.geometry.coordinates.cartesian_coordinates.all_data(data, ptype, fields, kdtree=False)[source]