Skip to content

Commit

Permalink
mwm_halo_gaia_dr3.py: add mwm_halo_*_triple cartons with cadence=dark…
Browse files Browse the repository at this point in the history
…_1x3
  • Loading branch information
astronomygupta committed Jul 9, 2024
1 parent fed8028 commit f254896
Showing 1 changed file with 290 additions and 0 deletions.
290 changes: 290 additions & 0 deletions python/target_selection/cartons/mwm_halo_gaia_dr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ class MWM_halo_distant_rrl_boss_single_Carton(BaseCarton):
Instrument: BOSS
can_offset = True
Lead contact: Alexander Ji
Note that there is a carton derived from this *single* carton.
The derived carton is called MWM_halo_distant_rrl_boss_triple_Carton.
This pattern is true for the other *triple* cartons in this file.
We do not call this *single* carton as MWM_halo_distant_rrl_boss_Base_Carton since
there is a separate carton called MWM_halo_distant_rrl_boss_Carton.
"""

name = "mwm_halo_distant_rrl_boss_single"
Expand Down Expand Up @@ -100,6 +107,31 @@ def build_query(self, version_id, query_region=None):
return query


class MWM_halo_distant_rrl_boss_triple_Carton(MWM_halo_distant_rrl_boss_single_Carton):
"""mwm_halo_distant_rrl_boss_triple
Shorthand name: mwm_halo_distant_rrl_boss_triple
Metadata:
Priority: 3051
Cadence: dark_1x3
Instrument: BOSS
can_offset = True
Lead contact: Alexander Ji
"""

name = "mwm_halo_distant_rrl_boss_triple"
category = "science"
instrument = "BOSS"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 3051
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query


class MWM_halo_distant_rrl_boss_Carton(BaseCarton):
"""5.1.34. mwm_halo_distant_rrl_boss
Shorthand name: mwm_halo_distant_rrl_boss
Expand Down Expand Up @@ -342,6 +374,30 @@ def build_query(self, version_id, query_region=None):
return query


class MWM_halo_vmp_xp_boss_triple_Carton(MWM_halo_vmp_xp_boss_single_Carton):
"""
mwm_halo_vmp_xp_boss_triple
G>13
mh_xgboost <= -2.0
INSTRUMENT: BOSS
CADENCE: dark_1x3
PRIORITY: 1851
"""

name = "mwm_halo_vmp_xp_boss_triple"
category = "science"
instrument = "BOSS"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 1851
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query


class MWM_halo_mp_xp_boss_single_Carton(MWM_halo_mp_xp_Base_Carton):
"""
mwm_halo_mp_xp_boss_single
Expand Down Expand Up @@ -371,6 +427,30 @@ def build_query(self, version_id, query_region=None):
return query


class MWM_halo_mp_xp_boss_triple_Carton(MWM_halo_mp_xp_boss_single_Carton):
"""
mwm_halo_mp_xp_boss_single
G>13
-2.0 < mh_xgboost <= -1.5
INSTRUMENT: BOSS
CADENCE: dark_1x3
PRIORITY: 2971
"""

name = "mwm_halo_mp_xp_boss_triple"
category = "science"
instrument = "BOSS"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 2971
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query


class MWM_halo_nmp_xp_boss_single_Carton(MWM_halo_mp_xp_Base_Carton):
"""
mwm_halo_nmp_xp_boss_single
Expand Down Expand Up @@ -400,6 +480,30 @@ def build_query(self, version_id, query_region=None):
return query


class MWM_halo_nmp_xp_boss_triple_Carton(MWM_halo_nmp_xp_boss_single_Carton):
"""
mwm_halo_nmp_xp_boss_triple
G>13
-1.5 < mh_xgboost <= -1.0
INSTRUMENT: BOSS
CADENCE: dark_1x3
PRIORITY: 6501
"""

name = "mwm_halo_nmp_xp_boss_triple"
category = "science"
instrument = "BOSS"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 6501
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query


class MWM_halo_vmp_xp_apogee_single_Carton(MWM_halo_mp_xp_Base_Carton):
"""
mwm_halo_vmp_xp_apogee_single
Expand All @@ -425,6 +529,30 @@ def build_query(self, version_id, query_region=None):
return query


class MWM_halo_vmp_xp_apogee_triple_Carton(MWM_halo_vmp_xp_apogee_single_Carton):
"""
mwm_halo_vmp_xp_apogee_triple
G <=13
mh_xgboost <= -2.0
INSTRUMENT: APOGEE
CADENCE: dark_1x3
PRIORITY: 1851
"""

name = "mwm_halo_vmp_xp_apogee_triple"
category = "science"
instrument = "APOGEE"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 1851
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query


class MWM_halo_mp_xp_apogee_single_Carton(MWM_halo_mp_xp_Base_Carton):
"""
mwm_halo_mp_xp_apogee_single
Expand Down Expand Up @@ -454,6 +582,30 @@ def build_query(self, version_id, query_region=None):
return query


