[Issues] using external SourceLists
wjvriend at astro.rug.nl
wjvriend at astro.rug.nl
Thu Nov 15 14:41:32 CET 2007
Hi Johannes,
I've encountered this problem before and made a method to determine the
bounding box from the coordinates of the sources. Tomorrow I'll check how
to integrate this into the SourceList class.
regards,
Willem-Jan Vriend.
> Hi all,
>
> I also encountered this problem, I changed my code SourceList.py a little
> bit --> I hardwired llRA, llDEC,....,urDEC, valid for my particular
> external sourcelist, and added an argument whether to use the hardwire or
> not.
>
> Gert Sikkema
>
>> Hi Johannes,
>>
>> Please note that Kor has days off today and tomorrow, so he probably
>> won't answer before Monday.
>>
>> The WCS information is needed to derive the bounding box of the sources
>> in the SourceList; for query purposes these attributes of SourceList:
>>
>> llRA = persistent('Right Ascension of lower left
>> containing box [deg]', float, 0.0)
>> llDEC = persistent('Declination of lower left containing
>> box [deg]', float, 0.0)
>> lrRA = persistent('Right Ascension of lower right
>> containingbox [deg]', float, 0.0)
>> lrDEC = persistent('Declination of lower right containing
>> box[deg]', float, 0.0)
>> ulRA = persistent('Right Ascension of upper left
>> containing box [deg]', float, 0.0)
>> ulDEC = persistent('Declination of upperer left containing
>> box [deg]', float, 0.0)
>> urRA = persistent('Right Ascension of upper right
>> containingbox [deg]', float, 0.0)
>> urDEC = persistent('Declination of upper right containing
>> box[deg]', float, 0.0)
>>
>> are set. To do this accurately apparently the projection is necessary.
>>
>> Ewout
>>
>>
>>
>> Johannes Koppenhoefer wrote:
>>> Hello,
>>>
>>> I tried to create a SourceList from an external LDAC/FITS catalog
>>> following the instructions in the manual on page 183 and using the
>>> AWBASE code.
>>> It seems the method make_sourcelist_from_catalog() needs wcs
>>> information. Why is that, since the list already has ALPHA_SKY and
>>> DELTA_SKY?
>>>
>>> Bye,
>>> Johannes
>>>
>>>
>>> awe> sl=SourceList()
>>> awe> sl.catalog = 'variables.fits'
>>> awe> sl.make_sourcelist_from_catalog()
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in ?
>>> File
>>> "/usr/local/scipck/astrowise/opipe/AWBASE/astro/main/SourceList.py",
>>> line 766, in make_sourcelist_from_catalog
>>> make_sourcelist_from_catalog creates a SourceList from a catalog
>>> created
>>> File
>>> "/usr/local/scipck/astrowise/opipe/AWBASE/astro/main/SourceList.py",
>>> line 496, in set_coordinate_ranges
>>>
>>> File
>>> "/usr/local/scipck/astrowise/opipe/AWBASE/astro/main/SourceList.py",
>>> line 1981, in get_projection_from_cat
>>> cdelt1 = cdelt2 = crota2 = None
>>> Exception: Not enough Coordinate System Information in header (CD,
>>> CDELT, CROTA)!
>>>
>>> _______________________________________________
>>> Issues mailing list
>>> Issues at astro-wise.org
>>> http://listman.astro-wise.org/mailman/listinfo/issues
>>>
>>
>> --
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> Drs. Ewout Helmich <><>
>> Kapteyn Astronomical Institute <><> Astro-WISE/OmegaCEN
>> Landleven 12 <><>
>> P.O.Box 800 <><> email: helmich at astro.rug.nl
>> 9700 AV Groningen <><> tel : +31(0)503634548
>> The Netherlands <><>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>> _______________________________________________
>> Issues mailing list
>> Issues at astro-wise.org
>> http://listman.astro-wise.org/mailman/listinfo/issues
>>
>
>
> _______________________________________________
> Issues mailing list
> Issues at astro-wise.org
> http://listman.astro-wise.org/mailman/listinfo/issues
>
More information about the Issues
mailing list