pycif.plugins.datavects.standard — API reference#
Configuration reference: standard plugin
- pycif.plugins.datavects.standard.fetch.default_fetch(ref_dir, ref_file, input_dates, target_dir, tracer=None, **kwargs)[source]#
This is the default fetch function when no plugin is given for a datastream
- Parameters:
ref_dir (str) – Path to the data
ref_file (str) – File format of the data
input_dates (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.datavects.standard.utils.clean_filenames(list_files)[source]#
Cleaning file names to be sure to avoid double-slash and other problematic combinations
- Parameters:
list_files (dict[datetime.datetime]) – dictionary of input files.
entry (For each)
string (list_files can be either a)
- Returns:
Curated list_files
- Return type:
dict[datetime.datetime]