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 

data from spectrum to text

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



Joined: 29 May 2010
Posts: 16
Location: Indonesia

PostPosted: Thu Jun 03, 2010 12:41 pm    Post subject: data from spectrum to text Reply with quote

hi all,

i have several spectrum (after dispcor) with gaussian profile. i need to convert it into data text, i try to say that i want to display in text file instead spectrum (image file), so i can get detail. How can i do that?

Any help would be appreciated.

Thank you
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Jun 03, 2010 5:10 pm    Post subject: Reply with quote

See the WSPECTEXT task in the ONEDSPEC package.
Back to top
View user's profile Send private message
andreas



Joined: 29 May 2010
Posts: 16
Location: Indonesia

PostPosted: Sat Jun 05, 2010 2:43 am    Post subject: Reply with quote

I have little problem. I have identified (task IDENTIFY) the spectrum, and from identify plot, it was showed that the relationship become intensity vs wavelength.

Then i tried ONEDSPEC-WSPECTEXT and the output file was intensity vs pixel. How this can be?
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat Jun 05, 2010 3:21 am    Post subject: Reply with quote

The IDENTIFY task, assuming you saved the fitted results, only generates the database with the dispersion solution. You need to then use the DISPCOR task to apply the solution to the image so it has a proper WCS.

If you're just getting pixel values out instead of wavelengths you may have skipped this last step.
Back to top
View user's profile Send private message
andreas



Joined: 29 May 2010
Posts: 16
Location: Indonesia

PostPosted: Sat Jun 05, 2010 3:44 am    Post subject: Reply with quote

I forget to tell, that i was already tried DISPCOR for my spectrum. My spectrum is spectrum of comparison lamp. And there was error occured.

I have done DISPCOR for object star, with REFSPEC1=comparison_lamp1.fits and REFSPEC2=comparison_lamp2.fits (added via HEDIT task). I have found spectrum of object star with relationship wavelength vs intensity.

Any suggestion?
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat Jun 05, 2010 4:28 am    Post subject: Reply with quote

I'm not sure I understand: Are you saying there was a DISPCOR error on the comparison spectrum (what error?) and that when you used this in a REFSPEC keyword it didn't apply? For this to work the dispersion solution must have been applied to the comparison spectrum first so that it has the proper keywords. You'll need to solve the error you saw first.

Do either of your comparison or object spectra have a solution? Note you can use the SLIST task to print out what iraf thinks the wavelength solution is in each image.
Back to top
View user's profile Send private message
andreas



Joined: 29 May 2010
Posts: 16
Location: Indonesia

PostPosted: Sun Jun 06, 2010 8:43 am    Post subject: Reply with quote

DISPCOR error message:

Warning: Cannot open file (database/ecap_c1_ga)
Warning: Cannot open file (database/idap_c1_ga)
Warning: ap_c1: Dispersion data not found

in object star, i used comparison spectrum before and after object spectrum, and i think it is usual. In this comparison lamp, i don't really understand what should i fill. I tried with "WarmWhiteFl.data" and the result is error message just like above.

I have a solution for object star, but not in comparison lamp. I stucked in here, because i need wavelength vs intensity for comparison lamp, beside object star which i found it first. Here are the print out of task SLIST

ap_c 1 1 1 -1 1. 1. 765

What it means?

Thank you
Back to top
View user's profile Send private message Visit poster's website
andreas



Joined: 29 May 2010
Posts: 16
Location: Indonesia

PostPosted: Mon Jun 07, 2010 1:49 pm    Post subject: Reply with quote

problem solved!
i miss database where i work, that was why it was not worked and bocome error when i did task DISPCOR on my spectrum Very Happy
Back to top
View user's profile Send private message Visit poster's website
budding



Joined: 01 Jan 2007
Posts: 1

PostPosted: Wed Feb 09, 2011 10:34 pm    Post subject: Reply with quote

I have encountered a hitch with WSPECTEXT -- in onedspec. I am sure I have used this ok before. But maybe not when running IRAF on a cygwin platform as at present...(?)
WHat happens now (after something like wspectext [imagefile] [data.txt]
is the following:
task 'hselect' not found
"hselect (input, "$I,naxis, yes, ) specin)"
line 21: onedspec$wspectext.cl
called as : 'wspectext (input=w5540025s085.fit), output= ord85.txt)'
There is deinitely a file called hselect in c:\cygwin\iraf\riaf\images\imutil --

so why the fallover...?

Aould appreciate some help on this.

Ed Budding
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Wed Feb 09, 2011 10:37 pm    Post subject: Reply with quote

Be sure you did a MKIRAF to create a login.cl file, and that you typed 'cl' to login to iraf from the directory with that login.cl file. This is what loads the default packages that include HSELECT.

Otherwise, type 'images' and 'imutil' to load the proper package (but note you'll be missing the proper package for many other tasks).
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.13 seconds