Convert 2D spectra to ascii file
Cindy Wu wrote on Feb 25, 2009
I have a question regarding IRAF commands. I want to convert my spectra fits file to ascii file at this moment. I've successfully done so when I used the command called "wspectext". but an error message popped out- "this *.fits is not one dimensional" when i was trying to deal with another spectrum. I examined the
header and found that its dimension is like, 2621x1, does that mean this
spectrum is 2-D? i also tried to find suitable commands to convert 2D spectra
into ascii files, but failed. please give me any suggestions or advice on how to
deal with this kind of problems. thank you in advance and i really appreciate
your help!
header and found that its dimension is like, 2621x1, does that mean this
spectrum is 2-D? i also tried to find suitable commands to convert 2D spectra
into ascii files, but failed. please give me any suggestions or advice on how to
deal with this kind of problems. thank you in advance and i really appreciate
your help!
Mike Fitzpatrick wrote on Feb 25, 2009
Tryusing an image section so the WSPEC task sees only one dimension, e.g.
The IMSLICE task will generally reduce the dimensionality of an image, off-hand though I'm not sure what it would do to the spectral WCS however.
-Mike
cl> wspectext foo.fits[*,1] STDOUTThe IMSLICE task will generally reduce the dimensionality of an image, off-hand though I'm not sure what it would do to the spectral WCS however.
-Mike
Cindy Wu wrote on Feb 25, 2009
Thank you so much, Mike!
it worked!! :)
it worked!! :)
dm wrote on Feb 25, 2009
Yes, thank you very much(!)
Last post on Feb 25, 2009