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-10765: Replace existing WCS classes with SkyWcs #280

Merged
merged 42 commits into from Feb 16, 2018
Merged

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Sep 30, 2017

No description provided.

@r-owen r-owen force-pushed the tickets/DM-10765 branch 2 times, most recently from 7fb39be to c20f368 Compare October 4, 2017 14:35
@r-owen r-owen force-pushed the tickets/DM-10765 branch 25 times, most recently from bf817f0 to 576deeb Compare October 11, 2017 18:37
@r-owen r-owen force-pushed the tickets/DM-10765 branch 2 times, most recently from c3e99ac to aaa5db2 Compare October 12, 2017 21:03
No need to test if an item exists before calling remove
Remove tests/sipterms and tests/test_wcs from .gitignore
instead of the deprecated lsst.afw.image.readMetadata
Use lsst.afw.geom instead lf lsst.afw.geom.skyWcs as the module
for SkyWcs unpersistence, as per Jim Bosch's recent recommendation
Make the argument `precise` default to False.
Test that TAN-SIP is now handled as pure FITS-WCS (due to improvements
in AST).
Use the default value of the `precise` argument for
SkyWcs.getFitsMetadata when appropriate, which is essentially always.
Update the explanation of why we save LTV1, LTV2
Make formatFitsProperties write the final value of an array
instead of skipping entries that have array value. This is much
more robust and a better match to FITS usage (which allows
the same header multiple times, but readers are only supposed
to pay attention to the last value).
and makeSipPixelToIwc and an internal function they call
This is just formatters::formatFitsProperties moved and with
slightly tweaked documentation. I'll remove the other function
on a separate commit.
Use makeLimitedFitsHeader instead
Use makeLimitedFitsHeader instead
and the associated constant TIGHT_FITS_TOL which describes
what the "precise" argument means.
This is analogous to Key::Value and useful in the same way
The old Python functions were already slow, but with SkyWcs they
became even slower due to not converting all points with one call.
Converting all coordinates in one call to SkyWcs.pixelToSky or
skyToPixel requires looping over the catalog twice, which seemed
likely to be slow in Python, so I rewrote the functions in C++.
getFitsMetadata could return a WCS with Dec, RA axis order.
Fixed by specifying FitsAxisOrder=<copy> for the FitsChan
and added a test.
When writing an ExposureInfo to FITS if the WCS has no exact
FIT-WCS metadata representation then skip that, instead of writing
a local TAN approximation.
@r-owen r-owen merged commit 1f1b661 into master Feb 16, 2018
@kfindeisen kfindeisen deleted the tickets/DM-10765 branch August 22, 2018 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants