Welcome to iraf.net Tuesday, April 23 2024 @ 11:33 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 how to get the ascii file of one spectrum(wavlength -flux) ?
   
haha
 12/19/2013 09:22PM (Read 2649 times)  
+++--
Chatty

Status: offline


Registered: 10/25/2013
Posts: 39
we can splot one spectrum easily.I know there are commands can convert 1 extension spectrum fits to ascii.

How about multi-extension spectrum?Generally there are four-extensions for iraf reduction spectrum.

I checked my spectrum fits files ,but did not find keys like crval.So how splot know the conversion factor between pixel and wavlength?

 
Profile Email
 Quote
fitz
 12/20/2013 03:39AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try using SCOPY to extract the various planes of the data (e.g. see example 10 of the SCOPY help page) to individual 1-D images, then use WSPECTEXT to write them out as wavelength/intensity pairs.

 
Profile Email
 Quote
haha
 12/20/2013 01:43PM  
+++--
Chatty

Status: offline


Registered: 10/25/2013
Posts: 39
I tried scopy but still,I only got pixel and intensity dataset.
The mainbody of the spectral fits file is pixel and intensity,not wavelength and intensity.

Splot should find out some key in spectral fits header.

 
Profile Email
 Quote
fitz
 12/20/2013 01:55PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Could you upload a sample image to the anonymous ftp at ftp://iraf.noao.edu/pub, or post a header here, so I can have a look? We may be thinking of two different types of images....

 
Profile Email
 Quote
fitz
 12/20/2013 04:18PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Thanks for the data, the following worked for me:

PHP Formatted Code

    cl> scopy test.fits band1.fits band=1
    cl> scopy test.fits band2.fits band=2
               :         :         :               :
    cl> wspectext band3.fits STDOUT
 


The output of WSPECTEXT is a FITS header followed by wavelength/intensity pairs.

 
Profile Email
 Quote
haha
 12/22/2013 06:58AM  
+++--
Chatty

Status: offline


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

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