Skip to content

Commit

Permalink
Added wcu_off and sky
Browse files Browse the repository at this point in the history
  • Loading branch information
eiseleb47 committed Feb 2, 2025
1 parent 8e79e06 commit 68a1a83
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions metisp/workflows/metis/metis_lm_ifu_wkf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
"dpr.type": "RSRF",
})

wcu_off_ifu_class = classification_rule("IFU_WCU_OFF_RAW",
{"instrume": "METIS",
"dpr.catg": "CALIB",
"dpr.tech": "IFU",
"dpr.type": "DARK,WCUOFF",
})

rsrf_prod_ifu_class = classification_rule("RSRF_IFU",
{"pro.catg": "RSRF_IFU",
})
Expand All @@ -64,6 +71,13 @@
"dpr.type": "STD",
})

sky_ifu_class = classification_rule("IFU_SKY_RAW",
{"instrume": "METIS",
"dpr.catg": "CALIB",
"dpr.tech": "IFU",
"dpr.type": "SKY",
})

sci_ifu_class = classification_rule("IFU_SCI_RAW",
{"instrume": "METIS",
"dpr.catg": "SCIENCE",
Expand Down Expand Up @@ -115,13 +129,9 @@
{"pro.catg": "ATM_PROFILE",
})

telluric_ifu_class =classification_rule("IFU_TELLURIC",
{"pro.catg": "IFU_TELLURIC",
})
telluric_ifu_class =classification_rule("IFU_TELLURIC")

flux_tab_class = classification_rule("FLUXCAL_TAB",
{"pro.catg": "FLUXCAL_TAB",
})
flux_tab_class = classification_rule("FLUXCAL_TAB")

# --- Data sources ---

Expand Down Expand Up @@ -154,11 +164,21 @@
.with_match_keywords(["instrume"])
.build())

wcu_off_ifu_raw = (data_source()
.with_classification_rule(wcu_off_ifu_class)
.with_match_keywords(["instrume"])
.build())

std_ifu_raw = (data_source()
.with_classification_rule(std_ifu_class)
.with_match_keywords(["instrume"])
.build())

sky_ifu_raw = (data_source()
.with_classification_rule(sky_ifu_class)
.with_match_keywords(["instrume"])
.build())

sci_ifu_raw = (data_source()
.with_classification_rule(sci_ifu_class)
.with_match_keywords(["instrume"])
Expand Down Expand Up @@ -237,6 +257,7 @@
.with_associated_input(calib_persistence, min_ret=0)
.with_associated_input(dark_ifu_task)
.with_associated_input(distortion_ifu_task)
.with_associated_input(wcu_off_ifu_raw)
.with_associated_input(wave_ifu_task)
.with_input_filter(lin_det_ifu_class, gain_map_ifu_class, master_dark_ifu_class, distortion_table_ifu_class, wave_cal_ifu_class, persistence_class)
.build())
Expand All @@ -251,6 +272,7 @@
.with_associated_input(distortion_ifu_task)
.with_associated_input(wave_ifu_task)
.with_associated_input(rsrf_ifu_task)
.with_associated_input(sky_ifu_raw)
.with_input_filter(lin_det_ifu_class, gain_map_ifu_class, master_dark_ifu_class, persistence_class, distortion_table_ifu_class, wave_cal_ifu_class, rsrf_prod_ifu_class)
.build())

Expand All @@ -264,6 +286,7 @@
.with_associated_input(distortion_ifu_task)
.with_associated_input(wave_ifu_task)
.with_associated_input(rsrf_ifu_task)
.with_associated_input(sky_ifu_raw)
.with_input_filter(lin_det_ifu_class, gain_map_ifu_class, master_dark_ifu_class, persistence_class, distortion_table_ifu_class, wave_cal_ifu_class, rsrf_prod_ifu_class)
.build())

Expand Down

0 comments on commit 68a1a83

Please sign in to comment.