yt.data_objects.construction_data_containers.
YTQuadTreeProjBase
(field, axis, weight_field=None, center=None, ds=None, data_source=None, style=None, method='integrate', field_parameters=None)[source]¶This is a data object corresponding to a line integral through the simulation domain.
This object is typically accessed through the proj object that hangs off of index objects. YTQuadTreeProj is a projection of a field along an axis. The field can have an associated weight_field, in which case the values are multiplied by a weight before being summed, and then divided by the sum of that weight; the two fundamental modes of operating are direct line integral (no weighting) and average along a line of sight (weighting.) What makes proj different from the standard projection mechanism is that it utilizes a quadtree data structure, rather than the old mechanism for projections. It will not run in parallel, but serial runs should be substantially faster. Note also that lines of sight are integrated at every projected finest-level cell.
Parameters: | field : string
axis : int
weight_field : string
center : array_like, optional
data_source : yt.data_objects.data_containers.YTSelectionContainer, optional
method : string, optional
style : string, optional
field_parameters : dict of items
|
---|
Examples
>>> ds = load("RedshiftOutput0005")
>>> prj = ds.proj("density", 0)
>>> print proj["density"]
Attributes
Methods