Skip to content

Commit

Permalink
add hdf5_groupname to catalog utils
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Jul 29, 2024
1 parent ddfcc62 commit d56f4b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rail/utils/catalog_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def _build_base_dict(cls):
ref_band=cls._build_ref_band(cls.ref_band),
redshift_col=cls.redshift_col,
nondetect_val=np.nan,
hdf5_groupname=cls.hdf5_groupname,
)
return base_dict

Expand All @@ -92,6 +93,7 @@ class HscCatalogConfig(CatalogConfigBase):
band_err_template = '{band}_cmodel_magerr'
ref_band = 'i'
redshift_col = 'specz_redshift'
hdf5_groupname = ''


class Dc2CatalogConfig(CatalogConfigBase):
Expand All @@ -103,7 +105,8 @@ class Dc2CatalogConfig(CatalogConfigBase):
band_err_template = "mag_err_{band}_lsst"
ref_band = 'i'
redshift_col='true_redshift'

hdf5_groupname = ''


class RubinCatalogConfig(CatalogConfigBase):

Expand All @@ -114,6 +117,7 @@ class RubinCatalogConfig(CatalogConfigBase):
band_err_template ="LSST_obs_{band}_err"
ref_band = 'i'
redshift_col='true_redshift'
hdf5_groupname = ''


class RomanRubinCatalogConfig(CatalogConfigBase):
Expand All @@ -125,6 +129,7 @@ class RomanRubinCatalogConfig(CatalogConfigBase):
band_err_template ="LSST_obs_{band}_err"
ref_band = 'i'
redshift_col='redshift'
hdf5_groupname = ''


apply_defaults = CatalogConfigBase.apply

0 comments on commit d56f4b3

Please sign in to comment.