[Issues] Error loading header from

John P. McFarland mcfarland at astro.rug.nl
Tue Sep 11 15:56:27 CEST 2007


Hi Philippe,

This error has to do with how the object names are constructed for new 
CoaddedRegriddedFrames.  To add more description, all the object names of 
the frames that went into the CoaddedRegriddedFrame are concatenated into 
one long object name.  It appears that Eclipse (actually qfits) has a 
problem with this when the length of the entry is 70 characters or greater. 
In this case, a CONTINUE card is added which Eclipse apparently cannot 
handle properly.  I do believe that the original header is written by 
pyfits.  Indeed, pyfits has no problem opening such a header.

We will work to resolve this issue as soon as possible.

Cheers,


-=John


On Tue, 11 Sep 2007, Philippe Heraudeau wrote:

> Hi  John,
>
> Another problem loading the header of a newly created coadd...
> Cheers,
> Philippe
>
> r = CoaddedRegriddedFrame.OBJECT.like('DEEP*')
> awe> len(r)
> 2
> awe> for i in r: print i.filename, i.creation_date
> ...
> Sci-PHERAUDEAU-WFI-------#844---Coadd---Sci-54354.3672915-6412092a16d3dea7d2b79da4423d345c4811efcf.fits
> 2007-09-11 08:49:00
> Sci-PHERAUDEAU-WFI-------#844---Coadd---Sci-54111.6048124-e3fd2760f5d8c48a004bd50583bd8d2d9f6ab6b7.fits
> 2007-01-11 14:34:26
> r[0].retrieve()
> [aibn203] 10:53:16 - Retrieving
> Sci-PHERAUDEAU-WFI-------#844---Coadd---Sci-54354.3672915-6412092a16d3dea7d2b79da4423d345c4811efcf.fits
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "/user2/heraud/opipe/astro/main/BaseFrame.py", line 358, in retrieve
>    if self.is_compressed():
>  File "/user2/heraud/opipe/astro/main/BaseFrame.py", line 345, in
> is_compressed
>    primary = eclipse.header.header(self.pathname)
>  File "/var/lib/python-support/python2.3/eclipse/header.py", line 22,
> in __init__
>    raise EclipseError, 'Error loading header from '+filename
> eclipse.common.EclipseError: Error loading header from
> Sci-PHERAUDEAU-WFI-------#844---Coadd---Sci-54354.3672915-6412092a16d3dea7d2b79da4423d345c4811efcf.fits
>
>


More information about the Issues mailing list