Source code for pycif.plugins.datastreams.fluxes.iconart.write
import os
from netCDF4 import Dataset
import numpy as np
import pandas as pd
import xarray
from .....utils.classes.fluxes import Flux
[docs]
def write(self, name, flx_file, flx, mode="a", **kwargs):
"""Write flux to ICON-ART compatible files.
Args:
self (Fluxes): the Fluxes plugin
flx_file (str): the file where to write fluxes
flx (xarray.DataArray): fluxes data to write
mode (str): 'w' to overwrite, 'a' to append
"""
pass