pycif.plugins.datastreams.fluxes.lmdz_netcdf_reg — API reference#
Configuration reference: lmdz_netcdf_reg plugin
- pycif.plugins.datastreams.fluxes.lmdz_netcdf_reg.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_reg.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