yt.data_objects.selection_data_containers.
YTDiskBase
(center, normal, radius, height, fields=None, ds=None, field_parameters=None, data_source=None)[source]¶By providing a center, a normal, a radius and a height we can define a cylinder of any proportion. Only cells whose centers are within the cylinder will be selected.
Parameters: | center : array_like
normal : array_like
radius : float
height : float
fields : array of fields, optional
ds: Dataset, optional :
field_parameters : dictionary
data_source: optional :
|
---|
Examples
>>> import yt
>>> ds = yt.load("RedshiftOutput0005")
>>> c = [0.5,0.5,0.5]
>>> disk = ds.disk(c, [1,0,0], (1, 'kpc'), (10, 'kpc'))
Attributes
Methods