hedit and ‘-‘ in keyword name
Eugene A. Semenko wrote on Nov 10, 2006
Hi!
Recently i asked about my troubles with displaying of some .fits files. I have found that problem was in incorrect data written in header. Keyword NAXIS=2, NAXIS1 and NAXIS2 both are equals to 2052. BUT! I have also third keyword NAXIS- which equal to 1. So, IRAF think that I have an image 2052x1 which is obviously wrong. What is a right method to delete this keyword? I try to use hedit but i don't know how to write query.
hedit myfile.fts naxis- delete+ won't work, of cource.
Thanks!
Recently i asked about my troubles with displaying of some .fits files. I have found that problem was in incorrect data written in header. Keyword NAXIS=2, NAXIS1 and NAXIS2 both are equals to 2052. BUT! I have also third keyword NAXIS- which equal to 1. So, IRAF think that I have an image 2052x1 which is obviously wrong. What is a right method to delete this keyword? I try to use hedit but i don't know how to write query.
hedit myfile.fts naxis- delete+ won't work, of cource.
Thanks!
Eugene Romas wrote on Nov 10, 2006
Eugene. I just tested your problem:
and
As you can see, "LTM1_1" really deleted! Don't know in that problem you have...
ecl> hedit lira1 ltm1_1 delete+
delete lira1,LTM1_1 ? (yes):
lira1,LTM1_1 deleted
update lira1 ? (yes):
lira1 updated
and
ecl> imhead lira1 long+
lira1[3474,2314][short]:
No bad pixels, min=0., max=0. (old)
Line storage mode, physdim [3474,2314], length of user area 2673 s.u.
Created Fri 10:19:20 10-Nov-2006, Last modified Fri 10:19:24 10-Nov-2006
Pixel file "lira1.fit" [ok]
EXTEND = F / File may contain extensions
ORIGIN = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator
DATE = '1.1.1.1:-)' / Date FITS file was generated
IRAF-TLM= '10:19:24 (10/11/2006)' / Time of last modification
HISTORY THIS FITS FILE WAS GENERATED BY GIMP USING FITSRW
COMMENT FitsRW is (C) Peter Kirchgessner (peter@kirchgessner.net), but available
COMMENT under the GNU general public licence.
COMMENT For sources see http://www.kirchgessner.net
COMMENT Image type within GIMP: GIMP_RGB_IMAGE
COMMENT Sequence for NAXIS3 : RED, GREEN, BLUE
LTM2_2 = 1.
LTM3_3 = 1.
WAXMAP01= '1 0 2 0 0 0 '
As you can see, "LTM1_1" really deleted! Don't know in that problem you have...
Eugene Romas wrote on Nov 10, 2006
Just tested:
"NAXIS-" not founded in the header of file!
ecl> hedit lira1 "naxis-" addonly+ update+
ecl> hedit lira1 naxis-. delete+
"NAXIS-" not founded in the header of file!
Last post on Nov 10, 2006