Welcome to iraf.net Tuesday, May 21 2024 @ 11:00 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Wavelength and spectrum separated
   
yaelnaze
 11/30/2009 02:02PM (Read 1675 times)  
+----
Newbie

Status: offline


Registered: 11/30/2009
Posts: 2
Hello,
I've an echelle spectrum (flux = fct of pixel number) on the one hand, and wavelength calib (lambda = fct of pixel number) on the other. Both are provided as fits files (in multispec format). How can I associate them without fitting the wavelength (cf. task mkmultispec) ? or alternatively : how can I save both files as ascii, and then transform a merged ascii into a fits again (either multispec or a series of onedspec)?Regards,

 
Profile Email
 Quote
fitz
 11/30/2009 02:02PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If by 'associate' you mean you want the flux from one file and the wavelength from the other ..... WSPECTEXT will convert a FITS file to ascii, FIELDS can select a single column from a text table and JOINLINES can be used to paste columns. Lastly, RSPECTEXT can convert this back to a fits image. Note however that you need to be careful not to have RSPECTEXT try to apply its own dispersion solution to the header.See the help pages for each task for details.

 
Profile Email
 Quote
yaelnaze
 11/30/2009 02:02PM  
+----
Newbie

Status: offline


Registered: 11/30/2009
Posts: 2
Indeed, I thought of this solution, but I was thinking there was a much "simpler" (one command) solution... Going through at least 17*2*39 files is not fun : )

 
Profile Email
 Quote
fitz
 11/30/2009 02:02PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Well, you can always write a script and make it a one-command solution ....

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