Welcome to iraf.net Friday, April 26 2024 @ 05:34 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Adding comments and history information to FITS headers
   
joel
 02/15/2007 03:09AM (Read 4378 times)  
+----
Newbie

Status: offline


Registered: 12/19/2005
Posts: 3
Howdy,
In some of my cl scripts, I would like them to be able to add COMMENT and HISTORY lines to a FITS header. I would also like to add comment fields after keywords (e.g., KEYWORD = VALUE / comment). I can't seem to find a syntax for HEDIT that will work, or any other task that will do the trick. I'm stumped.
jp

 
Profile Email
 Quote
fitz
 02/15/2007 03:09AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Hi Joel,This is a feature that's been asked for over the years that we never got around to implementing, but I'll add it to the list for the final V2.13 release work. While it can't be done directly with HEDIT, the HFIX task will by default put you in a text editor where you can manually edit the header, or it can run an arbitrary command that could automatically process the header (e.g. using an awk/sed script of some kind). Another approach if you just want to add keywords in bulk is the MKHEADER task in the ARTDATA package. Note the IMFORT interface does allow you to add a comment to new keywords, so a small imfort task will also do the trick.-Mike

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