Welcome to iraf.net Friday, May 17 2024 @ 08:01 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Creating a custom splot.log file
   
ezrastar
 05/25/2010 07:01PM (Read 1806 times)  
+----
Newbie

Status: offline


Registered: 05/25/2010
Posts: 2
I am looking for a way to either customize the default splot.log file, or to create an additional log file which only records certain data. I've searched online but haven't found anything to this effect. Any ideas? Thanks!Ezra

 
Profile Email
 Quote
fitz
 05/25/2010 07:01PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The best you can do is use the ":# <comment>" command to add a comment to the file or toggle it on or off, the filename and what gets written to it aren't configurable. A task like FIELDS can be used to extract columns from a text file but you'll need to find some other ways to remove e.g. the date string and blank lines. Depending on exactly what information you want, there may (or may not) be other tasks that would do the job.

 
Profile Email
 Quote
ezrastar
 05/25/2010 07:01PM  
+----
Newbie

Status: offline


Registered: 05/25/2010
Posts: 2
Thank you for your response.I've been working with a set of spectra data for the last several days, and roughly 50% of my time involves direct copying and typing of splot data from the graph. The splot.log is doing nearly exactly what I'm doing, so I was persuing to connect the two by just customizing the splot.log output. I'm new to the IRAF environment, is it open source? I would like to contribute time in case you think some development to this end could be managed.Thanks again, I'll keep playing with it.

 
Profile Email
 Quote
fitz
 05/25/2010 07:01PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The source code for IRAF has always been available and you're free to do with it what you like. In this case, see the code in $iraf/noao/onedspec/splot. The logfile stuff gets written in procedures in e.g. eqwidth.x or deblend.x so you'll need to find the command you use and trace it from there (see 'splot.x').If you decide to go ahead an tackle this I can talk you through what's needed to recompile the task locally on your machine. If you have general suggestions about what might be a useful addition we could perhaps add that here and get you a patched binary. Anyway, good luck.

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