astroquery:vizier.query_region 大面积失败
astroquery: vizier.query_region over a large area failing
我尝试使用 astroquery.vizier.VizierClass.query_region()
在 2MASS 目录上进行相对较大的查询。
虽然它适用于小区域,但不适用于大区域。
这是我使用的代码:
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')
我收到一条很长的错误消息,结尾为:
ConnectionError: ('Connection aborted.', BadStatusLine("''",))
语法是正确的,因为请求一个较小的框,例如
width=[3*u.deg,3*u.deg]
工作正常。
我还尝试切换到另一个 ViZieR 服务器 (vizier.cfa.harvard.edu) 以排除服务器端的 pb 但令我惊讶的是它给了我一个不同的错误结尾:
ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
我现在几乎可以肯定这是 VizieR 服务器的错误。我无法在 Vizier 网页上执行请求,它也是 returns 错误或空 table。问题似乎是请求的输出格式 (return_type='asu-binfits')。如果我请求 Votable 那么它可以在 Vizier 网页上使用,也可以使用 astroquery。
我已写信给 CDS 帮助台通知问题。
希望他们能尽快修复它,因为二进制 FITS tables 比 ASCII votables 请求(下载)快得多!
我怀疑有一种方法可以请求二进制 Votable?对应的return_type是什么?
我尝试使用 astroquery.vizier.VizierClass.query_region()
在 2MASS 目录上进行相对较大的查询。
虽然它适用于小区域,但不适用于大区域。 这是我使用的代码:
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')
我收到一条很长的错误消息,结尾为:
ConnectionError: ('Connection aborted.', BadStatusLine("''",))
语法是正确的,因为请求一个较小的框,例如
width=[3*u.deg,3*u.deg]
工作正常。
我还尝试切换到另一个 ViZieR 服务器 (vizier.cfa.harvard.edu) 以排除服务器端的 pb 但令我惊讶的是它给了我一个不同的错误结尾:
ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
我现在几乎可以肯定这是 VizieR 服务器的错误。我无法在 Vizier 网页上执行请求,它也是 returns 错误或空 table。问题似乎是请求的输出格式 (return_type='asu-binfits')。如果我请求 Votable 那么它可以在 Vizier 网页上使用,也可以使用 astroquery。
我已写信给 CDS 帮助台通知问题。
希望他们能尽快修复它,因为二进制 FITS tables 比 ASCII votables 请求(下载)快得多! 我怀疑有一种方法可以请求二进制 Votable?对应的return_type是什么?