diff --git a/pipelines/DECam/DRP-Merian.yaml b/pipelines/DECam/DRP-Merian.yaml index 5a9f9b3..77e221e 100644 --- a/pipelines/DECam/DRP-Merian.yaml +++ b/pipelines/DECam/DRP-Merian.yaml @@ -1,6 +1,12 @@ description: | The DRP pipeline specialized for the DECam instrument, developed against the Merian dataset. + + Prior to running subsets or tasks in this pipeline, the DECam prerequisite + task isrForCrosstalkSources must be run. More information on that task can be + found in the isrForCrosstalkSources.yaml pipeline file. imports: - - $DRP_PIPE_DIR/pipelines/_ingredients/DECam/DRP.yaml - - $ANALYSIS_DRP_DIR/pipelines/analysis_drp_plots.yaml + - location: $DRP_PIPE_DIR/pipelines/_ingredients/DECam/DRP.yaml + exclude: + - isrForCrosstalkSources + - location: $ANALYSIS_DRP_DIR/pipelines/analysis_drp_plots.yaml diff --git a/pipelines/DECam/isrForCrosstalkSources.yaml b/pipelines/DECam/isrForCrosstalkSources.yaml new file mode 100644 index 0000000..99f2156 --- /dev/null +++ b/pipelines/DECam/isrForCrosstalkSources.yaml @@ -0,0 +1,37 @@ +description: | + The DECam prerequisite task isrForCrosstalkSources. + + The isrForCrosstalkSources task generates crosstalk sources for + ISR/inter-chip crosstalk by applying overscan correction on raw frames. A new + dataset is written, which should be used as an input for further DECam data + processing. + + This task is intended to be run once, prior to initial data processing. +instrument: lsst.obs.decam.DarkEnergyCamera +tasks: + isrForCrosstalkSources: + class: lsst.ip.isr.IsrTask + config: + connections.outputExposure: overscanRaw + doOverscan: true + doAssembleCcd: false + doBias: false + doCrosstalk: false + doVariance: false + doLinearize: false + doDefect: false + doNanMasking: false + doDark: false + doFlat: false + doFringe: false + doInterpolate: false +subsets: + step0: + subset: + - isrForCrosstalkSources + description: | + Tasks which should be run once, prior to initial data processing. + + This step generates crosstalk sources for ISR/inter-chip crosstalk by + applying overscan correction on raw frames. A new dataset is written, + which should be used as an input for further data processing. diff --git a/tests/test_pipelines.py b/tests/test_pipelines.py index bc1b3ca..b49db42 100644 --- a/tests/test_pipelines.py +++ b/tests/test_pipelines.py @@ -230,10 +230,10 @@ def makeButler(self, **kwargs: Any) -> Butler: DatastoreMock.apply(butler) return butler - def test_decam_drp_merian(self): + def test_decam_isrForCrosstalkSources(self): butler = self.makeButler(writeable=True) - tester0 = PipelineStepTester( - os.path.join(PIPELINES_DIR, "DECam", "DRP-Merian.yaml"), + tester = PipelineStepTester( + os.path.join(PIPELINES_DIR, "DECam", "isrForCrosstalkSources.yaml"), ["#step0"], [ ("ps1_pv3_3pi_20170110", {"htm7"}, "SimpleCatalog", False), @@ -246,7 +246,10 @@ def test_decam_drp_merian(self): }, expected_outputs={"overscanRaw"}, ) - tester0.run(butler, self) + tester.run(butler, self) + + def test_decam_drp_merian(self): + butler = self.makeButler(writeable=True) tester = PipelineStepTester( os.path.join(PIPELINES_DIR, "DECam", "DRP-Merian.yaml"), [