fill_years#

geobricks.fill_years(data_list, *, tag='')[source]#

Combine several datasets covering different periods (years) into one dataset covering the whole period. Missing years are filled by propagating forward the previous year.

Parameters#

data_liststr or pathlib.Path, or list of str or pathlib.Path, or list of xarray.Datasets

Datasets that will be assembled and completed. The timestep that will be completed is the year: it is assumed that there is no missing data within each year.

tagstr, optional

If data_list is a path to a folder, tag argument specifies which type of files should be taken into account in this folder.

Returns#

xarra.Dataset

Resulting merged and completed dataset.