-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The IsrTask was not usable as a CmdLineTask, as it was written to be called as a subtask of ProcessCcdTask. This allows the default IsrTask to be retargeted to camera-specific versions of the ISR processing. A new RunIsrTask now exists to hold IsrTask for retargetting in standalone processing, and both processCcd.py and runIsr.py now read from the same configuration files for each obs_ package. This has involved migrating configuration values from config/processCcd.py to config/isr.py for many obs_ packages.
- Loading branch information
Showing
10 changed files
with
97 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" | ||
HSC-specific overrides for RunIsrTask | ||
""" | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
from lsst.obs.subaru.isr import SubaruIsrTask | ||
|
||
obsConfigDir = os.path.join(getPackageDir("obs_subaru"), "config", "hsc") | ||
|
||
config.isr.retarget(SubaruIsrTask) | ||
config.isr.load(os.path.join(obsConfigDir, "isr.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
# Configuration for Suprime-Cam-MIT ISR | ||
""" | ||
SuprimeCam (MIT)-specific overrides for IsrTask | ||
""" | ||
config.doBias = False | ||
config.doDark = False | ||
config.doCrosstalk = False | ||
config.doLinearize = False | ||
config.doWrite = False | ||
config.doDefect = True | ||
|
||
from lsst.obs.subaru.isr import SuprimeCamMitIsrTask | ||
config.isr.retarget(SuprimeCamMitIsrTask) | ||
|
||
config.isr.doBias = False | ||
config.isr.doDark = False | ||
config.isr.doCrosstalk = False | ||
config.isr.doLinearize = False | ||
config.isr.doWrite = False | ||
config.isr.doDefect = True | ||
|
||
config.isr.doFringe = True | ||
config.isr.fringe.filters = ["I", "i", "z"] | ||
config.doFringe = True | ||
config.fringe.filters = ["I", "i", "z"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" | ||
SuprimeCam (MIT)-specific overrides for RunIsrTask | ||
""" | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
from lsst.obs.subaru.isr import SuprimeCamIsrTask | ||
|
||
obsConfigDir = os.path.join(getPackageDir("obs_subaru"), "config", "suprimecam-mit") | ||
|
||
config.isr.retarget(SuprimeCamIsrTask) | ||
config.isr.load(os.path.join(obsConfigDir, "isr.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
Suprimecam-specific overrides for RunIsrTask | ||
(applied after Subaru overrides in ../processCcd.py) | ||
""" | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
from lsst.obs.subaru.isr import SuprimeCamIsrTask | ||
|
||
obsConfigDir = os.path.join(getPackageDir("obs_subaru"), "config", "suprimecam") | ||
|
||
config.isr.retarget(SuprimeCamIsrTask) | ||
config.isr.load(os.path.join(obsConfigDir, "isr.py")) |