bundles / astropy latest / astropy / io / fits / hdu / streaming / StreamingHDU / write
function
astropy.io.fits.hdu.streaming:StreamingHDU.write
source: /astropy/io/fits/hdu/streaming.py :139
Signature
def write ( self , data ) Summary
Write the given data to the stream.
Parameters
data: ndarrayData to stream to the file.
Returns
writecomplete: intFlag that when
Trueindicates that all of the required data has been written to the stream.
Notes
Only the amount of data specified in the header provided to the class constructor may be written to the stream. If the provided data would cause the stream to overflow, an OSError exception is raised and the data is not written. Once sufficient data has been written to the stream to satisfy the amount specified in the header, the stream is padded to fill a complete FITS block and no more data will be accepted. An attempt to write more data after the stream has been filled will raise an OSError exception. If the dtype of the input data does not match what is expected by the header, a TypeError exception is raised.
Aliases
-
astropy.io.fits.StreamingHDU.write