{ } Raw JSON

bundles / astropy 7.0.1 / astropy / io / fits / header / Header / totextfile

function

astropy.io.fits.header:Header.totextfile

source: /astropy/io/fits/header.py:780

Signature

def totextfile(self, fileobj, endcard = False, overwrite = False)

Summary

Write the header as text to a file or a file-like object.

Extended Summary

Equivalent to

>>> Header.tofile(fileobj, sep='\n', endcard=False,
...               padding=False, overwrite=overwrite)

See also

tofile

Aliases

  • astropy.io.fits.Header.totextfile