Hi John,<br><br>the error is independent of the file we are using and already appears if you just say: ast=AstrometricParameters()<br><br>Cheers,<br>
Johannes<br><br><br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 3:11 PM, John P. McFarland <span dir="ltr"><<a href="mailto:mcfarland@astro.rug.nl" target="_blank">mcfarland@astro.rug.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear Chien-Hsiu,<br>
<br>
The FIXME below is merely an optimization and has nothing to do with this.<br>
<br>
It appears you are using the AWBASE version of the code, and with that code I do not get any errors. I also tried various other configurations and see no problem. Can you send me an example of a frame where the AstrometricParametersTask fails so I can try it myself? Thanks.<br>
<br>
Cheers,<br>
<br>
<br>
-=John<br>
<br>
<br>
On Thu, 10 Feb 2011, Chien-Hsiu Lee wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear John,<br>
<br>
Below you can find the version of the SourceList.py and AstrometricParameters.py we are using:<br>
<br>
SourceList.py: Revision: 1.212<br>
AstrometricParameters.py: Revision: 1.153<br>
<br>
And there is a FIXME comment in the AstrometricParameters.py which could be related to this error:<br>
<br>
# FIXME Only need to figure out best way to get 'Area'<br>
## Get the USNO catalog directly from the database<br>
#usno_default_values = {'Xpos' : -1,<br>
# 'Ypos' : -1,<br>
# 'PosErr' : 1.0/3600,<br>
# 'A' : -4.20118523,<br>
# 'B' : -4.20118523,<br>
# 'Theta' : 0.}<br>
#usnosl_to_ldac_dict = {'A' : 'A_WCS',<br>
# 'B' : 'B_WCS',<br>
# 'POSANG' : 'THETAWCS',<br>
# 'FLAG' : 'Flag',<br>
# 'RA' : 'Ra',<br>
# 'SID' : 'SeqNr',<br>
# 'USNO_BMAG' : 'Mag',<br>
# 'DEC' : 'Dec',<br>
# 'USNO_RMAG' : 'Mag2'}<br>
#usno_needed_column_names = usnosl_to_ldac_dict.keys()<br>
#refsl = (SourceList.name == 'USNO Catalog').max('SLID')<br>
#refsl.make_ldac_catalog_on_sources(name=outcat, Area=..., attr_list=usno_needed_column_names, rename_dict=usnosl_to_ldac_dict)<br>
<br>
I tried to reduce the WFI data from scratch, and this error only occurs in the Astrometry task.<br>
<br>
Thanks and all the best,<br>
Chien-Hsiu Lee<br>
<br>
<br>
<br>
Quoting "John P. McFarland" <<a href="mailto:mcfarland@astro.rug.nl" target="_blank">mcfarland@astro.rug.nl</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear Chien-Hsiu,<br>
<br>
I have been unable to reproduce your error. Do you still get it with the most recent checkout? Are there other circumstances where this error occurs?<br>
<br>
Cheers,<br>
<br>
<br>
-=John<br>
<br>
John P. McFarland<br>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
OmegaCEN/NOVA/Target PostDoc/Scientific Programmer<br>
Kapteyn Instituut, Rijksuniversiteit Groningen<br>
Landleven 12 (Zernikeborg)<br>
9747 AD Groningen<br>
The Netherlands<br>
p: Postbus 800<br>
9700 AV Groningen<br>
The Netherlands<br>
e: <<a href="mailto:mcfarland@astro.rug.nl" target="_blank">mcfarland@astro.rug.nl</a>><br>
o: 0147 Zernikeborg (5419)<br>
t: +31 (0)50 363 8326<br>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
<br>
<br>
On Fri, 4 Feb 2011, Chien-Hsiu Lee wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear AWE users,<br>
<br>
I had a problem performing Astrometry on WFI data and was wondering if<br>
anyone had the same error. The error message can be reproduced as<br>
following:<br>
<br>
awe> ast=AstrometricParameters()<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
File<br>
"/afs/ipp/home/c/chlee/opipe/AWBASE/common/database/DBMeta.py", line<br>
301, in __call__<br>
return self.database.get_instance(self, *args, **kwargs)<br>
File<br>
"/afs/ipp/home/c/chlee/opipe/AWBASE/common/database/DBOracle.py", line<br>
293, in get_instance<br>
result.__init__(*args, **kwargs)<br>
File<br>
"/afs/ipp/home/c/chlee/opipe/AWBASE/astro/main/AstrometricParameters.py", line<br>
282, in __init__<br>
self.refsl = ImportSourceList(Name=USNO_NAME, Area=range)<br>
File "/afs/ipp/home/c/chlee/opipe/AWBASE/astro/main/SourceList.py",<br>
line 2010, in ImportSourceList<br>
import_range = Area_To_HTM_Ranges(depth = 9, Area = Area)<br>
File "/afs/ipp/home/c/chlee/opipe/AWBASE/astro/main/SourceList.py",<br>
line 2691, in Area_To_HTM_Ranges<br>
raise Exception, 'Area_To_HTM_Ranges: do not comprehend Area argument!'<br>
Exception: Area_To_HTM_Ranges: do not comprehend Area argument!<br>
<br>
The AWBASE we are using is checked-out on 2011.02.03.<br>
<br>
Best,<br>
Chien-Hsiu Lee<br>
<br>
----------------------------------------------------------------<br>
This message was sent using IMP, the Internet Messaging Program.<br>
<br>
_______________________________________________<br>
Issues mailing list<br>
<a href="mailto:Issues@astro-wise.org" target="_blank">Issues@astro-wise.org</a><br>
<a href="http://listman.astro-wise.org/mailman/listinfo/issues" target="_blank">http://listman.astro-wise.org/mailman/listinfo/issues</a><br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<br>
<br>
----------------------------------------------------------------<br>
This message was sent using IMP, the Internet Messaging Program.<br>
<br>
<br>
** ACCEPT: CRM114 PASS osb unique microgroom Matcher **CLASSIFY succeeds; success probability: 1.0000 pR: 28.0250<br>
Best match to file #0 (nonspam.css) prob: 1.0000 pR: 28.0250 Total features in input file: 5136<br>
#0 (nonspam.css): features: 1840617, hits: 1238483, prob: 1.00e+00, pR: 28.03#1 (spam.css): features: 2825434, hits: 2196762, prob: 9.44e-29, pR: -28.03<br>
</blockquote>
</blockquote></div><br>