This PR makes parts (only single parts) work for url streams:
# the remote file contains 6 GRIB messages.
# We only read the first 2 (between bytes offset=0 and lenght=480).
ds = from_source(
"url",
"https://get.ecmwf.int/repository/test-data/earthkit-data/examples/test6.grib",
parts=[(0, 480)],
stream=True,
)
for f in ds:
# f is a field
print(f)
This PR makes parts (only single parts) work for url streams:
output: