astropy 5.0

NotesParametersReturns
write(self, data)

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 :None:None:`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 :None:None:`OSError` exception. If the dtype of the input data does not match what is expected by the header, a :None:None:`TypeError` exception is raised.

Parameters

data : ndarray

Data to stream to the file.

Returns

writecomplete : int

Flag that when :None:None:`True` indicates that all of the required data has been written to the stream.

Write the given data to the stream.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/io/fits/hdu/streaming.py#140
type: <class 'function'>
Commit: