rail.utils.catalog_utils_old module

class rail.utils.catalog_utils_old.CatalogConfigBase

Bases: object

Class that wraps the settings of shared configuration parameters needed work with the particular column names in a given catalog type

a_env: list[float] = []
classmethod active_class()

Return the currently active class

Return type:

type[T] | None

classmethod active_tag()

Return the currently active tag

Return type:

str | None

classmethod apply(tag)

Activate a particular tag

Parameters:

tag (str)

Return type:

None

classmethod apply_class(class_name)

Activate a particular class

Parameters:

class_name (str)

Return type:

None

band_err_template: str = ''
classmethod band_name_dict()

Retrun the mapping from band to column names

Return type:

dict[str, str]

band_template: str = ''
bandlist: list[str] = []
classmethod build_base_dict()

Construct the dict of overrides for the shared paramters

Return type:

dict

filter_file_template: str = ''
classmethod get_class(class_name, module_name)

Return a class my name, loading it if needed

Parameters:
  • class_name (str)

  • module_name (str)

Return type:

type[CatalogConfigBase]

hdf5_groupname: str = ''
lsst_err_band_replace: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
maglims: list[float] = []
object_id_col: str = ''
redshift_col: str = ''
ref_band: str = ''
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
classmethod subclasses()

Return the dict of all the sub-classes keyed by tag

Return type:

dict[str, type[CatalogConfigBase]]

classmethod subclasses_by_class()

Return the dict of all the sub-classes keyed by class name

Return type:

dict[str, type[CatalogConfigBase]]

tag: str | None = None
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.ComCamCatalogConfig

Bases: CatalogConfigBase

Configuration for ComCam data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = '{band}_cModelMagErr'
band_template: str = '{band}_cModelMag'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'comcam_{band}'
maglims: list[float] = [26.4, 27.8, 27.1, 26.7, 25.8, 24.6]
redshift_col: str = 'redshift'
ref_band: str = 'i'
tag: str | None = 'com_cam'
class rail.utils.catalog_utils_old.ComCamEuclidCatalogConfig

Bases: CatalogConfigBase

Configuration for ComCam data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = '{band}_gaap1p0MagErr'
classmethod band_name_dict()

Retrun the mapping from band to column names

Return type:

dict[str, str]

band_template: str = '{band}_gaap1p0Mag'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'comcam_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [26.4, 27.8, 27.1, 26.7, 25.8, 24.6]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'com_cam_euclid'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.ComCamEuclidNIRCatalogConfig

Bases: CatalogConfigBase

Configuration for ComCam data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = '{band}_gaap1p0MagErr'
classmethod band_name_dict()

Retrun the mapping from band to column names

Return type:

dict[str, str]

band_template: str = '{band}_gaap1p0Mag'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'comcam_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [26.4, 27.8, 27.1, 26.7, 25.8, 24.6]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'com_cam_euclid_nir'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.ComCamGaap4BandCatalogConfig

Bases: CatalogConfigBase

Configuration for ComCam data

a_env: list[float] = [3.64, 2.7, 2.06, 1.58]
band_err_template: str = '{band}_gaap1p0MagErr'
band_template: str = '{band}_gaap1p0Mag'
bandlist: list[str] = ['g', 'r', 'i', 'z']
filter_file_template: str = 'comcam_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [27.8, 27.1, 26.7, 25.8]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1]
tag: str | None = 'com_cam_gaap_4band'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.ComCamGaapCatalogConfig

Bases: CatalogConfigBase

Configuration for ComCam data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = '{band}_gaap1p0MagErr'
band_template: str = '{band}_gaap1p0Mag'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'comcam_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [26.4, 27.8, 27.1, 26.7, 25.8, 24.6]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'com_cam_gaap'
class rail.utils.catalog_utils_old.ComCamKronCatalogConfig

Bases: CatalogConfigBase

