This PR adds the from_sample method to access data stored on the download server in folder earthkit/samples. The primary goal is to help users to quickly access data used for the examples in earthkit-maps and earthkit-data.
This is how it works:
from earthkit.data import from_sample
ds = from_sample("storm_ophelia_wind_850.grib")
Alternatively we could introduce another source "sample" to implement this feature, e.g.:
from earthkit.data import from_source
ds = from_source("sample", "storm_ophelia_wind_850.grib")
This PR adds the
from_sample
method to access data stored on the download server in folderearthkit/samples
. The primary goal is to help users to quickly access data used for the examples inearthkit-maps
andearthkit-data
.This is how it works:
Alternatively we could introduce another source "sample" to implement this feature, e.g.: