bundles / astropy 7.0.1 / astropy / io / fits / hdu / streaming / StreamingHDU
class
astropy.io.fits.hdu.streaming:StreamingHDU
source: /astropy/io/fits/hdu/streaming.py :15
Signature
class StreamingHDU ( name , header ) Members
Summary
A class that provides the capability to stream data to a FITS file instead of requiring data to all be written at once.
Extended Summary
The following pseudocode illustrates its use
header = astropy.io.fits.Header() for all the cards you need in the header: header[key] = (value, comment) shdu = astropy.io.fits.StreamingHDU('filename.fits', header) for each piece of data: shdu.write(data) shdu.close()
Aliases
-
astropy.io.fits.StreamingHDU