how to extract only a line of information from the header
Poon Helen wrote on Dec 25, 2011
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!
Thanks a lot!
Mike Fitzpatrick wrote on Dec 25, 2011
See the help page for HSELECT or IMGETS
Marek42 wrote on Dec 25, 2011
I tend just to do:
imhead @files l+ | grep KEYWORD > file.txt
and either use AWK/SED to clean it up or do it in vi...
ie:
sed 's/KEYWORD=//' file.txt > file2.txt
If I want multiple ones I do a file for each and then joinlines them together...
-M
imhead @files l+ | grep KEYWORD > file.txt
and either use AWK/SED to clean it up or do it in vi...
ie:
sed 's/KEYWORD=//' file.txt > file2.txt
If I want multiple ones I do a file for each and then joinlines them together...
-M
AnTaR3s wrote on Dec 25, 2011
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
http://archive.eso.org/saft/dfits/
Very useful!!
cheers
Last post on Dec 25, 2011