trident.light_ray.LightRay.create_cosmology_splice

LightRay.create_cosmology_splice(near_redshift, far_redshift, minimal=True, max_box_fraction=1.0, deltaz_min=0.0, time_data=True, redshift_data=True)

Create list of datasets capable of spanning a redshift interval.

For cosmological simulations, the physical width of the simulation box corresponds to some Delta z, which varies with redshift. Using this logic, one can stitch together a series of datasets to create a continuous volume or length element from one redshift to another. This method will return such a list

Parameters
  • near_redshift (float) – The nearest (lowest) redshift in the cosmology splice list.

  • far_redshift (float) – The furthest (highest) redshift in the cosmology splice list.

  • minimal (bool) – If True, the minimum number of datasets is used to connect the initial and final redshift. If false, the list will contain as many entries as possible within the redshift interval. Default: True.

  • max_box_fraction (float) – In terms of the size of the domain, the maximum length a light ray segment can be in order to span the redshift interval from one dataset to another. If using a zoom-in simulation, this parameter can be set to the length of the high resolution region so as to limit ray segments to that size. If the high resolution region is not cubical, the smallest side should be used. Default: 1.0 (the size of the box)

  • deltaz_min (float) – Specifies the minimum delta z between consecutive datasets in the returned list. Default: 0.0.

  • time_data (bool) – Whether or not to include time outputs when gathering datasets for time series. Default: True.

  • redshift_data (bool) – Whether or not to include redshift outputs when gathering datasets for time series. Default: True.

Examples

>>> co = CosmologySplice("enzo_tiny_cosmology/32Mpc_32.enzo", "Enzo")
>>> cosmo = co.create_cosmology_splice(1.0, 0.0)