From a45dccd9421eb971df6dd03c23a3efc29efc903b Mon Sep 17 00:00:00 2001 From: Denys Savchenko <56398430+dsavchenko@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:48:33 +0100 Subject: [PATCH] add phosphoros filters (#722) --- cdci_data_analysis/analysis/parameters.py | 19 +- .../config_dir/phosphoros_filters.json | 187 ++++++++++++++++++ 2 files changed, 193 insertions(+), 13 deletions(-) create mode 100644 cdci_data_analysis/config_dir/phosphoros_filters.json diff --git a/cdci_data_analysis/analysis/parameters.py b/cdci_data_analysis/analysis/parameters.py index c11d1e6b..30671a4c 100644 --- a/cdci_data_analysis/analysis/parameters.py +++ b/cdci_data_analysis/analysis/parameters.py @@ -45,6 +45,7 @@ from jsonschema import validate, ValidationError, SchemaError import json +from cdci_data_analysis import conf_dir logger = logging.getLogger(__name__) @@ -1154,6 +1155,9 @@ def get_default_value(self): return json.dumps(self.value, sort_keys=True) +with open(os.path.join(conf_dir, "phosphoros_filters.json"), 'r') as fd: + phosphoros_filters = json.load(fd) + class PhosphorosFiltersTable(StructuredParameter): owl_uris = ('http://odahub.io/ontology#PhosphorosFiltersTable') @@ -1163,19 +1167,8 @@ def __init__(self, value, name=None, extra_metadata=None): # If there is no additional check, this would allow to avoid even having the class. # # But for the time being, as agreed, we will keep the hardcoded dedicated class. - filter_list = ["CFHT|MegaCam.g", "CFHT|MegaCam.gri", "CFHT|MegaCam.i", "CFHT|MegaCam.r", "CFHT|MegaCam.u", "CFHT|MegaCam.z", - "CTIO|DECam.Y", "CTIO|DECam.g", "CTIO|DECam.i", "CTIO|DECam.r", "CTIO|DECam.u", "CTIO|DECam.z", - "Euclid|NISP.H", "Euclid|NISP.J", "Euclid|NISP.Y", "Euclid|VIS.vis", - "GAIA|GAIA3.G", "GAIA|GAIA3.Gbp", "GAIA|GAIA3.Grp", - "GALEX|GALEX.FUV", "GALEX|GALEX.NUV", - "LSST|LSST.g", "LSST|LSST.i", "LSST|LSST.r", "LSST|LSST.u", "LSST|LSST.y", "LSST|LSST.z", - "PAN-STARRS|PS1.g", "PAN-STARRS|PS1.i", "PAN-STARRS|PS1.open", "PAN-STARRS|PS1.r", "PAN-STARRS|PS1.w", "PAN-STARRS|PS1.y", "PAN-STARRS|PS1.z", - "VIRCAM|VISTA.H", "VIRCAM|VISTA.J", "VIRCAM|VISTA.Ks", "VIRCAM|VISTA.NB118", "VIRCAM|VISTA.NB980", "VIRCAM|VISTA.NB990", "VIRCAM|VISTA.Y", "VIRCAM|VISTA.Z", - "SLOAN|SDSS.g", "SLOAN|SDSS.i", "SLOAN|SDSS.r", "SLOAN|SDSS.u", "SLOAN|SDSS.z", - "Subaru|HSC.Y", "Subaru|HSC.g", "Subaru|HSC.i", "Subaru|HSC.r", "Subaru|HSC.z", - "UKIRT|WFCAM.H", "UKIRT|WFCAM.J", "UKIRT|WFCAM.K", "UKIRT|WFCAM.Y", "UKIRT|WFCAM.Z", - "WISE|WISE.W1", "WISE|WISE.W2", "WISE|WISE.W3", "WISE|WISE.W4"] - + filter_list = phosphoros_filters + schema = {"type": "object", "properties": { "filter": {"type": "array", diff --git a/cdci_data_analysis/config_dir/phosphoros_filters.json b/cdci_data_analysis/config_dir/phosphoros_filters.json new file mode 100644 index 00000000..2be85dd8 --- /dev/null +++ b/cdci_data_analysis/config_dir/phosphoros_filters.json @@ -0,0 +1,187 @@ +[ + "CFHT|MegaCam.g", + "CFHT|MegaCam.gri", + "CFHT|MegaCam.i", + "CFHT|MegaCam.r", + "CFHT|MegaCam.u", + "CFHT|MegaCam.z", + "CTIO|DECam.Y", + "CTIO|DECam.g", + "CTIO|DECam.i", + "CTIO|DECam.r", + "CTIO|DECam.u", + "CTIO|DECam.z", + "Euclid|NISP.H", + "Euclid|NISP.J", + "Euclid|NISP.Y", + "Euclid|VIS.vis", + "GAIA|GAIA3.G", + "GAIA|GAIA3.Gbp", + "GAIA|GAIA3.Grp", + "GALEX|GALEX.FUV", + "GALEX|GALEX.NUV", + "LSST|LSST.g", + "LSST|LSST.i", + "LSST|LSST.r", + "LSST|LSST.u", + "LSST|LSST.y", + "LSST|LSST.z", + "PAN-STARRS|PS1.g", + "PAN-STARRS|PS1.i", + "PAN-STARRS|PS1.open", + "PAN-STARRS|PS1.r", + "PAN-STARRS|PS1.w", + "PAN-STARRS|PS1.y", + "PAN-STARRS|PS1.z", + "VIRCAM|VISTA.H", + "VIRCAM|VISTA.J", + "VIRCAM|VISTA.Ks", + "VIRCAM|VISTA.NB118", + "VIRCAM|VISTA.NB980", + "VIRCAM|VISTA.NB990", + "VIRCAM|VISTA.Y", + "VIRCAM|VISTA.Z", + "SLOAN|SDSS.g", + "SLOAN|SDSS.i", + "SLOAN|SDSS.r", + "SLOAN|SDSS.u", + "SLOAN|SDSS.z", + "UKIRT|WFCAM.H", + "UKIRT|WFCAM.J", + "UKIRT|WFCAM.K", + "UKIRT|WFCAM.Y", + "UKIRT|WFCAM.Z", + "WISE|WISE.W1", + "WISE|WISE.W2", + "WISE|WISE.W3", + "WISE|WISE.W4", + "Subaru|HSC.Y", + "Subaru|HSC.g", + "Subaru|HSC.i", + "Subaru|HSC.r", + "Subaru|HSC.z", + "Subaru|HSC.IB945_filter", + "Subaru|HSC.NB387_filter", + "Subaru|HSC.NB468_filter", + "Subaru|HSC.NB515_filter", + "Subaru|HSC.NB527_filter", + "Subaru|HSC.NB656_filter", + "Subaru|HSC.NB718_filter", + "Subaru|HSC.NB816_filter", + "Subaru|HSC.NB921_filter", + "Subaru|HSC.NB926_filter", + "Subaru|HSC.NB973_filter", + "Subaru|Suprime.B", + "Subaru|Suprime.V", + "Subaru|Suprime.g", + "Subaru|Suprime.r", + "Subaru|Suprime.i", + "Subaru|Suprime.z", + "Subaru|Suprime.IB427", + "Subaru|Suprime.IB464", + "Subaru|Suprime.IB484", + "Subaru|Suprime.IB505", + "Subaru|Suprime.IB527", + "Subaru|Suprime.IB574", + "Subaru|Suprime.IB624", + "Subaru|Suprime.IB679", + "Subaru|Suprime.IB709", + "Subaru|Suprime.IB738", + "Subaru|Suprime.IB767", + "Subaru|Suprime.IB827", + "Subaru|Suprime.NB711", + "Subaru|Suprime.NB816", + "JWST|MIRI.F560W", + "JWST|MIRI.F770W", + "JWST|MIRI.F1000W", + "JWST|MIRI.F1065C", + "JWST|MIRI.F1130W", + "JWST|MIRI.F1140C", + "JWST|MIRI.F1280W", + "JWST|MIRI.F1500W", + "JWST|MIRI.F1550C", + "JWST|MIRI.F1800W", + "JWST|MIRI.F2100W", + "JWST|MIRI.F2300C", + "JWST|MIRI.F2550W", + "JWST|NIRCam.F070W", + "JWST|NIRCam.F090W", + "JWST|NIRCam.F115W", + "JWST|NIRCam.F140M", + "JWST|NIRCam.F150W", + "JWST|NIRCam.F150W2", + "JWST|NIRCam.F162M", + "JWST|NIRCam.F164N", + "JWST|NIRCam.F182M", + "JWST|NIRCam.F187N", + "JWST|NIRCam.F200W", + "JWST|NIRCam.F210M", + "JWST|NIRCam.F212N", + "JWST|NIRCam.F250M", + "JWST|NIRCam.F277W", + "JWST|NIRCam.F300M", + "JWST|NIRCam.F322W2", + "JWST|NIRCam.F323N", + "JWST|NIRCam.F335M", + "JWST|NIRCam.F356W", + "JWST|NIRCam.F360M", + "JWST|NIRCam.F405N", + "JWST|NIRCam.F410M", + "JWST|NIRCam.F430M", + "JWST|NIRCam.F444W", + "JWST|NIRCam.F460M", + "JWST|NIRCam.F466N", + "JWST|NIRCam.F470N", + "JWST|NIRCam.F480M", + "HST|ACS_WFC.F435W", + "HST|ACS_WFC.F475W", + "HST|ACS_WFC.F502N", + "HST|ACS_WFC.F550M", + "HST|ACS_WFC.F555W", + "HST|ACS_WFC.F606W", + "HST|ACS_WFC.F625W", + "HST|ACS_WFC.F658N", + "HST|ACS_WFC.F660N", + "HST|ACS_WFC.F775W", + "HST|ACS_WFC.F814W", + "HST|ACS_WFC.F850LP", + "HST|ACS_WFC.F892N", + "HST|ACS_WFC.FR1016N", + "HST|ACS_WFC.FR388N", + "HST|ACS_WFC.FR423N", + "HST|ACS_WFC.FR459M", + "HST|ACS_WFC.FR462N", + "HST|ACS_WFC.FR505N", + "HST|ACS_WFC.FR551N", + "HST|ACS_WFC.FR601N", + "HST|ACS_WFC.FR647M", + "HST|ACS_WFC.FR656N", + "HST|ACS_WFC.FR716N", + "HST|ACS_WFC.FR782N", + "HST|ACS_WFC.FR853N", + "HST|ACS_WFC.FR914M", + "HST|ACS_WFC.FR931N", + "HST|ACS_WFC.G800L", + "HST|WFC3_IR.F098M", + "HST|WFC3_IR.F105W", + "HST|WFC3_IR.F110W", + "HST|WFC3_IR.F125W", + "HST|WFC3_IR.F126N", + "HST|WFC3_IR.F127M", + "HST|WFC3_IR.F128N", + "HST|WFC3_IR.F130N", + "HST|WFC3_IR.F132N", + "HST|WFC3_IR.F139M", + "HST|WFC3_IR.F140W", + "HST|WFC3_IR.F153M", + "HST|WFC3_IR.F160W", + "HST|WFC3_IR.F164N", + "HST|WFC3_IR.F167N", + "HST|WFC3_IR.G102", + "HST|WFC3_IR.G141", + "Spitzer|IRAC.I1", + "Spitzer|IRAC.I2", + "DESI|bass.g ", + "DESI|bass.r", + "DESI|MzLS.z" +] \ No newline at end of file