yt.analysis_modules.sunrise_export.sunrise_exporter.export_to_sunrise_from_halolist

yt.analysis_modules.sunrise_export.sunrise_exporter.export_to_sunrise_from_halolist(ds, fni, star_particle_type, halo_list, domains_list=None, **kwargs)[source]

Using the center of mass and the virial radius for a halo, calculate the regions to extract for sunrise. The regions are defined on the root grid, and so individual octs may span a large range encompassing many halos and subhalos. Instead of repeating the oct extraction for each halo, arrange halos such that we only calculate what we need to.

Parameters:

ds : Dataset

The dataset to convert. We use the root grid to specify the domain.

fni : string

The filename of the output FITS file, but depends on the domain. The dle and dre are appended to the name.

particle_type : int

The particle index for stars

halo_list : list of halo objects

The halo list objects must have halo.CoM and halo.Rvir, both of which are assumed to be in unitary length units.

frvir (optional) : float

Ensure that CoM +/- frvir*Rvir is contained within each domain

domains_list (optiona): dict of halos :

Organize halos into a dict of domains. Keys are DLE/DRE tuple values are a list of halos