pvdeg.utilities.merge_sparse#
- pvdeg.utilities.merge_sparse(files: list[str], engine: str = 'h5netcdf') Dataset[source]#
Merge an arbitrary number of geospatial analysis results. Creates monotonically increasing indicies.
Uses engine=’h5netcdf’ for reliability, use h5netcdf to save your results to netcdf files.
- Parameters:
files (list[str]) – A list of strings representing filepaths to netcdf (.nc) files. Each file must have the same coordinates, [‘latitude’,’longitude’] and identical datavariables.
- Returns:
merged_ds (xr.Dataset) – Dataset (in memory) with coordinates = [‘latitude’,’longitude’] and datavariables matching files in filepaths list.