diff --git a/climax/main/download_ERA5.py b/climax/main/download_ERA5.py index 1fa844daf66c3a9941362d293866b3757008f5e4..f308c6e891e81570d6fd0a80937440f424bc5b88 100644 --- a/climax/main/download_ERA5.py +++ b/climax/main/download_ERA5.py @@ -55,7 +55,12 @@ if __name__ == '__main__': c = cdsapi.Client() # download data for the different variables - Parallel(n_jobs=min(len(variables), os.cpu_count()), verbose=51)( - delayed(c.retrieve)(product, CONFIG.update({'variable': var}), str( + for var in variables: + c.retrieve(product, CONFIG.update({'variable': var}), str( target.joinpath('_'.join(['ERA5', var, years[0], years[-1]]) - + '.nc'))) for var in variables) + + '.nc'))) + + # Parallel(n_jobs=min(len(variables), os.cpu_count()), verbose=51)( + # delayed(c.retrieve)(product, CONFIG.update({'variable': var}), str( + # target.joinpath('_'.join(['ERA5', var, years[0], years[-1]]) + # + '.nc'))) for var in variables)