Comments (8)
Yes, i.e. handle the case where there's a CD matrix instead of a PC matrix.
from gwcs.
For comparison, that same header that crashed GWCS has the following response from astropy.wcs
:
>>> 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
from gwcs.
something like datamodel.get_fits_wcs()
?
from gwcs.
Why do I need datamodel
here? This is not JWST data.
from gwcs.
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.
from gwcs.
Re: get_fits_wcs()
-- jwst
dependency is a deal-breaker for this use case. FYI.
from gwcs.
Update: I am investigating a fix. PR forthcoming...
from gwcs.
This ticket is now being tracked at AL-42
from gwcs.
Related Issues (20)
- GWCS test failure with scipy `1.10.0` HOT 3
- SpectralFrame ignoring reference_position
- Tests fail with `AttributeError: module 'numpy' has no attribute 'asscalar'. Did you mean: 'isscalar'?` HOT 3
- Remove `gwcs_types.py`
- The print(wcs.tofits_sip()) failed in your example in https://gwcs.readthedocs.io/en/latest/#a-step-by-step-example-of-constructing-an-imaging-gwcs-object HOT 2
- Remove maxversion pin of scipy HOT 1
- Documentation refers to deprecated asdf.fits_embed HOT 1
- Splitting the celestial axes of a transform causes errors HOT 1
- Deprecate the pre-APE 14 API HOT 3
- docs mention saving to AsdfInFits which is not available in asdf 3.0 HOT 4
- Consider adding a description in the docs about manifest changes in #469 HOT 1
- WCS API and serialization
- `WCS.pixel_to_world` does not have the same broadcasting behaviour as `astropy.wcs.WCS`
- ``pkg_resources.get_distribution`` is deprecated
- Why is the `WCS` repr the forward transform repr? HOT 1
- GWCS for Magellanic Stream HOT 2
- docs -- double link to asdf example
- Bug in APE-14 description of WCS HOT 4
- Bug in treatment of pixel_bounds
- AstropyDeprecationWarning: The class "Fits" has been renamed to "FITS" in version 7.0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwcs.