pycif.plugins.datastreams.fields.oldlmdz_ic — API reference#
Configuration reference: oldlmdz_ic plugin
- pycif.plugins.datastreams.fields.oldlmdz_ic.get_domain.get_domain(ref_dir, ref_file, input_interval, target_dir, tracer=None)[source]#
- pycif.plugins.datastreams.fields.oldlmdz_ic.read.read(self, name, tracdir, tracfile, varnames, dates, interpol_flx=False, comp_type=None, model=None, tracer=None, **kwargs)[source]#
Get initial field from pre-computed fields and load them into a pyCIF variables
- Parameters:
self – the IC Plugin
name – the name of the component
tracdir – raw data directory and file format
tracfile – raw data directory and file format
dates – list of dates to extract
interpol_flx (bool) – if True, interpolates at time t from
files (values of surrounding available)
- pycif.plugins.datastreams.fields.oldlmdz_ic.write.write(self, name, ic_file, ic_data, mode='a', **kwargs)[source]#
Write flux to AEMISSION CHIMERE compatible files.
- Parameters:
self (Fluxes) – the Fluxes plugin
ic_file (str) – the file where to write fluxes
ic_data (xarray.DataArray) – fluxes data to write
mode (str) – ‘w’ to overwrite, ‘a’ to append