price@price-laptop:~/LSST/meas/astrom (tickets/DM-7117=) $ git sub
|
commit 763414b3cf53d3bed29d73b04ad014f1fbd80e04
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Aug 3 20:04:40 2016 -0400
|
|
createMatchMetadata: add additional interface
|
|
The 'match metadata' stores data we need to regenerate the matches
|
(i.e., cone search parameters). The current interface uses a bbox
|
and Wcs, and converts those to the cone search parameters that are
|
stored in the metadata; but there has not been an interface to
|
construct the 'match metadata' given the cone search parameters.
|
|
Created a new class, MatchMetadata for the purpose of simplifying
|
the creation of the 'match metadata'. Chose to use a class rather
|
than a new factory function because it's more fundamental. The old
|
interface now uses the new class.
|
|
python/lsst/meas/astrom/createMatchMetadata.py | 31 +++++++++++++++++---------
|
1 file changed, 20 insertions(+), 11 deletions(-)
|
|
commit bc210ed0d8bc2966e28d15dbcf5641f1df83bb46
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Aug 3 20:21:14 2016 -0400
|
|
add task to perform simple matching to a reference catalog
|
|
The two AstrometryTasks (MatchOptimisticBTask and ANetAstrometryTask)
|
support matching, but these are optimised for determining astrometric
|
solutions so there are a variety of contortions involved, including
|
allowing rotations and distortions and filtering of the input catalog.
|
This new MatchTask is much simpler:
|
* no exposure required, only a catalog;
|
* no rotations or translations are permitted, only a straight match;
|
* no filtering of the input catalog, so all matches are returned; and
|
* no exception is raised when there are no matches.
|
This makes it suitable for gathering a list of matches for QA purposes.
|
|
python/lsst/meas/astrom/__init__.py | 1 +
|
python/lsst/meas/astrom/match.py | 102 ++++++++++++++++++++++++++++++++++++
|
2 files changed, 103 insertions(+)
|
|
|
price@price-laptop:~/LSST/pipe/tasks (tickets/DM-7117=) $ git sub
|
commit bb05a2999a73a1821e857597aa8555642b8f53e3
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Aug 3 20:29:47 2016 -0400
|
|
multiband: make pyflakes-clean
|
|
Imported symbol wasn't used.
|
|
python/lsst/pipe/tasks/multiBand.py | 2 +-
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
commit 0876e4c753478fc19ea4135e35adbea4b5737f44
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Aug 3 20:36:31 2016 -0400
|
|
multiband: use new MatchTask
|
|
For measureCoaddSources, it's helpful (for QA especially) to match
|
our catalog against a reference catalog. We were using an AstrometryTask
|
for this, but this isn't the right choice because they can allow
|
rotation and translation, filtering of our catalog, and they raise an
|
exception if the matching fails. And if you accidentally allow it to
|
fit a Wcs (which we have done in the past!), it can cause trouble for
|
your catalog. We just want a simple matching against the reference
|
catalog, which is provided by the new MatchTask.
|
|
python/lsst/pipe/tasks/multiBand.py | 14 ++++++--------
|
1 file changed, 6 insertions(+), 8 deletions(-)
|
|
|
price@price-laptop:~/LSST/obs/subaru (tickets/DM-7117=) $ git sub
|
commit bd26ea81bf2cdc84e431e1167296d5a6eab3e9a8
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Aug 3 20:47:44 2016 -0400
|
|
config: adapt to usage of new MatchTask in measureCoaddSources
|
|
The refObjLoader is an extra level down now.
|
|
This cleaned up the matchOptimisticB vs ANetAstrometry problem!
|
|
config/hsc/measureCoaddSources.py | 10 ++--------
|
config/measureCoaddSources.py | 9 ++-------
|
2 files changed, 4 insertions(+), 15 deletions(-)
|
|
commit b8b0aead2bcdbb677787d22fb3392b9995735dff
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Aug 3 21:34:21 2016 -0400
|
|
config: fix syntax mistake in exception catching
|
|
Due to old python syntax, the line
|
except KeyError, ImportError:
|
is interpreted the same as
|
except KeyError as ImportError:
|
which is not what was intended, and causes the process
|
to die if meas_modelfit isn't setup.
|
|
config/cmodel.py | 2 +-
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
Having thought some more, I think we want to have the match behaviour configurable on the basis of a function parameter because I think there are times when you may want that exception and there are times when you really don't.
Also, MatchOptimisticBTask.loadAndMatch is filtering the sources, and doing a solve-and-match as opposed to a plain match. For cases where we want a plain match with the existing astrometric solution for QA (as in measureCoaddSources.py and maybe in other cases like in characterizeImage and imageDifference), we want just a plain matching task that will load the reference sources and use lsst.afw.table.matchRaDec. I'll add something like that into pipe_tasks.