{ } Raw JSON

bundles / astropy 7.0.1 / astropy / io / fits / hdu / compressed / compressed / CompImageHDU / _remove_unnecessary_default_extnames

function

astropy.io.fits.hdu.compressed.compressed:CompImageHDU._remove_unnecessary_default_extnames

source: /astropy/io/fits/hdu/compressed/compressed.py:357

Signature

def _remove_unnecessary_default_extnames(self, header)

Summary

Remove default EXTNAME values if they are unnecessary.

Extended Summary

Some data files (eg from CFHT) can have the default EXTNAME and an explicit value. This method removes the default if a more specific header exists. It also removes any duplicate default values.

Aliases

  • astropy.io.fits.CompImageHDU._remove_unnecessary_default_extnames