CopernicusDataStoreProvider

class CopernicusDataStoreProvider(pollInterval: Duration = DEFAULT_POLL_INTERVAL, timeout: Duration = DEFAULT_TIMEOUT, tokenSupplier: () -> String) : CacheableDataLoader<CopernicusRequest> (source)

Downloads data from a Copernicus data store: it submits a job, polls it until done, then downloads its results.

Parameters

pollInterval

how long to wait before the first poll; it doubles at each poll, up to two minutes, as in ECMWF's official client.

timeout

how long the job can take, polls included; the download itself has no time limit.

tokenSupplier

the API token, requested only when downloading.

Constructors

Link copied to clipboard
constructor(pollInterval: Duration = DEFAULT_POLL_INTERVAL, timeout: Duration = DEFAULT_TIMEOUT, tokenSupplier: () -> String)

Functions

Link copied to clipboard
open override fun load(key: CopernicusRequest, target: Path)

Downloads into target the data of key, checks it, and extracts any ZIP archive.