yt.data_objects.selection_data_containers.
YTSliceBase
(axis, coord, center=None, ds=None, field_parameters=None, data_source=None)[source]¶This is a data object corresponding to a slice through the simulation domain.
This object is typically accessed through the slice object that hangs off of index objects. Slice is an orthogonal slice through the data, taking all the points at the finest resolution available and then indexing them. It is more appropriately thought of as a slice ‘operator’ than an object, however, as its field and coordinate can both change.
Parameters: | axis : int or char
coord : float
center : array_like, optional
ds: Dataset, optional :
field_parameters : dictionary
data_source: optional :
|
---|
Examples
>>> import yt
>>> ds = yt.load("RedshiftOutput0005")
>>> slice = ds.slice(0, 0.25)
>>> print slice["Density"]
Attributes
Methods