Configuration for ComCam data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = '{band}_kronMagErr'
band_template: str = '{band}_kronMag'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'comcam_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [26.4, 27.8, 27.1, 26.7, 25.8, 24.6]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'com_cam_kron'
class rail.utils.catalog_utils_old.DP1AllFluxesCatalogConfig

Bases: CatalogConfigBase

Configuration for ComCam data

a_env: list[float] = [4.81, 4.81, 4.81, 4.81, 4.81, 4.81, 3.64, 3.64, 3.64, 3.64, 3.64, 3.64, 2.7, 2.7, 2.7, 2.7, 2.7, 2.7, 2.06, 2.06, 2.06, 2.06, 2.06, 2.06, 1.58, 1.58, 1.58, 1.58, 1.58, 1.58, 1.31, 1.31, 1.31, 1.31, 1.31, 1.31]
band_err_template: str = '{band}MagErr'
band_template: str = '{band}Mag'
bandlist: list[str] = ['u_cModel', 'u_kron', 'u_sersic', 'u_gaap1p0', 'u_psf', 'u_gaap3p0', 'g_cModel', 'g_kron', 'g_sersic', 'g_gaap1p0', 'g_psf', 'g_gaap3p0', 'r_cModel', 'r_kron', 'r_sersic', 'r_gaap1p0', 'r_psf', 'r_gaap3p0', 'i_cModel', 'i_kron', 'i_sersic', 'i_gaap1p0', 'i_psf', 'i_gaap3p0', 'z_cModel', 'z_kron', 'z_sersic', 'z_gaap1p0', 'z_psf', 'z_gaap3p0', 'y_cModel', 'y_kron', 'y_sersic', 'y_gaap1p0', 'y_psf', 'y_gaap3p0']
filter_file_template: str = 'DC2LSST_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [24.0, 24.0, 24.0, 24.0, 24.0, 24.0, 27.66, 27.66, 27.66, 27.66, 27.66, 27.66, 27.25, 27.25, 27.25, 27.25, 27.25, 27.25, 26.6, 26.6, 26.6, 26.6, 26.6, 26.6, 26.24, 26.24, 26.24, 26.24, 26.24, 26.24, 25.35, 25.35, 25.35, 25.35, 25.35, 25.35]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i_psf'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'dp1_all'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.Dc2CatalogConfig

Bases: CatalogConfigBase

Configuration for DC2 data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = 'magerr_{band}_cModel_obj'
band_template: str = 'mag_{band}_cModel_obj_dered'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'DC2LSST_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [24.0, 27.66, 27.25, 26.6, 26.24, 25.35]
object_id_col: str = 'objectId_obj'
redshift_col: str = 'redshift_true'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'dc2'
class rail.utils.catalog_utils_old.HscCatalogConfig

Bases: CatalogConfigBase

Configuration for HSC data

