Source code for pycif.plugins.datastreams.fluxes.dummy_txt.write

import numpy as np


[docs] def write(self, name, flx_file, flx, mode="w", **kwargs): """Write a 2D flux array to a comma-delimited text file. Args: self (Fluxes): the Fluxes plugin. name: unused, kept for interface compatibility. flx_file (str): the file where to write the flux array. flx (array-like): 2D flux array to write, shape ``(nlat, nlon)``. mode: unused, kept for interface compatibility (always overwrites). **kwargs: unused, kept for interface compatibility. """ np.savetxt(flx_file, flx, delimiter=",")