Skip to content

Commit

Permalink
Merge pull request #20 from lsst/tickets/DM-17029
Browse files Browse the repository at this point in the history
DM-17029: Update LoadReferenceObjectsTask to output fluxes in nanojansky
  • Loading branch information
parejkoj committed Apr 5, 2019
2 parents 444bd44 + 5838179 commit 9961b39
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 9961b39

Please sign in to comment.