pycif.plugins.datastreams.fluxes.lmdz_netcdf_ico — API reference

Contents

pycif.plugins.datastreams.fluxes.lmdz_netcdf_ico — API reference#

Configuration reference: lmdz_netcdf_ico plugin

pycif.plugins.datastreams.fluxes.lmdz_netcdf_ico.read.read(self, name: str, varnames: str, dates: list[tuple[datetime, datetime]], files: list[str], tracer: object | None = None, **kwargs) DataArray[source]#

Get fluxes from pre-computed fluxes and load them into a pycif variables

Parameters:
  • self – the model Plugin

  • name – the name of the component

  • tracdir – flux directory and file format

  • tracfile – flux directory and file format

  • dates – list of dates to extract

  • interpol_flx (bool) – if True, interpolates fluxes at time t from

  • files (values of surrounding available)

pycif.plugins.datastreams.fluxes.lmdz_netcdf_ico.write.write(self, name: str, path: str | PathLike, data: DataArray, metadata: dict[str, Any] | None = None, **kwargs) None[source]#

Write prescribed species files for LMDZ

Parameters:
  • self – this plugin

  • path (str) – path to the file to write

  • data (xarray.Dataset or xarray.DataArray) – Data to write