Gaussian Simulations ‐ Function Library - danecross/SOM-photoz-BFD GitHub Wiki

GaussianSims.__init__(outpath, sky_cov, full_catalog, wide_SOM_bands, n_realizations=100, deep_flux_col_fmt="Mf_", use_covariances=True)

Object for generating Gaussian flux simulations.

Args:

  • sim_save (str): path to save the simulations (recommend scratch, this file can be very large)
  • sky_cov (str): path to healpix map of average error over the footprint*
  • full_catalog (str): path to the deep field catalog to be used
  • wide_SOM_bands (str): wide bands to simulate
  • n_realizations (int, opt): number of wide realizations for each deep field galaxy
  • deep_flux_col_fmt (str, opt): starting string for the fluxes to be used for simulation
  • use_covariances (bool, opt): flag to use covariances (square of the error)

*the sky covariance map should be a pickled healpix map

Returns: Initialized GaussianSims object

generate_realizations(mask_SN=(7,200))

Generates Gaussian flux simulations.

Args:

  • mask_SN (tuple or None, opt): specification of the Signal-to-Noise limits of the simulations

Output:

  • None. Saves the resulting simulations in the sim_save path (if sim_save not specified, saves it to the outpath)