View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

esohdr (esowfi) fails on 2002 archive WFI fits files

Dario Fadda wrote on Mar 01, 2013

Hi,

I am trying to use the esowfi package to reformat the header of WFI fits files in
order to reduce them using mscred.
My operative system is Ubuntu Linux (64bits) and I installed iraf version 2.16.
The mscred package uses binaries built for the 64bits linux from the iraf.net
repository for version 2.16. I got also the esowfi from the same repository.

When running esohdr on WFI files from the ESO archive (observation year 2002),
I obtain this error:

esowfi> esohdr
List of raw ESO MEF files (*):
WFI.2002-02-15T20:58:26.120.fits: FLAT,SCREEN
Observation type (zero|dark|flat|object): flat
ltm11=1., ltm22=1.
ltm11=1., ltm22=1.
ltm11=1., ltm22=1.
ltm11=1., ltm22=1.
ltm11=1., ltm22=1.
ltm11=1., ltm22=1.
ltm11=1., ltm22=1.
ltm11=1., ltm22=1.
ERROR: Bad extension version range list
"del-, verify-, show-, update+)"
line 49: mscsrc$mscsetwcs.cl
called as: `mscsetwcs (images=WFI.2002-02-15T20:58:26.120.fits, database=esodb$wcs.db, ra=ra, dec=dec, ra_offset=0., dec_offset=0.)'
"ra_offset=0., dec_offset=0.)"
line 262: esowfi$src/esohdr.cl
called as: `esohdr ()'

Checking the header of the file after running the command, the
HIERARCH ESO keywords are converted, but clearly the astrometry
is not updated.
I can't make sense of this error and I didn't find anything similar either
on the forum or elsewhere. Maybe, something got wrong with my
IRAF installation ?

Thanks in advance for any help,
Dario

Mike Fitzpatrick wrote on Mar 01, 2013

I think this is a problem in the new image template code. You can disable this and go back to the old code by doing

[code]cl> reset use_new_imt = no[\code]

If this fixes the problem, you can make the change permanent by editing the hlib$zzsetenv.def file where it is set, or by putting the above in your login.cl before the final 'keep' statement.

Dario Fadda wrote on Mar 01, 2013

Thanks a lot,

problem fixed !

Cheers,
Dario

Last post on Mar 01, 2013