{"slug": "hydrorivers", "name": "HydroRIVERS", "tagline": "8.5 million river reaches with discharge and order", "source": "WWF / McGill", "category": {"slug": "rivers", "name": "Rivers", "icon": "river", "tone": "blue"}, "meta": ["Lines", "Static (v1.0)", "Global"], "thumb": "/static/catalog/thumbs/hydrorivers.a0622c170993.jpg", "bbox": [-180.0, -56.0, 180.0, 84.0], "global": true, "access": "download", "url": "/datasets/hydrorivers/", "subtitle": "Global river network from HydroSHEDS", "summary": "Vector river reaches for every stream with a catchment of at least 10 km² or a mean flow of at least 0.1 m³/s, derived from the HydroSHEDS flow directions at 15 arc-seconds. Each reach carries estimated long-term discharge, Strahler order, length, the next reach downstream and links to HydroBASINS and HydroLAKES, so a network can be traced up or down without a DEM.", "categories": [{"slug": "rivers", "name": "Rivers", "icon": "river", "tone": "blue"}, {"slug": "flow", "name": "Flow", "icon": "waves", "tone": "blue"}], "sources": [{"slug": "hydrosheds", "name": "HydroSHEDS (WWF and McGill University)", "label": "HydroSHEDS", "url": "https://www.hydrosheds.org/", "page": "/sources/hydrosheds/"}], "facts": [["Source", "WWF / McGill"], ["Resolution", "Lines (catchments above 10 km²)"], ["Time span", "Static (v1.0)"], ["Temporal", "Static"], ["Access type", "Direct download (external)"], ["Formats", "Shapefile, File geodatabase"], ["Coverage", "Global land"]], "access_note": "", "coverage": "Global land", "license": {"name": "HydroSHEDS licence (free, attribution required)", "url": "https://www.hydrosheds.org/products/hydrorivers"}, "citation": "Lehner, B., Grill, G. (2013). Global river hydrography and network routing: baseline data and new approaches to study the world's large river systems. Hydrological Processes, 27, 2171–2186. https://doi.org/10.1002/hyp.9740", "doi": "", "landing_url": "https://www.hydrosheds.org/products/hydrorivers", "provider_url": "https://www.hydrosheds.org/products/hydrorivers", "methods": [{"type": "regions", "label": "Shapefile per HydroSHEDS region that meets the box"}, {"type": "files", "label": "Whole world in one file"}], "preview": {"type": "layer", "layer": "rivers", "label": "Rivers (Natural Earth)"}, "thumb_credit": "Rivers (Natural Earth) over Blue Marble (NASA GIBS)", "selection": [-75.0, -20.0, -50.0, 5.0], "selection_text": "-75,-20,-50,5", "snippets": {"curl": "curl -fsSL \"https://hydrological.org/api/v1/datasets/hydrorivers/links.txt?bbox=-75,-20,-50,5\" \\\n  | xargs -n 1 curl -fLO", "python": "import os\nimport requests\n\nlisting = requests.get(\"https://hydrological.org/api/v1/datasets/hydrorivers/links.txt?bbox=-75,-20,-50,5\")\nlisting.raise_for_status()\nif listing.headers.get(\"X-Links-Incomplete\"):\n    print(\"Not every file is listed:\", listing.headers[\"X-Links-Incomplete\"])\nfor url in listing.text.split():\n    name = url.rsplit(\"/\", 1)[-1]\n    with requests.get(url, stream=True) as r:\n        r.raise_for_status()\n        with open(name + \".part\", \"wb\") as f:\n            for chunk in r.iter_content(1 << 20):\n                f.write(chunk)\n    os.replace(name + \".part\", name)", "javascript": "const res = await fetch(\"https://hydrological.org/api/v1/datasets/hydrorivers/links?bbox=-75,-20,-50,5\");\nconst { groups } = await res.json();\nfor (const g of groups) g.links.forEach(l => console.log(l.url));"}, "api": {"links": "/api/v1/datasets/hydrorivers/links?bbox=-75,-20,-50,5", "manifest": "/api/v1/datasets/hydrorivers/manifest?bbox=-75,-20,-50,5"}}