Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-27013: Change CalibrateTask refcat defaults to Gaia DR2 for astrometry and PS1 for photometry #381

Merged
merged 1 commit into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
):
refObjLoader.load(os.path.join(obsConfigDir, 'filterMap.py'))
refObjLoader.ref_dataset_name = 'cal_ref_cat'
# Use the filterMap instead of the "any" filter.
refObjLoader.anyFilterMapsToThis = None

config.connections.astromRefCat = "cal_ref_cat"
config.connections.photoRefCat = "cal_ref_cat"
Expand Down
6 changes: 6 additions & 0 deletions config/imsim/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
config.astrometry.referenceSelector.unresolved.minimum = None
config.astrometry.referenceSelector.unresolved.maximum = 0.5

configDir = os.path.dirname(__file__)
config.astromRefObjLoader.load(os.path.join(configDir, "..", "filterMap.py"))
# Use the filterMap instead of the "any" filter.
config.astromRefObjLoader.anyFilterMapsToThis = None
config.photoRefObjLoader.load(os.path.join(configDir, "..", "filterMap.py"))

config.astrometry.doMagnitudeOutlierRejection = True
# Set threshold above which astrometry will be considered a failure (DM-32129)
config.astrometry.maxMeanDistanceArcsec = 0.05
Expand Down