[Issues] SourceList does not see "frame.DATE_OBS" in some cases

Edwin A. Valentijn valentyn at astro.rug.nl
Fri Jun 23 17:54:20 CEST 2006


the various dates are in oberving block, eg:
SourceList.frame.observing_block.date_obs.absdate
Edwin
Philippe Heraudeau wrote:

> Hello,
>
> GAstromTask complains that some source list do not have DATE_OBS:
> -------------------------------------------------------------------------
> [foucault] 16:19:01 - Using SourceList 
> GAS-Sci-PHERAUDEAU-WFC-------197-A5506-4-Red---Sci-53878.4378739.fits.slist, 
> SLID = 39600, number of sources =   134
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/data/users/heraud/ASTROWISE/opipe/DBRecipes/GAstrom.py", line 
> 134, in execute
>     self.make_global_astrometric_solution()
>   File "/data/users/heraud/ASTROWISE/opipe/DBRecipes/GAstrom.py", line 
> 174, in make_global_astrometric_solution
>     gastrom.make()
>   File 
> "/data/users/heraud/ASTROWISE/opipe/astro/main/GAstrometric.py", line 
> 555, in make
>     self.organize_sourcelists()
>   File 
> "/data/users/heraud/ASTROWISE/opipe/astro/main/GAstrometric.py", line 
> 112, in organize_sourcelists
>     dith_name = sl.frame.DATE_OBS
> AttributeError: 'SourceList' object has no attribute 'DATE_OBS'
> -------------------------------------------------------------------------
> The reduced frame has DATE_OBS but SourceList does not 'see' it for 
> this frame as shown here:
> a = ReducedScienceFrame.filename == 
> 'Sci-PHERAUDEAU-WFC-------197-A5506-4-Red---Sci-53878.4378739.fits'
> awe> print a[0].DATE_OBS
> 2006-02-20 02:13:24.00
> awe> print a[0].raw.DATE_OBS
> 2006-02-20 02:13:24.00
> ====================================================================
> a = SourceList.name == 
> 'GAS-Sci-PHERAUDEAU-WFC-------197-A5506-4-Red---Sci-53878.4378739.fits.slist' 
>
> print a[0].frame.filename,a[0].frame.DATE_OBS
> Sci-PHERAUDEAU-WFC-------197-A5506-4-Red---Sci-53878.4378739.fits
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'SourceList' object has no attribute 'DATE_OBS'
> ====================================================================
> Thanks for having a look at it.
>
> Philippe
>
>
>

-- 
----------------------------------------------------------------------
Edwin A. Valentijn
Head OmegaCEN                       www   : www.astro.rug.nl/omegacen
Kapteyn Astronomical Institute      tel   : +31 (0)50 3634011
P.O.Box 800                         mobile: +31 (0)6 48276416
NL-9700 AV Groningen                e-mail: valentyn at astro.rug.nl
The Netherlands                     www   : www.astro.rug.nl/~valentyn
---------------------------------------------------------------------- 









More information about the Issues mailing list