Astropy Fits: How to write out a table with rows sliced out?

后端 未结 2 614
囚心锁ツ
囚心锁ツ 2021-01-20 01:42

I\'m currently working with some fits tables and I\'m having trouble with outputting in Astropy.io.fits. Essentially, I am slicing out a bunch of rows that have data for obj

2条回答
  •  无人及你
    2021-01-20 02:13

    If you want to stick to using FITS_rec, you can try the following, which seems to be a workaround:

    new_hdu = fits.BinTableHDU.from_columns(hdu_sliced._get_raw_data())
    

提交回复
热议问题