Skip to content

Commit

Permalink
Merge f5ffbb2 into f788837
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdusch committed Oct 13, 2021
2 parents f788837 + f5ffbb2 commit 21409c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oggm/shop/gcm_climate.py
Expand Up @@ -373,9 +373,11 @@ def process_lmr_data(gdir, fpath_temp=None, fpath_precip=None,
# Get the path of GCM temperature & precipitation data
base_url = 'https://atmos.washington.edu/%7Ehakim/lmr/LMRv2/'
if fpath_temp is None:
fpath_temp = utils.file_downloader(base_url + 'air_MCruns_ensemble_mean_LMRv2.1.nc')
with utils.get_lock():
fpath_temp = utils.file_downloader(base_url + 'air_MCruns_ensemble_mean_LMRv2.1.nc')
if fpath_precip is None:
fpath_precip = utils.file_downloader(base_url + 'prate_MCruns_ensemble_mean_LMRv2.1.nc')
with utils.get_lock():
fpath_precip = utils.file_downloader(base_url + 'prate_MCruns_ensemble_mean_LMRv2.1.nc')

# Glacier location
glon = gdir.cenlon
Expand Down

0 comments on commit 21409c5

Please sign in to comment.