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

Contents

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

Configuration reference: lmdz_bin plugin

pycif.plugins.datastreams.fluxes.lmdz_bin.read.read(self, name, tracdir, tracfile, varnames, dates, interpol_flx=False, **kwargs)[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_bin.write.write(self, name, flx_file, flx, mode='a', **kwargs)[source]#

Write flux to LMDZ-DISPERSION compatible files. The shape follows the LMDZ physical vectorial shape grid. Each line of the output binary file includes.

Parameters:
  • self (Fluxes) – the Fluxes plugin

  • flx_file (str) – the file where to write fluxes

  • flx (xarray.Dataset) – fluxes data to write