astropy

    1熱度

    1回答

    有沒有簡單的方法來刪除空列中的空列? 閱讀某些csv文件時,某些列僅包含空字符串''。

    -2熱度

    1回答

    我想使用一個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

    -1熱度

    1回答

    N.B.我使用了astropy的Table和ascii模塊的組合。 我期待,包括我的表上方的以下評論標題: #1 pxlname 1 #2 x 0 #3 y 0 #4 z 8 #5 Dist 9 #6 FUV 6 FUV #7 UVW2 6 UVW2 #8 UVM2 6 UVM2 #9 NUV 6 NUV #10 UVW1 6

    0熱度

    3回答

    我想的astropyAngles對象實例添加到NumPy數組,我得到一個錯誤: ValueError: setting an array element with a sequence. 的Angle對象是這個樣子: <Angle 1.2557346257567 deg> 如果我把它們放在一個正常的Python列表中,然後我得到: s = [<Angle 1.2562500714928306 de

    -1熱度

    1回答

    所以我嘗試使用APLpy密謀配合圖像(相同適合圖像)與由DS9區域文件提供了一些註解: 我的腳本如下: import aplpy import matplotlib import matplotlib.pyplot as pyplot import matplotlib.gridspec as gridspec from astropy.io import fits matplot

    0熱度

    1回答

    我試圖在2MASS目錄上用astroquery.vizier.VizierClass.query_region()進行比較大的查詢。 雖然它適用於小區域,但它在大面積上失敗。 這裏是代碼我使用: from astroquery.vizier import Vizier import astropy.units as u import astropy.coordinates as coord

    -2熱度

    1回答

    我正在將一個像素座標適配文件轉換爲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))

    0熱度

    1回答

    在正常的matplotlib軸類中,可以將網格線設置爲具有特定的透明度(alpha級別)。我試圖用以下的APLpy包來利用此: fig = pyplot.figure(figsize=(18,8)) gridspec_layout = gridspec.GridSpec(1,2) gridspec_layout1 = gridspec.GridSpecFromSubplotSpec(3,

    0熱度

    2回答

    我目前遇到一個適合文件的小問題。數據是表格格式,這是我以前沒有使用的格式。我是一個python用戶,並且非常依賴astropy.fits來操縱合適的圖像。對信息的快速輸出提供: No. Name Type Cards Dimensions Format 0 PRIMARY PrimaryHDU 60 () 1 BinTableHDU 29 3072R x 2C [102

    -3熱度

    1回答

    我有一個適合文件,其中包含維度爲(180,360)的數據,它是180行,每行有360個元素。當我繪製它時,x軸的範圍是從0到360,而y軸的範圍是從0到180.我想將y軸範圍從-90轉換爲90,因爲x和y軸實際上是緯度和經度。我正在使用astropy。