Skip to content

Commit

Permalink
Merge pull request #41 from lsst/tickets/DM-9909
Browse files Browse the repository at this point in the history
Add config options for HSC to explicitly use astrometry_net
  • Loading branch information
timothydmorton committed Jun 23, 2017
2 parents f84cb60 + 72a0388 commit 5edea01
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions config/hscConfig.py
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)


3 changes: 2 additions & 1 deletion examples/runHscTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ PRODUCT_DIR="${VALIDATE_DRP_DIR}"

CAMERA=Hsc
YAMLCONFIG="${PRODUCT_DIR}"/examples/"${CAMERA}".yaml
CONFIG_FILE="${PRODUCT_DIR}"/config/hscConfig.py

DATA_DIR=${VALIDATION_DATA_HSC_DIR}
CALIB_DIR=${DATA_DIR}/CALIB
Expand All @@ -37,7 +38,7 @@ ingestImages.py "${REPO}" --mode=link "${VALIDATION_DATA_HSC_DIR}"/'raw/*.fits'
ALL_VISITS=903332^903340^903982^904006^904350^904378^904828^904846

# Heavy lifting
singleFrameDriver.py ${REPO} --calib "${CALIB_DIR}" --rerun ${RERUN} --job singleFrame --cores ${NUMPROC} --id visit=${ALL_VISITS}
singleFrameDriver.py ${REPO} --calib "${CALIB_DIR}" --rerun ${RERUN} --job singleFrame --cores ${NUMPROC} --id visit=${ALL_VISITS} -C "${CONFIG_FILE}"
makeDiscreteSkyMap.py ${REPO} --rerun ${RERUN} --id ccd=0..103 visit=${ALL_VISITS}
# makeDiscreteSkyMap INFO: tract 0 has corners (321.714, -1.294), (318.915, -1.294), (318.915, 1.504), (321.714, 1.504) (RA, Dec deg) and 15 x 15 patches

Expand Down

0 comments on commit 5edea01

Please sign in to comment.