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-17029: Update LoadReferenceObjectsTask to output fluxes in nanojansky #20

Merged
merged 1 commit into from
Apr 5, 2019
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import lsst.pipe.base as pipeBase
from lsst.meas.algorithms import LoadReferenceObjectsTask, getRefFluxField
from lsst.meas.algorithms.loadReferenceObjects import convertToNanojansky
from . import astrometry_net
from .multiindex import AstrometryNetCatalog, getConfigFromEnvironment

Expand Down Expand Up @@ -154,6 +155,12 @@ def loadSkyCircle(self, ctrCoord, radius, filterName=None, epoch=None):
if not refCat.isContiguous():
refCat = refCat.copy(deep=True)

# Update flux fields to be nJy. a.net catalogs do not have a conversion script.
self.log.warn("Loading A.net reference catalog with old style units in schema.")
self.log.warn("A.net reference catalogs will not be supported in the future.")
self.log.warn("See RFC-562 and RFC-575 for more details.")
refCat = convertToNanojansky(refCat, self.log)

self.log.debug("found %d objects", len(refCat))
return pipeBase.Struct(
refCat=refCat,
Expand Down