我想使用一個SkyCoord對象作爲一個輸入參數包含座標的數組 2D輪廓圖。 要做到這一點,我想在參數上劃一個網格。 代碼是這樣的。 l = np.linspace(0, 360, 180)
b = np.linspace(-90, 90, 90) # Two axes I wanted to make contour on.
y=y.reshape(y.size,1,1) #(origina
我想的astropyAngles對象實例添加到NumPy數組,我得到一個錯誤: ValueError: setting an array element with a sequence. 的Angle對象是這個樣子: <Angle 1.2557346257567 deg> 如果我把它們放在一個正常的Python列表中,然後我得到: s = [<Angle 1.2562500714928306 de
我試圖在2MASS目錄上用astroquery.vizier.VizierClass.query_region()進行比較大的查詢。 雖然它適用於小區域,但它在大面積上失敗。 這裏是代碼我使用: from astroquery.vizier import Vizier
import astropy.units as u
import astropy.coordinates as coord
我正在將一個像素座標適配文件轉換爲Python中的世界座標。標題顯示該文件位於RA-Dec座標系中。我想將其轉換爲銀河座標。這是我試過的。 from astropy import coordinates as coord
from astropy import units as u
c=coord.icrscoord(ra=wx,dec=wy,unit=(u.degree,u.degree))
我目前遇到一個適合文件的小問題。數據是表格格式,這是我以前沒有使用的格式。我是一個python用戶,並且非常依賴astropy.fits來操縱合適的圖像。對信息的快速輸出提供: No. Name Type Cards Dimensions Format
0 PRIMARY PrimaryHDU 60 ()
1 BinTableHDU 29 3072R x 2C [102