a_env: list[float] = [3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = '{band}_cmodel_magerr'
band_template: str = 'HSC{band}_cmodel_dered'
bandlist: list[str] = ['g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'hsc_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [27.66, 27.25, 26.6, 26.24, 25.35]
object_id_col: str = 'object_id'
redshift_col: str = 'specz_redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'hsc'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.Roman3BandCatalogConfig

Bases: CatalogConfigBase

Configuration for Rubin data from Roman / Rubin simulations

a_env: list[float] = [1.14025753, 0.83118224, 0.59966235]
band_err_template: str = 'ROMAN_obs_{band}_err'
band_template: str = 'ROMAN_obs_{band}'
bandlist: list[str] = ['Y106', 'J129', 'H158']
filter_file_template: str = 'roman_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [26.4, 26.4, 26.4]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'Y106'
replace_error_vals: list[float] = [0.1, 0.1, 0.1]
tag: str | None = 'roman_3band'
zp_errors: list[float] = [0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.Roman3BandPlusRubinCatalogConfig

Bases: CatalogConfigBase

Configuration for Roman3Band + Rubin bands in Roman / Rubin simulations

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = 'LSST_obs_{band}_err'
classmethod band_name_dict()

Retrun the mapping from band to column names

Return type:

dict[str, str]

band_template: str = 'LSST_obs_{band}'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'DC2LSST_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [24.0, 27.66, 27.25, 26.6, 26.24, 25.35]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'roman_3band_rubin'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.Roman7BandCatalogConfig

Bases: CatalogConfigBase

Configuration for Rubin data from Roman / Rubin simulations

a_env: list[float] = [1.57491325, 1.14025753, 0.83118224, 0.68098202, 0.59966235, 0.46923204, 0.37072579]
band_err_template: str = 'ROMAN_obs_{band}_err'
band_template: str = 'ROMAN_obs_{band}'
bandlist: list[str] = ['Z087', 'Y106', 'J129', 'W146', 'H158', 'F184', 'K213']
filter_file_template: str = 'roman_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [27.4, 27.4, 27.4, 27.4, 27.4, 27.4, 27.4]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'Y106'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'roman_7band'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.Roman7BandPlusRubinCatalogConfig

Bases: CatalogConfigBase

Configuration for Roman3Band + Rubin bands in Roman / Rubin simulations

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = 'LSST_obs_{band}_err'
classmethod band_name_dict()

Retrun the mapping from band to column names

Return type:

dict[str, str]

band_template: str = 'LSST_obs_{band}'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'DC2LSST_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [24.0, 27.66, 27.25, 26.6, 26.24, 25.35]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'roman_7band_rubin'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.RomanPlusRubinCatalogConfig

Bases: CatalogConfigBase

Configuration for Roman + Rubin bands in Roman / Rubin simulations

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = 'LSST_obs_{band}_err'
classmethod band_name_dict()

Retrun the mapping from band to column names

Return type:

dict[str, str]

band_template: str = 'LSST_obs_{band}'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'DC2LSST_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [24.0, 27.66, 27.25, 26.6, 26.24, 25.35]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'roman_plus_rubin'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
class rail.utils.catalog_utils_old.RomanRubinCatalogConfig

Bases: CatalogConfigBase

Configuration for Rubin data from Roman / Rubin simulations

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = 'LSST_obs_{band}_err'
band_template: str = 'LSST_obs_{band}'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'DC2LSST_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [24.0, 27.66, 27.25, 26.6, 26.24, 25.35]
object_id_col: str = 'objectId'
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'roman_rubin'
class rail.utils.catalog_utils_old.RubinCatalogConfig

Bases: CatalogConfigBase

Configuration for Rubin project data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06, 1.58, 1.31]
band_err_template: str = 'LSST_obs_{band}_err'
band_template: str = 'LSST_obs_{band}'
bandlist: list[str] = ['u', 'g', 'r', 'i', 'z', 'y']
filter_file_template: str = 'DC2LSST_{band}'
hdf5_groupname: str = ''
maglims: list[float] = [24.0, 27.66, 27.25, 26.6, 26.24, 25.35]
object_id_col: str = 'objectId'
redshift_col: str = 'true_redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
tag: str | None = 'rubin'
class rail.utils.catalog_utils_old.RubinFLCatalogConfig

Bases: CatalogConfigBase

Configuration for Rubin first look data

a_env: list[float] = [4.81, 3.64, 2.7, 2.06]
band_err_template: str = '{band}_cModelMagErr'
band_template: str = '{band}_cModelMag'
bandlist: list[str] = ['u', 'g', 'r', 'i']
filter_file_template: str = 'DC2LSST_{band}'
maglims: list[float] = [26.4, 27.8, 27.1, 26.7]
redshift_col: str = 'redshift'
ref_band: str = 'i'
replace_error_vals: list[float] = [0.1, 0.1, 0.1, 0.1]
tag: str | None = 'rubin_fl'
zp_errors: list[float] = [0.1, 0.1, 0.1, 0.1]
rail.utils.catalog_utils_old.apply_defaults(tag)

Activate a particular tag

Parameters:

tag (str)

Return type:

None