Add VIRT pointing diagnostics and visualization module#18
Merged
Yong2Sheng merged 3 commits intodevelopfrom Mar 10, 2026
Merged
Add VIRT pointing diagnostics and visualization module#18Yong2Sheng merged 3 commits intodevelopfrom
Yong2Sheng merged 3 commits intodevelopfrom
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new
VIRTPointingReportmodule for routine VIRT pointing diagnostics and visualization.The module is designed to help inspect FITS images with solved WCS, compare the nominal telescope pointing against the WCS-derived field-of-view center, summarize pointing offsets, and visualize science targets both on individual FITS images and on an all-sky Aitoff map.
What's in here
VIRTPointingReportclass to standardize pointing-quality checks for VIRT FITS fileshas_wcs()get_skycoord_from_header()get_fov_center_skycoord()get_pointing_and_fov_center()get_coord_errors()plot_fits_with_skycoords()get_offset_form()get_target_coordinates()plot_all_targets_aitoff()MissingWCSErrorexception for missing celestial WCS casesMotivation
This module collects several small, repetitive pointing-check tasks into one place so that VIRT image inspection becomes more standardized and easier to reuse.
In particular, it helps me quickly answer:
Notes
Example use cases
OBJRA/OBJDEC