yt.analysis_modules.cosmological_observation.light_cone.light_cone.LightCone.project_light_cone

LightCone.project_light_cone(field_of_view, image_resolution, field, weight_field=None, photon_field=False, save_stack=True, save_final_image=True, save_slice_images=False, cmap_name='algae', njobs=1, dynamic=False)[source]

Create projections for light cone, then add them together.

Parameters:

field_of_view : YTQuantity or tuple of (float, str)

The field of view of the image and the units.

image_resolution : YTQuantity or tuple of (float, str)

The size of each image pixel and the units.

field : string

The projected field.

weight_field : string

the weight field of the projection. This has the same meaning as in standard projections. Default: None.

photon_field : bool

if True, the projection data for each slice is decremented by 4 Pi R^2`, where R is the luminosity distance between the observer and the slice redshift. Default: False.

save_stack : bool

if True, the light cone data including each individual slice is written to an hdf5 file. Default: True.

save_final_image : bool

if True, save an image of the final light cone projection. Default: True.

save_slice_images : bool

save images for each individual projection slice. Default: False.

cmap_name : string

color map for images. Default: “algae”.

njobs : int

The number of parallel jobs over which the light cone projection will be split. Choose -1 for one processor per individual projection and 1 to have all processors work together on each projection. Default: 1.

dynamic : bool

If True, use dynamic load balancing to create the projections. Default: False.