Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New phosphoros filters #722

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions cdci_data_analysis/analysis/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

from jsonschema import validate, ValidationError, SchemaError
import json
from cdci_data_analysis import conf_dir

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -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')

Expand All @@ -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",
Expand Down
187 changes: 187 additions & 0 deletions cdci_data_analysis/config_dir/phosphoros_filters.json
Original file line number Diff line number Diff line change
@@ -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"
]
Loading