-
Notifications
You must be signed in to change notification settings - Fork 48
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
make_fitswcs_transform to handle header with no PC #139
Comments
Yes, i.e. handle the case where there's a CD matrix instead of a PC matrix. |
For comparison, that same header that crashed GWCS has the following response from >>> from astropy.wcs import WCS
>>> w = WCS(header)
WARNING: FITSFixedWarning: RADECSYS= 'FK5 '
the RADECSYS keyword is deprecated, use RADESYSa. [astropy.wcs.wcs]
WARNING: FITSFixedWarning: 'unitfix' made the change 'Changed units: 'degree' -> 'deg', 'degree' -> 'deg''. [astropy.wcs.wcs]
>>> w
WCS Keywords
Number of WCS axes: 2
CTYPE : 'RA---TAN' 'DEC--TAN'
CRVAL : 299.91736667 22.68769444
CRPIX : 5276.0 25.0
CD1_1 CD1_2 : -5.611e-05 0.0
CD2_1 CD2_2 : 0.0 5.611e-05
NAXIS : 2272 4273 |
something like |
Why do I need |
get_fits_wcs() pulls the fits wcs info from datamodels, I've used it with jwst data, but a datamodel doesn't have to be jwst science or reference files. Was just posting as an example of what you might want. I used datamodel as a placeholder for any data model with header info and data info, since people are usu pulling the header that's associated with some data. |
Re: |
Update: I am investigating a fix. PR forthcoming... |
This ticket is now being tracked at AL-42 |
make_fitswcs_transform()
(https://github.com/spacetelescope/gwcs/blob/master/gwcs/utils.py#L322) needs to be more generic to handle WCS header without PC. xref #99 (comment)This issue is as discussed with @jdavies-st
The text was updated successfully, but these errors were encountered: