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 usedwide_SOM_bands(str): wide bands to simulaten_realizations(int, opt): number of wide realizations for each deep field galaxydeep_flux_col_fmt(str, opt): starting string for the fluxes to be used for simulationuse_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_savepath (ifsim_savenot specified, saves it to the outpath)