- Licence
- HydroSHEDS licence (free, attribution required)
Ouellet Dallaire, C., Lehner, B., Sayre, R., Thieme, M. (2019). A multidisciplinary framework to derive global river reach classifications at high spatial resolution. Environmental Research Letters, 14, 024003. https://doi.org/10.1088/1748-9326/aad8e9
curl -fsSL "https://hydrological.org/api/v1/datasets/gloric/links.txt?bbox=-75,-20,-50,5" \
| xargs -n 1 curl -fLO
import requests
urls = requests.get("https://hydrological.org/api/v1/datasets/gloric/links.txt?bbox=-75,-20,-50,5").text.split()
for url in urls:
name = url.rsplit("/", 1)[-1]
with requests.get(url, stream=True) as r, open(name, "wb") as f:
for chunk in r.iter_content(1 << 20):
f.write(chunk)
const res = await fetch("https://hydrological.org/api/v1/datasets/gloric/links?bbox=-75,-20,-50,5");
const { groups } = await res.json();
for (const g of groups) g.links.forEach(l => console.log(l.url));