yt.data_objects.selection_data_containers.
YTCuttingPlaneBase
(normal, center, north_vector=None, ds=None, field_parameters=None, data_source=None)[source]¶This is a data object corresponding to an oblique slice through the simulation domain.
This object is typically accessed through the cutting object that hangs off of index objects. A cutting plane is an oblique plane through the data, defined by a normal vector and a coordinate. It attempts to guess an ‘north’ vector, which can be overridden, and then it pixelizes the appropriate data onto the plane without interpolation.
Parameters: | normal : array_like
center : array_like
north_vector: array_like, optional :
ds: Dataset, optional :
field_parameters : dictionary
data_source: optional :
|
---|
Notes
This data object in particular can be somewhat expensive to create. It’s also important to note that unlike the other 2D data objects, this object provides px, py, pz, as some cells may have a height from the plane.
Examples
>>> import yt
>>> ds = yt.load("RedshiftOutput0005")
>>> cp = ds.cutting([0.1, 0.2, -0.9], [0.5, 0.42, 0.6])
>>> print cp["Density"]
Attributes
Methods