-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor of WCS pixelization operator (#757)
* Refactor of WCS pixelization operator - Move the application of source centering in the projection to a separate helper function in `pointing_utils.py`. Thanks to @gabrielecoppi for identifying this fix. Optionally use this new function when computing the scan range for autoscaling. - In `PixelsWCS`: - Add a new general class method that computes the WCS parameters. - Add support for SFL projection. - Allow projection traits to be changed in any order and only recompute the WCS if needed when exec() is called. - Default to a single submap, which is the most efficient choice for the common case of data distributed by detector and many observations co-incident on the sky. - In the PixelsWCS unit tests: - Ensure projection and plotting works for every supported projection type with both fixed parameters and autoscaling. - Test mapmaking in both normal mode and with source-centered projections in RA/DEC and Az/El. - In `plot_wcs_maps`: - Set the figure size based on the DPI and the actual size of the image in pixels. - Set the unhit pixels to gray. - Allow specifying the color map, and default to one of the perceptially uniform ones. * Fix other unit tests * For local Az/El coordinate frame, use TLON/TLAT in the CTYPE. Thanks to @gabrielecoppi for the suggestion. * PixelDistribution global2local is now always created * Fix typo
- Loading branch information
Showing
10 changed files
with
780 additions
and
416 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.