Source code for pycif.plugins.datastreams.fluxes.lmdz_netcdf_reg.read

from __future__ import annotations

import datetime

import xarray as xr


[docs] def read( self, name: str, varnames: str, dates: list[tuple[datetime.datetime, datetime.datetime]], files: list[str], tracer: object | None = None, **kwargs, ) -> xr.DataArray: """Get fluxes from pre-computed fluxes and load them into a pycif variables Args: self: the model Plugin name: the name of the component tracdir, tracfile: flux directory and file format dates: list of dates to extract interpol_flx (bool): if True, interpolates fluxes at time t from values of surrounding available files """ raise NotImplementedError