apply_reduced_shear_to_ellipticities()
apply_shear_to_ellipticities()
calculate_flux_magnification()
calculate_size_magnification()
distortion_to_moments()
distortion_to_shear()
fwhm_to_sigma()
moments_to_distortion()
moments_to_shear()
shear_to_distortion()
shear_to_moments()
shear_to_reduced_shear()
sigma_to_fwhm()
Prints the citation for the model with the given name.
name – model name for which to print the citation
Bases: object
This class is the main interface to the model. It provides methods to generate mock galaxy catalogs and to cite the model.
Generates a mock galaxy catalog using the model and configuration specified. The parameter model_index is used to select a specific set of model parameters from the ABC posterior. If a list of model parameters is provided, catalogs are generated for each set of parameters. The saved catalogs and images are named according to the file_name and model_index.
Intrinsic ucat galaxy catalog: f”{file_name}_{index}_{band}_ucat.gal.cat” Intrinsic ucat star catalog: f”{file_name}_{index}_{band}_ucat.star.cat” Output catalog: f”{file_name}_{index}_{band}_se.cat” Output image: f”{file_name}_{index}_{band}_image.fits” Segmentation map: f”{file_name}_{index}_{band}_se_seg.h5” Background map: f”{file_name}_{index}_{band}_se_bkg.h5”
mode to use for generating the catalog, either “intrinsic”, “emu”, “image”, “image+SE”, “config_file”
dictionary or path to a configuration file to use for generating the catalog (only used if mode=”config_file”)
index of the model parameters to use for generating the catalog
filename of the catalog and images to generate
additional keyword arguments to pass to the workflow (overwrites the values from the model parameters and config file)
Loads the catalogs generated by the model.
output_format – format of the output, either “rec”, “df” or “fits”
model_index – index of the model parameters to use for loading the catalogs
combine – if True, combines the catalogs from all bands into a single catalog
catalogs in the specified format
Loads the ABC posterior for the given model.
name – name of the model
ABC posterior as a structured numpy array
Loads the correct configuration for the given model and mode. If mode is “config_file”, the configuration is loaded from the given file. Otherwise, the configuration is loaded based on the model name and mode.
name – name of the model
mode – mode for which to load the configuration (either “intrinsic”, “emu”, “image”, “config_file”)
config_file – path to a configuration file to use
module name of the configuration to use
Bases: object
This class is the main interface to the model. It provides methods to generate mock galaxy catalogs and to cite the model.
Generates a mock galaxy catalog using the model and configuration specified. The parameter model_index is used to select a specific set of model parameters from the ABC posterior. If a list of model parameters is provided, catalogs are generated for each set of parameters. The saved catalogs and images are named according to the file_name and model_index.
Intrinsic ucat galaxy catalog: f”{file_name}_{index}_{band}_ucat.gal.cat” Intrinsic ucat star catalog: f”{file_name}_{index}_{band}_ucat.star.cat” Output catalog: f”{file_name}_{index}_{band}_se.cat” Output image: f”{file_name}_{index}_{band}_image.fits” Segmentation map: f”{file_name}_{index}_{band}_se_seg.h5” Background map: f”{file_name}_{index}_{band}_se_bkg.h5”
mode to use for generating the catalog, either “intrinsic”, “emu”, “image”, “image+SE”, “config_file”
dictionary or path to a configuration file to use for generating the catalog (only used if mode=”config_file”)
index of the model parameters to use for generating the catalog
filename of the catalog and images to generate
additional keyword arguments to pass to the workflow (overwrites the values from the model parameters and config file)
Loads the catalogs generated by the model.
output_format – format of the output, either “rec”, “df” or “fits”
model_index – index of the model parameters to use for loading the catalogs
combine – if True, combines the catalogs from all bands into a single catalog
catalogs in the specified format