class MWM_halo_mp_xp_apogee_triple_Carton(MWM_halo_mp_xp_apogee_single_Carton):
"""
mwm_halo_mp_xp_apogee_triple
G <=13
-2.0 < mh_xgboost <= -1.5
INSTRUMENT: APOGEE
CADENCE: bright_1x1
PRIORITY: 2971
"""

name = "mwm_halo_mp_xp_apogee_triple"
category = "science"
instrument = "APOGEE"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 2971
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query


class MWM_halo_nmp_xp_apogee_single_Carton(MWM_halo_mp_xp_Base_Carton):
"""
mwm_halo_nmp_xp_apogee_single
Expand Down Expand Up @@ -483,6 +635,30 @@ def build_query(self, version_id, query_region=None):
return query


class MWM_halo_nmp_xp_apogee_triple_Carton(MWM_halo_nmp_xp_apogee_single_Carton):
"""
mwm_halo_nmp_xp_apogee_triple
G <=13
-1.5 < mh_xgboost <= -1.0
INSTRUMENT: APOGEE
CADENCE: dark_1x3
PRIORITY: 6501
"""

name = "mwm_halo_nmp_xp_apogee_triple"
category = "science"
instrument = "APOGEE"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 6501
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query


class MWM_halo_mp_xp_dark_Base_Carton(BaseCarton):
"""5.1.36. mwm_halo_mp_xp_dark
This base carton contains the first part of the below query.
Expand Down Expand Up @@ -1058,6 +1234,35 @@ def post_process(self, model):
)


class MWM_halo_local_high_apogee_triple_Carton(MWM_halo_local_high_apogee_single_Carton):
"""
mwm_halo_local_high_apogee_triple
vtan >= 150 and parallax_over_error >=10 OR
vtan >=150 and 3 < M_G < 5 and 10 > parallax_over_error > 5
G < 13
PRIORITY: 2981
CADENCE: dark_1x3
INSTRUMENT: APOGEE
can_offset = True
"""

name = "mwm_halo_local_high_apogee_triple"
category = "science"
instrument = "APOGEE"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 2981
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query

def post_process(self, model):
super().post_process(model)


class MWM_halo_local_high_boss_single_Carton(MWM_halo_local_Base_Carton):
"""
mwm_halo_local_high_boss_single
Expand Down Expand Up @@ -1131,6 +1336,35 @@ def post_process(self, model):
)


class MWM_halo_local_high_boss_triple_Carton(MWM_halo_local_high_boss_single_Carton):
"""
mwm_halo_local_high_boss_triple
vtan >= 150 and parallax_over_error >=10 OR
vtan >=150 and 3 < M_G < 5 and 10 > parallax_over_error > 5
G >= 13
PRIORITY: 2981
CADENCE: dark_1x3
INSTRUMENT: BOSS
can_offset = True
"""

name = "mwm_halo_local_high_boss_triple"
category = "science"
instrument = "BOSS"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 2981
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query

def post_process(self, model):
super().post_process(model)


class MWM_halo_local_low_apogee_single_Carton(MWM_halo_local_Base_Carton):
"""
mwm_halo_local_low_apogee_single
Expand Down Expand Up @@ -1201,6 +1435,34 @@ def post_process(self, model):
)


class MWM_halo_local_low_apogee_triple_Carton(MWM_halo_local_low_apogee_single_Carton):
"""
mwm_halo_local_low_apogee_triple
vtan >=150 and not (3 < M_G < 5) and 10 > parallax_over_error > 5
G < 13
PRIORITY: 6501
CADENCE: dark_1x3
INSTRUMENT: APOGEE
can_offset = True
"""

name = "mwm_halo_local_low_apogee_triple"
category = "science"
instrument = "APOGEE"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 6501
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query

def post_process(self, model):
super().post_process(model)


class MWM_halo_local_low_boss_single_Carton(MWM_halo_local_Base_Carton):
"""
mwm_halo_local_low_boss_single
Expand Down Expand Up @@ -1271,6 +1533,34 @@ def post_process(self, model):
)


class MWM_halo_local_low_boss_triple_Carton(MWM_halo_local_low_boss_single_Carton):
"""
mwm_halo_local_low_boss_triple
vtan >=150 and not (3 < M_G < 5) and 10 > parallax_over_error > 5
G >= 13
PRIORITY: 6501
CADENCE: dark_1x3
INSTRUMENT: BOSS
can_offset = True
"""

name = "mwm_halo_local_low_boss_triple"
category = "science"
instrument = "BOSS"
cadence = "dark_1x3"
program = "mwm_halo"
mapper = "MWM"
priority = 6501
can_offset = True

def build_query(self, version_id, query_region=None):
query = super().build_query(version_id, query_region)
return query

def post_process(self, model):
super().post_process(model)


class MWM_halo_local_high_apogee_Carton(MWM_halo_local_Base_Carton):
"""
mwm_halo_local_high_apogee
Expand Down

0 comments on commit f254896

Please sign in to comment.