Welcome to iraf.net Friday, April 26 2024 @ 10:13 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 how to extract only a line of information from the header
   
china_108
 12/25/2011 03:24PM (Read 2258 times)  
++---
Junior

Status: offline


Registered: 09/24/2008
Posts: 25
I forgot this command and couldn't find it out. I need to extract only a line of information, say the exposure time from the header and write it into a plain text file. What is that command?Thanks a lot!

 
Profile Email
 Quote
fitz
 12/25/2011 03:24PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
See the help page for HSELECT or IMGETS

 
Profile Email
 Quote
Marek42
 12/25/2011 03:24PM  
+----
Newbie

Status: offline


Registered: 01/20/2006
Posts: 9
I tend just to do:imhead @files l+ | grep KEYWORD > file.txtand either use AWK/SED to clean it up or do it in vi...ie:
sed 's/KEYWORD=//' file.txt > file2.txtIf I want multiple ones I do a file for each and then joinlines them together...-M

 
Profile Email
 Quote
AnTaR3s
 12/25/2011 03:24PM  
+++--
Chatty

Status: offline


Registered: 10/24/2009
Posts: 58
If you are not restricted to IRAF tasks, give dfits in combination with fitsort a chance:http://archive.eso.org/saft/dfits/Very useful!!cheers

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