Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
pyspeckit/pyspeckit
Python Spectroscopic Toolkit
People
Repo info
Activity
Adam Ginsburg
@keflavich
I didn't see them til now
Adam Ginsburg
@keflavich
@dinossimpson
come over here when you have a moment
Dinos Kousidis
@dinosk
just saw this, coming in 1’
Adam Ginsburg
@keflavich
ok
Adam Ginsburg
@keflavich
http://astropy.readthedocs.org/en/latest/api/astropy.wcs.Wcsprm.html#astropy.wcs.Wcsprm.sub
can be used to drop degenerate axes
e.g.:
newwcs = oldwcs.sub([wcs.WCSSUB_SPECTRAL])
creating WCS objects:
from astropy import wcs
mywcs = wcs.WCS(header)
where header:
header = fits.getheader(filename)
from astropy.io import fits
mywcs.to_header()
Adam Ginsburg
@keflavich
welcome
Grant Tremblay
@granttremblay
hi adam!
thanks soooo much for your help today
Adam Ginsburg
@keflavich
huh, yeah, there is something weird going on again
Grant Tremblay
@granttremblay
I know you're not paid to be tech support
Adam Ginsburg
@keflavich
np
you exposed some funky ass bugs
Grant Tremblay
@granttremblay
I was worried I was going crazy
Adam Ginsburg
@keflavich
I have that experience often.
could you upload your latest notebook?
_
Grant Tremblay
@granttremblay
sure
https://github.com/granttremblay/question_for_adam/blob/master/adam_debugging.ipynb
crap I gotta run - I'll check in later though! thanks so much friend
Adam Ginsburg
@keflavich
k