Welcome to iraf.net Friday, May 03 2024 @ 05:55 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Convert 2D spectra to ascii file
   
Cindy Wu
 02/25/2009 08:18PM (Read 6980 times)  
+----
Newbie

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!

 
Profile Email
 Quote
fitz
 02/25/2009 08:18PM  
AAAAA
Admin

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

 
Profile Email
 Quote
Cindy Wu
 02/25/2009 08:18PM  
+----
Newbie

Status: offline


Registered: 02/25/2009
Posts: 2
Thank you so much, Mike!
it worked!! Smile

 
Profile Email
 Quote
dm
 02/25/2009 08:18PM  
+----
Newbie

Status: offline


Registered: 03/06/2009
Posts: 6
Yes, thank you very much(!)

 
Profile Email
 Quote
   
Content generated in: 0.08 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login