![]() |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[fitsbits] WCS keywords in tables | Mark Calabretta | FITS | 0 | April 8th 10 05:19 AM |
[fitsbits] WCS keywords in tables | Steve Allen | FITS | 0 | April 6th 10 07:12 PM |
[fitsbits] question about WCS keywords for pixel list | Phil Hodge | FITS | 0 | September 4th 09 05:12 PM |
[fitsbits] which WCS keywords? | Phil Hodge | FITS | 5 | September 19th 05 02:55 AM |
[fitsbits] Blank strings in FITS keywords. | Tom McGlynn | FITS | 4 | March 1st 05 07:27 PM |