A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » FITS
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

HIERARCH keywords with fmodhead of HEATOOLS



 
 
Thread Tools Display Modes
  #1  
Old October 1st 12, 06:30 PM posted to sci.astro.fits
mathar
external usenet poster
 
Posts: 4
Default HIERARCH keywords with fmodhead of HEATOOLS

This is a patch of the Fortran program fmodhead in
the file ftools/futils/src/fmodhead/fmodhead.f of
the HEATOOLS http://heasarc.gsfc.nasa.gov/lheasof.../heatools.html :
to enable handling (adding/removing) HIERARCH keywords:

i)
In fmodhead.f, line 243, the comment

C if extension is 0 then give error and exit

should read

C If extension is negative then give error and exit
C Allow fitsfile[0] to address the primary header.

ii)
In fmodhead.f, near line 208, add a variable
integer kylen

iii)
In fmodhead.f, line 210, extend the size of kywrd to 72

C Maximum size of keyword (including HIERARCH), equal to FLEN_KEYWORD
C in fitsio.h
character*72 kywrd


iv)
Replace line 275 in fmodhead.f (assignment of kywrd) by
C kywrd = card(1:8)
C Call a more general parser to deal with HIERARCH keywords
call ftgknm(card,kywrd,kylen,ftstat)

To install goto BUILD_DIR and recompile with
make
make install

--
Richard J. Mathar www.mpia.de/~mathar
  #2  
Old October 30th 12, 10:00 PM posted to sci.astro.fits
mathar
external usenet poster
 
Posts: 4
Default HIERARCH keywords with fmodhead of HEATOOLS

A workaround for the problems of using fmodhead with HIERARCH keywords
is a re-implementation (based on CCfits) that I called fedithead, available
as www.mpia.de/~mathar/progs/fedithead.tar.gz . It uses the boost::regexp
package to allow block replacements, and ensures that the
keywords that are to be replaced and their new versions are
set apart by separating the two strings by colons.

Richard Mathar
  #3  
Old October 31st 12, 04:58 PM posted to sci.astro.fits
Christian Froeschlin
external usenet poster
 
Posts: 8
Default HIERARCH keywords with fmodhead of HEATOOLS

From what I understand, sci.astro.fits is mostly abandoned
for being "obsolete" and active discussions are conducted via
fitsbits - which is a mailing list, of all things ...

http://listmgr.cv.nrao.edu/mailman/listinfo/fitsbits
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[fitsbits] WCS keywords in tables Mark Calabretta FITS 0 April 8th 10 04:19 AM
[fitsbits] WCS keywords in tables Steve Allen FITS 0 April 6th 10 06:12 PM
[fitsbits] question about WCS keywords for pixel list Phil Hodge FITS 0 September 4th 09 04:12 PM
[fitsbits] which WCS keywords? Phil Hodge FITS 5 September 19th 05 01:55 AM
[fitsbits] Blank strings in FITS keywords. Tom McGlynn FITS 4 March 1st 05 07:27 PM


All times are GMT +1. The time now is 07:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 SpaceBanter.com.
The comments are property of their posters.