[AstroPy] Need Help about Astropy.table.Table.write

Guang Yang yg1991 at mail.ustc.edu.cn
Tue Jul 22 14:14:16 EDT 2014


Hi All,

I've found Astropy.table.Table.write is unable to write tables with arbitrary units. 
For example, after using sextractor to generate a fits table, 

from astropy.table import Table
cat = Table.read('sextractor_output.fits', format='fits')
cat.write('new.fits', format='fits')

Then, the error comes: Unit u'ct' is not part of the FITS standard. And I've found no parameter to avoid the unit problem.

Also, when the file 'new.fits' already exists, there seems to be no keyword to overwrite the file.

Thanks,
Guang Yang

 






More information about the AstroPy mailing list