write(filename, data, comments=False, compress=1, debug=False)¶
Saves a 2D numpy array as an ANA file and returns the bytes written or NULL
Name of file to be created.
Name of data to be stored.
The comments to be stored as a header.
To compress the data or not. 1 is to compress, 0 is uncompressed
Prints verbose debug information.
out: ANA compressed archive
A new ANA compressed archive containing the data and header.
>>> written = sunpy.io.ana.write(filename, data, comments=Falsem, compress=1)