yt.visualization.volume_rendering.camera.
allsky_projection
(ds, center, radius, nside, field, weight=None, inner_radius=10, rotation=None, data_source=None)[source]¶Project through a dataset, through an allsky-method decomposition from HEALpix, and return the image plane.
This function will accept the necessary items to integrate through a volume over 4pi and return the integrated field of view to the user. Note that if a weight is supplied, it will multiply the pre-interpolated values together.
Parameters: | ds : ~yt.data_objects.api.Dataset
center : array_like
radius : float or list of floats
nside : int
field : string
weight : optional, default None
inner_radius : optional, float, defaults to 0.05
rotation : optional, 3x3 array
data_source : data container, default None
|
---|---|
Returns: | image : array
|
Examples
>>> image = allsky_projection(ds, [0.5, 0.5, 0.5], 1.0/ds['mpc'],
32, "temperature", "density")
>>> plot_allsky_healpix(image, 32, "healpix.png")