pycif.plugins.datastreams.fields.netcdf_cams — API reference#
Configuration reference: netcdf_cams plugin
- pycif.plugins.datastreams.fields.netcdf_cams.fetch.fetch(ref_dir, ref_file, input_interval, target_dir, tracer=None, component=None)[source]#
Reads netcdf files from CAMS for a given species. One file per month.
Args#
ref_dir: directory where the original files are found
ref_file: (template) name of the original files
input_interval: list of two dates: the beginning and end of the simulation
target_dir: directory where the links to the orginal files are created
Returns#
list_dates
list_files
- pycif.plugins.datastreams.fields.netcdf_cams.get_domain.get_domain(ref_dir, ref_file, input_interval, target_dir, tracer=None)[source]#
- pycif.plugins.datastreams.fields.netcdf_cams.read.read(self, name, varnames, dates, files, interpol_flx=False, comp_type=None, tracer=None, ddi=None, **kwargs)[source]#
Get BCs from raw files and load them into a pyCIF variables
- Parameters:
self – the BC 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
comp_type – type of boundary conditions to generate