MET-OM / metocean-api

Extract time series of metocean data from global/regional/coastal hindcasts/reanalysis
GNU Lesser General Public License v2.1
11 stars 8 forks source link

Don't download ERA5 data if already cached #26

Closed davidosterberg closed 1 month ago

davidosterberg commented 1 month ago

Previously, the download_era5_from_cds would download the data again even if the exact request has been cached. Now, the cached file is used unless requested otherwise with new keyword use_cache=False

Motivation for this is that CDS is very slow, with request often being queued for hours. Let's avoid re-downloading if not needed

KonstantinChri commented 1 month ago

Nice addition! Thanks @davidosterberg