ArcticSnow / TopoPyScale

TopoPyScale: a Python library to perform simplistic climate downscaling at the hillslope scale
https://topopyscale.readthedocs.io
MIT License
39 stars 9 forks source link

remove `open_mfdataset()` and `save_mfdataset()` usage throughout the toolbox #52

Closed ArcticSnow closed 1 year ago

ArcticSnow commented 1 year ago

Both open_mfdataset() and save_mfdataset() are not effective. They should be replaced with the methode used in topo_scale.py

import glob
import xarray as xr 

flist = glob.glob(file_pattern)
flist.sort()

ds_list = []
for file in flist:
   ds_list.append(xr.open_dataset(file))
ds = xr.concat(ds_list, dim='time')