astroumd / lmtoy

Toy Codes for LMT
https://www.astro.umd.edu/~teuben/LMT/lmtoy/html/
0 stars 2 forks source link

astropy/wcs doesn't like our fits cubes/maps when trying add_beam #28

Open teuben opened 2 years ago

teuben commented 2 years ago

the new fitsplot.py use APLpy for a quick plot, but our fits header apparently has a WCS issue when trying to plot a beam:

ValueError: Cannot show beam when WCS is not celestial

teuben commented 2 years ago

bleeh, i'm now getting:

cannot import name 'block_reduce' from 'astropy.nddata.utils'

after astropy was updated. I'll hope to post the solution to that here , grrrr.

teuben commented 2 years ago

oh, this has been a one word pull fix as seen in https://github.com/aplpy/aplpy/pull/464 but no action taken for a long time

teuben commented 2 years ago

It's the 3rd axis (we use VRAD in m/s) astropy doesn't like

teuben commented 2 years ago

Even VRAD-F2V or VRAD-V2F didn't work. Solved it by forcing NAXIS=2 (ccdfits ndim=2)