Welcome to iraf.net Friday, March 29 2024 @ 03:19 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Wavelength units on NIR spectra
   
massey
 04/10/2017 09:58PM (Read 1127 times)  
+++++
Active Member

Status: offline


Registered: 02/10/2006
Posts: 162
I have some NIR spectra taken with FIRE on Magellan that I reduced with their IDL pipeline. When I splot the spectra, they look fine, and the units on the X axis are Angstroms--all well and good! But, when I wspect the spectra to a text file, the uni-69 13 01.95ts are clearly the log of the wavelength in angstroms. Here's what the fits header says:

CDELT1 = 1.81081307382E-05 /
CRPIX1 = 1 /
CTYPE1 = 'LINEAR ' /
DC-FLAG = 1 /
CRVAL1 = 3.91592865169 /

So, I'm extremely puzzled. How does splot know how to do the right thing and convert this to angstroms? Why isn't wspect as smart?

thanks!


 
Profile Email Website
 Quote
valdes
 04/25/2017 10:14PM  
+++++
Active Member

Status: offline


Registered: 11/11/2005
Posts: 728
Hi Phil,

Your answer is implicit in your question. Why doesn't wspect know what to do? Because, unfortunately, it wasn't written that way. To be less factious, splot and many of the onedspec tasks use a library of routines that provide units conversion features and recognize various ways that headers are encoded. A lot of effort went into understanding the many ways people and observatories properly and improperly define units in image headers. wspect text is not in that category and is actually a pretty simple task that is a wrapper around the basic wtextimage and listpixels tasks and is not a onedspec tool in the same sense.

Frank

 
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