JWST data triggers 'datfix' and 'obsfix' FITSFixedWarning
See original GitHub issueSummary
When opening the WCS of a JWST/NIRCam image, I encountering two FITSFixedWarning
warnings (see full example further below):
WARNING: FITSFixedWarning: 'datfix' made the change 'Set DATE-BEG to '2022-06-07T02:22:37.094' from MJD-BEG.
Set DATE-AVG to '2022-06-07T02:29:41.197' from MJD-AVG.
Set DATE-END to '2022-06-07T02:36:45.299' from MJD-END'. [astropy.wcs.wcs]
WARNING: FITSFixedWarning: 'obsfix' made the change 'Set OBSGEO-L to -80.828196 from OBSGEO-[XYZ].
Set OBSGEO-B to -32.874352 from OBSGEO-[XYZ].
Set OBSGEO-H to 1674994226.369 from OBSGEO-[XYZ]'. [astropy.wcs.wcs]
As a user it seems surprising that brand new JWST images need fixes applied.
Is the ‘datfix’ warning desired or expected here? I note that an issue is already open related to the ‘obsfix’ warning (see https://github.com/astropy/astropy/issues/10365).
Full example
Python 3.9.7 (default, Sep 7 2021, 13:48:18)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import astropy
>>> astropy.__version__
'5.2.dev271+gfe3486171'
>>> from astropy.io import fits
>>> from astropy.wcs import WCS
>>>
>>> url = "https://stpubdata-jwst.stsci.edu/ero/jw02736/jw02736001001/jw02736001001_02101_00008_nrcblong_i2d.fits"
>>> with fits.open(url) as hdul:
... wcs = WCS(hdul["SCI"].header)
WARNING: FITSFixedWarning: 'datfix' made the change 'Set DATE-BEG to '2022-06-07T02:22:37.094' from MJD-BEG.
Set DATE-AVG to '2022-06-07T02:29:41.197' from MJD-AVG.
Set DATE-END to '2022-06-07T02:36:45.299' from MJD-END'. [astropy.wcs.wcs]
WARNING: FITSFixedWarning: 'obsfix' made the change 'Set OBSGEO-L to -80.828196 from OBSGEO-[XYZ].
Set OBSGEO-B to -32.874352 from OBSGEO-[XYZ].
Set OBSGEO-H to 1674994226.369 from OBSGEO-[XYZ]'. [astropy.wcs.wcs]
Issue Analytics
- State:
- Created a year ago
- Comments:20 (19 by maintainers)
Top Results From Across the Web
Getting Started with JWST Data - JWST User Documentation
Accessing JWST Data provides highlights on how to search, explore, and retrieve data using the MAST portal, which is the repository for all...
Read more >JWST - Data Analysis - FITS / ST I / NASA - Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from ... [astropy.wcs.wcs] WARNING: FITSFixedWarning: 'obsfix' made the change 'Set ...
Read more >New JWST data reveal more details of exoplanet WASP-39b's ...
Astronomers discovered sulfur dioxide produced by photochemical reactions in an exoplanet atmosphere. hot-jupiter-inset-450.jpg New JWST ...
Read more >Status of the James Webb Space Telescope Integrated ...
The James Webb Space Telescope (Figure 1) is under development by NASA with ... triggers the various elements in the science data path...
Read more >NASA's Plan to Make JWST Data Immediately Available Will ...
Scientific American is the essential guide to the most awe-inspiring advances in science and technology, explaining how they change our ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
… ~if you have a better understanding of the standards~
->
… if you are courageous enough 😄I think there is actually potentially a small astropy issue here.
From the look of those warnings, what JWST have produced is fully standard compliant, but it looks like wcslib is throwing warnings saying it’s populating alternative representations in it’s struct with the data it already has. These seem like redundant warnings?