Welcome to iraf.net Friday, April 26 2024 @ 02:43 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 how to dump the data of a spectrum got by iraf?
   
haha
 08/26/2014 02:59PM (Read 968 times)  
+++--
Chatty

Status: offline


Registered: 10/25/2013
Posts: 39
There is only one extension for a spectrum fits file got by iraf.
However there are four parts including primary, background...

Splot can display the spectrum with wavelength and flux.

I tried to read the data of the spectral fits file, but only get integral number-flux relationship.

There should be some keyword in the header of the fits and splot can distinguish it?

How does splot do it?

How to get wavelength-flux relationship conveniently?

 
Profile Email
 Quote
fitz
 08/26/2014 03:33PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The WSPECTEXT task can be used to dump the spectral values (if I understand what you want to do). If the data are in the 3-D multispec format then to access each of the individual bands you would use an image section when calling the task, e.g.

cl\$this->_split2($m[0]) wspectext spec.fits[*,*,2] ......

and the output should be the wavelength vs the value of whatever is in the band (flux, variance, sky, etc).

See also the SPECWCS and SCOPY help pages for details.

 
Profile Email
 Quote
haha
 08/29/2014 09:13AM  
+++--
Chatty

Status: offline


Registered: 10/25/2013
Posts: 39
Thank you. That works.

 
Profile Email
 Quote
   
Content generated in: 0.13 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