Welcome to iraf.net Friday, May 03 2024 @ 05:55 AM GMT
Cindy Wu |
02/25/2009 08:18PM (Read 6980 times)
|
|
|
Status: offline
Registered: 02/25/2009
Posts: 2
|
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!
|
|
|
|
fitz |
02/25/2009 08:18PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Tryusing an image section so the WSPEC task sees only one dimension, e.g.[code:1:01d07e3fba]cl> wspectext foo.fits[*,1] STDOUT[/code:1:01d07e3fba]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
|
|
|
|
Cindy Wu |
02/25/2009 08:18PM
|
|
|
Status: offline
Registered: 02/25/2009
Posts: 2
|
Thank you so much, Mike!
it worked!!
|
|
|
|
dm |
02/25/2009 08:18PM
|
|
|
Status: offline
Registered: 03/06/2009
Posts: 6
|
Yes, thank you very much(!)
|
|
|
|
| |
|
Content generated in: 0.08 seconds |
|