pycif.plugins.datastreams.fluxes.CAMSREG_nc — API reference#
Configuration reference: CAMSREG_nc plugin
- pycif.plugins.datastreams.fluxes.CAMSREG_nc.fetch.fetch(ref_dir, ref_file, input_interval, target_dir, tracer=None, **kwargs)[source]#
- Parameters:
ref_dir – directory where the original files are found
ref_file – (template) name of the original files
input_interval – list of the periods to simulate, each item is the list of the dates of the period
target_dir – directory where the links to the orginal files are created
tracer
kwargs
- Returns:
- list_files: for each date that begins a period, an array containing
the names of the files that are available for the dates within this period
- list_dates: for each date that begins a period, an array containing
the names of the dates mathcin the files listed in list_files
- pycif.plugins.datastreams.fluxes.CAMSREG_nc.get_domain.get_domain(ref_dir, ref_file, input_interval, target_dir, tracer=None)[source]#
Args:#
ref_dir: directory where the original files are found ref_file: (template) name of the original files input_interval: list of the periods to simulate, each item is the list of the dates of the period target_dir: directory where the links to the orginal files are created
Ouputs:#
setup of the domain in section “Initializes domain”
- pycif.plugins.datastreams.fluxes.CAMSREG_nc.read.read(self, name, varnames, dates, files, interpol_flx=False, comp_type=None, tracer=None, **kwargs)[source]#
Get fluxes from raw files and load them into a pyCIF variables