-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from lsst/tickets/DM-9909
Add config options for HSC to explicitly use astrometry_net
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
Configure to force using astrometry_net instead of directly | ||
loading Pan-STARRS1 reference catalogs | ||
""" | ||
|
||
from lsst.pipe.tasks.setConfigFromEups import setPhotocalConfigFromEups, setAstrometryConfigFromEups | ||
|
||
|
||
from lsst.meas.astrom import LoadAstrometryNetObjectsTask | ||
config.processCcd.calibrate.astromRefObjLoader.retarget(LoadAstrometryNetObjectsTask) | ||
config.processCcd.calibrate.photoRefObjLoader.retarget(LoadAstrometryNetObjectsTask) | ||
|
||
setPhotocalConfigFromEups(config.processCcd.calibrate.photoCal) | ||
|
||
menu = { "ps1*": {}, # No changes | ||
"sdss*": { "filterMap": {"y": "z"} }, # No y-band, use z instead | ||
"2mass*": { "filterMap": {ff:"J" for ff in 'grizy'} }, # No optical; use J | ||
} | ||
|
||
setAstrometryConfigFromEups(config.processCcd.calibrate.astromRefObjLoader, menu) | ||
|
||
|
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