我試圖在2MASS目錄上用astroquery.vizier.VizierClass.query_region()
進行比較大的查詢。astroquery:vizier.query_region over a large area failing
雖然它適用於小區域,但它在大面積上失敗。 這裏是代碼我使用:
from astroquery.vizier import Vizier
import astropy.units as u
import astropy.coordinates as coord
twomass_query=Vizier(columns=["Jmag","Hmag","Kmag","e_Jmag","e_Hmag","e_Kmag","Qflg"],
catalog=["II/246/out"])
twomass_query.ROW_LIMIT = -1
twomass_query.TIMEOUT = 3600
table=twomass_query.query_region(
coord.SkyCoord(ra=159.5, dec=-64.6, unit=(u.deg, u.deg), frame='icrs'),
width=[10*u.deg,10*u.deg],
return_type='asu-binfits')
我收到一條長的錯誤meesage結尾:
ConnectionError: ('Connection aborted.', BadStatusLine("''",))
的語法是因爲請求小盒子例如正確
width=[3*u.deg,3*u.deg]
工作正常。
我也嘗試切換到另一個大臣服務器(vizier.cfa.harvard.edu)以排除PB在服務器端,但讓我吃驚它給了我結束了不同的錯誤:
ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
這可能是Vizier服務器的內在限制。我會進一步調查。 – keflavich
謝謝!它可能是,但我會感到驚訝。我知道,例如[Scamp](http://www.astromatic.net/software/scamp)也使用Vizier服務器,並且在使用時我經常下載同樣大的區域。 – HBouy
你可以提出這個作爲一個問題在astroquery?我可以重現失敗,但我仍然不明白。 – keflavich