yt.geometry.coordinates.spec_cube_coordinates module

Definitions for spectral cube coordinate systems

class yt.geometry.coordinates.spec_cube_coordinates.SpectralCubeCoordinateHandler(ds, ordering=('x', 'y', 'z'))[source]

Bases: yt.geometry.coordinates.cartesian_coordinates.CartesianCoordinateHandler

axis_id
axis_name
convert_from_cartesian(coord)
convert_from_cylindrical(coord)[source]
convert_from_spherical(coord)
convert_to_cartesian(coord)
convert_to_cylindrical(coord)[source]
convert_to_spherical(coord)
distance(start, end)
image_axis_name
name = 'spectral_cube'
period
pixelize(dimension, data_source, field, bounds, size, antialias=True, periodic=True)

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)

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]
x_axis
y_axis