save_data

pySurf.data2D.save_data(filename, data, x=None, y=None, fill_value=nan, addaxis=True, makedirs=False, **kwargs)

Save data as matrix on a file.

Can save as fits if the extension is .fits, but this should be probably moved elsewhere, otherwise uses np.saavetxt to save as text. kwargs are passed to np.savetxt or hdu.writeto