synthesizer.load_data.load_flares

A submodule for loading FLARES data into Synthesizer.

Example usage:

from synthesizer.load_data import load_FLARES

# Load FLARES data galaxies = load_FLARES(

master_file=”path/to/master_file.hdf5”, region=”region_name”, tag=”snapshot_tag”, read_abundances=True,

)

Functions

synthesizer.load_data.load_flares.load_FLARES(master_file, region, tag, read_abundances=False, dtype=<class 'numpy.float64'>)[source]

Load FLARES galaxies from a FLARES master file.

Parameters:
  • master_file (str) – The path to the master file.

  • region (str) – The region to load data from.

  • tag (str) – The snapshot tag to load data from.

  • read_abundances (bool) – Whether to read the abundances of the stars. If True, the oxygen and hydrogen abundances are loaded. If False, only the metallicity is loaded.

  • dtype (type) – The numpy dtype to cast all numerical particle arrays to. Defaults to np.float64 to match standard SPS grids. Set to np.float32 (with Grid(use_precision=np.float32)) to reduce memory.

Returns:

ParticleGalaxy object containing stars

Return type:

galaxies (object)