pycif.plugins.datastreams.fields.lmdz_ic — API reference#
Configuration reference: lmdz_ic plugin
- pycif.plugins.datastreams.fields.lmdz_ic.fetch.fetch(ref_dir, ref_file, input_interval, target_dir, tracer=None, component=None)[source]#
Fetch Initial condition files and dates for LMDZ.
- Parameters:
ref_dir (str) – Path to the data
ref_file (str) – File format of the data
input_interval (list[datetime.datetime]) – Date range
target_dir (str) – Where to link the data
tracer (_type_, optional) – _description_. Defaults to None.
- Returns:
tuple of dictionaries describing input dates and corresponding files
- Return type:
(list_files, list_dates)
- pycif.plugins.datastreams.fields.lmdz_ic.read.read(self, name, varnames, dates, files, tracer=None, **kwargs)[source]#
- pycif.plugins.datastreams.fields.lmdz_ic.write.write(self, name, path, data, lmdz_version='std', metadata=None, **kwargs)[source]#
Write flux to AEMISSION CHIMERE compatible files.
- Parameters:
self (object) – this plugin
name (str) – variable name to write
path (str) – path to the target file to write
data (xarray.DataArray) – data