Welcome to iraf.net Monday, May 13 2024 @ 01:00 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Iraf in Microns?
   
cosmicbabs
 01/23/2008 04:17PM (Read 2520 times)  
+----
Newbie

Status: offline


Registered: 10/11/2007
Posts: 6
Hi!I have some ascii files in micron units. I converted them in .fits files using the task 'rspectext' in the oned package and when I plotted them with splot I realized that it assumed that the unit of wavelength was angstroms. I know I can multiply my wavelenghts in the ascii file by 10^4 and then get angstroms and then in splot type :units microns if I want to see the spectrum in microns but (since I'm lazy Smile) I was wondering if there is a way to make iraf work in microns (by default)Confused: I checked the rspectext task but there's no choice there to put the wavelength format (like in wspectext)Thanks!
B

Barbara Rojas babs@astro.cornell.edu 'THIS world is not enough...'
 
Profile Email Website
 Quote
valdes
 01/23/2008 04:17PM  
+++++
Active Member

Status: offline


Registered: 11/11/2005
Posts: 728
Hi,The spectral packages, such as onedspec, have heuristics that try and handle units and recognize various keywords for the dispersion units. In your case you should be able to add a keyword CUNIT1 (or whatever axis is the wavelength) with a value of 'micron'. Note that CUNITn is not standard FITS though its meaning would be quite clear.Once the software knows the units there are ways to change the units in various tasks. Note that SPLOT will plot in angstroms by default. There is a parameter in SPLOT to specify the desired default units. Note also the ":units" command to change units. This also appears in other tasks.Yours,
Frank Valdes

 
Profile Email
 Quote
cosmicbabs
 01/23/2008 04:17PM  
+----
Newbie

Status: offline


Registered: 10/11/2007
Posts: 6
Sweet! thanks!
B

Barbara Rojas babs@astro.cornell.edu 'THIS world is not enough...'
 
Profile Email Website
 Quote
   
Content generated in: 0.05 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