Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Logarithmic wavelength axis: problems with splot?

 
Post new topic   Reply to topic    iraf.net Forum Index -> Applications
View previous topic :: View next topic  
Author Message
pweilbacher



Joined: 07 Mar 2006
Posts: 19
Location: Germany

PostPosted: Mon Aug 22, 2011 4:41 pm    Post subject: Logarithmic wavelength axis: problems with splot? Reply with quote

Dear all,

is IRAF splot supposed to be able to read log-resampled spectra properly? I created some with my own software and found that splot displays what I think are wrong wavelengths. It could be that I understood the FITS WCS papers (especially "Representations of spectral coordinates in FITS") wrongly but I'm not sure...

An example spectrum is at http://www.aip.de/People/PWeilbacher/spec_log.fits, the relevant header keywords are

Code:
NAXIS   =                    1
NAXIS1  =                 1036
CRPIX1  =                   1.
CD1_1   =              0.78125
CTYPE1  = 'AWAV-LOG'
CUNIT1  = 'Angstrom'
OBJECT  = 'Test (DATA)'
CRVAL1  =                5530.


Any hints?
Peter.


Last edited by pweilbacher on Thu Aug 25, 2011 12:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
pweilbacher



Joined: 07 Mar 2006
Posts: 19
Location: Germany

PostPosted: Thu Aug 25, 2011 12:55 pm    Post subject: Reply with quote

OK, so I found http://adsabs.harvard.edu/full/1993ASPC...52..467V ("The IRAF/NOAO Spectral World Coordinate Systems") in the meantime and this is apparently still the way the spectral WCS is handled in IRAF. So while my file may be correct, and is actually handled correctly e.g. in SPLAT (and as 2D spectrum also in DS9), it probably cannot be recognized correctly by IRAF tasks until they are rewritten to take into account current WCS standards.
Back to top
View user's profile Send private message
valdes
IRAF Guru


Joined: 11 Nov 2005
Posts: 677

PostPosted: Fri Sep 02, 2011 10:24 pm    Post subject: Reply with quote

Hello,

As you surmised, the IRAF spectroscopy system predates the FITS work on spectral coordinate system by decades and updates to the IRAF coordinate systems is, unfortunately, pretty low priority in such a stable system. Logarithm coordinates are supported. In your example you need to

Code:

DC-FLAG =                    1
CRVAL1  =      3.7427251313047   (log10(5530.))
CD1_1   =   6.1350560486062E-5 (log10(5530.+0.78125)


This could certainly be automated easily in IRAF if there is a lot of data.

Yours,
Frank Valdes
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.67 seconds