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-10737: Use new-style reference catalogs by default. #13

Merged
merged 1 commit into from Jun 2, 2017
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
9 changes: 7 additions & 2 deletions python/lsst/meas/mosaic/mosaicTask.py
Expand Up @@ -37,7 +37,7 @@
import lsst.pipe.base as pipeBase

from lsst.log import Log
from lsst.meas.astrom import LoadAstrometryNetObjectsTask, LoadAstrometryNetObjectsConfig
from lsst.meas.algorithms import LoadIndexedReferenceObjectsTask
from lsst.meas.base.forcedPhotCcd import PerTractCcdDataIdContainer
from lsst.pipe.tasks.colorterms import ColortermLibrary
from . import utils as mosaicUtils
Expand Down Expand Up @@ -150,7 +150,7 @@ class MosaicConfig(pexConfig.Config):
default=True)
loadAstrom = pexConfig.ConfigurableField(
doc="Configuration for astrometry reference object loading",
target=LoadAstrometryNetObjectsTask)
target=LoadIndexedReferenceObjectsTask)
doColorTerms = pexConfig.Field(
doc="Apply color terms as part of solution?",
dtype=bool,
Expand All @@ -172,6 +172,7 @@ class MosaicConfig(pexConfig.Config):
dtype=ColortermLibrary)
photoCatName = pexConfig.Field(
doc="Name of photometric reference catalog; used to select a color term dict in colorterm library.",
default="ps1_pv3_3pi_20170110",
dtype=str,
optional=True)
includeSaturated = pexConfig.Field(
Expand Down Expand Up @@ -214,6 +215,10 @@ class MosaicConfig(pexConfig.Config):
optional=True)
allowMixedFilters = pexConfig.Field(dtype=bool, default=False, doc="Allow multiple filters in input?")

def setDefaults(self):
self.loadAstrom.ref_dataset_name = "ps1_pv3_3pi_20170110"


class SourceReader(object):
""" Object to read source catalog.
"""
Expand Down