GithubHelp home page GithubHelp logo

Comments (8)

jdavies-st avatar jdavies-st commented on September 27, 2024 1

Yes, i.e. handle the case where there's a CD matrix instead of a PC matrix.

from gwcs.

pllim avatar pllim commented on September 27, 2024

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.

sosey avatar sosey commented on September 27, 2024

something like datamodel.get_fits_wcs() ?

from gwcs.

pllim avatar pllim commented on September 27, 2024

Why do I need datamodel here? This is not JWST data.

from gwcs.

sosey avatar sosey commented on September 27, 2024

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.

pllim avatar pllim commented on September 27, 2024

Re: get_fits_wcs() -- jwst dependency is a deal-breaker for this use case. FYI.

from gwcs.

pllim avatar pllim commented on September 27, 2024

Update: I am investigating a fix. PR forthcoming...

from gwcs.

stscijgbot avatar stscijgbot commented on September 27, 2024

This ticket is now being tracked at AL-42

from gwcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.