ECMWFCode4Earth / ml_drought

Machine learning to better predict and understand drought. Moving github.com/ml-clim
https://ml-clim.github.io/drought-prediction/
90 stars 18 forks source link

global default & unique filepath #22

Closed tommylees112 closed 5 years ago

tommylees112 commented 5 years ago

update the CHIRPS downloader to have GLOBAL by default (netcdf files) and to create a unique path for these two options

gabrieltseng commented 5 years ago

@tommylees112 , I changed it so that the region and chirps folder are separately defined. Otherwise, if export were to be called twice on an already initialized exporter (e.g. once to pull africa data, once to pull global data), then the first export would save to chirps_folder / africa, but the second would save to chirps_folder / africa / global.

If it looks good to you, it can be merged.