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

Philippe Heraudeau heraud at astro.rug.nl
Fri Jun 23 17:42:08 CEST 2006


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



-- 
--------------------------------------------------------------------------
Philippe Heraudeau                   | Tel.  : (31)-50-3634036
Kapteyn Astronomical Institute       | Fax   : (31)-50-3636100
P.O. Box 800                         | E-mail: P.Heraudeau at astro.rug.nl
9700 AV Groningen                    |
The Netherlands                      |
--------------------------------------------------------------------------


More information about the Issues mailing list