astropy/astropy/io/fits/column.py Lines 2116 to 2137 in96cc7fb def_get_index(names,key): """ Get the index of the ``key`` in the ``names`` list. The ``key`` can be an integer or string. If integer, it is the index ...
.pyinstaller Add pyinstaller hook for astropy-iers-data Jul 3, 2023 astropy Merge pull request astropy#14929 from saimn/fits-fix-comparison Sep 16, 2023 cextern Update WCSLIB to version 8.1 Jul 7, 2023 docs Address ruff's DTZ003 rule violations (astropy#15298) Sep 15, 2023 examples Fi...
例如,假设我编写了以下代码:from astropy.table import Table, Columnxytable = ascii.read("xytable.dat")这与预期的一样,它打印了一个具有x值1到5如果我加上: y = x + 2 上面写 浏览3提问于2016-07-21得票数 2 回答已采纳 1回答 有没有办法在Python中的FITS文件上使用算术运算? 、、、 我也尝试...
# 需要导入模块: import astropy [as 别名]# 或者: from astropy importtable[as 别名]deftest_writeFITSTable():"""Test that we can write a fitstable"""tab =table.Table.read('tests/test_files/1904_comp.fits') outfile ='dlme.fits'tab.meta ={'test':'test'} cat.writeFITSTable(outfile,...
Added functionality to allow astropy.units.Quantity to be written as a normal column to FITS files. [#5910] Add support for Quantity columns (within a QTable) in table join(), hstack() and vstack() operations. [#5841] Allow unicode strings to be stored in a Table bytestring column in...
Regression test for https://github.com/spacetelescope/PyFITS/issues/47 4 changes: 0 additions & 4 deletions 4 astropy/table/tests/test_groups.py Original file line numberDiff line numberDiff line change @@ -10,7 +10,6 @@ from astropy.table import Column, NdarrayMixin, QTable, Table...
Is it worth adding astropy.table.Table.to_dataframe() and astropy.table.Table.from_dataframe() methods to make it easy to go back and forth between astropy Table and pandas DataFrame and take care of the byte swapping (and mask, I guess there's no way to preserve the FITS header info...
The wcs object contains the WCS transformation of the image obtained from the FITS header. It includes the coordinate frame of the image and the projection from sky to pixel coordinates. The ~photutils.aperture.aperture_photometry function uses the WCS information to automatically convert the ...
tabular_fits.py in tabular_fits_loader(file_name, column_mapping, hdu, **kwargs) 73 # unit information 74 if column_mapping is None: ---> 75 return generic_spectrum_from_table(tab, wcs=wcs, **kwargs) 76 77 return spectrum_from_column_mapping(tab, column_mapping, wcs=wcs) ~/spec...
I'm also trying to understand if this fits into the concept of missing or masked data, which Astropy still doesn't support for Quantity and coordinates. @mhvk and I have had a (friendly) years-long disagreement about how to implement missing data in Quantity. I have advocated using NaN,...