{"slug": "hydrobasins", "name": "HydroBASINS", "tagline": "Global watershed boundaries in a Pfafstetter hierarchy", "source": "WWF / McGill", "category": {"slug": "flow", "name": "Flow", "icon": "waves", "tone": "blue"}, "meta": ["Polygons", "Static (v1c)", "Global"], "thumb": "/static/catalog/thumbs/hydrobasins.bfea0fcab9c6.jpg", "bbox": [-180.0, -56.0, 180.0, 84.0], "global": true, "access": "download", "url": "/datasets/hydrobasins/", "subtitle": "Nested sub-basin boundaries, levels 1 to 12", "summary": "Sub-basins at twelve nested levels with topology (next downstream basin, distance to the outlet, Pfafstetter codes), so upstream areas can be traced without a DEM. The basin outlines on this map are built from level 4, merged to whole river basins.", "categories": [{"slug": "flow", "name": "Flow", "icon": "waves", "tone": "blue"}, {"slug": "management", "name": "Management", "icon": "bank", "tone": "slate"}], "sources": [{"slug": "hydrosheds", "name": "HydroSHEDS (WWF and McGill University)", "label": "HydroSHEDS", "url": "https://www.hydrosheds.org/", "page": "/sources/hydrosheds/"}], "facts": [["Source", "WWF / McGill"], ["Resolution", "Polygons (levels 1 to 12)"], ["Time span", "Static (v1c)"], ["Temporal", "Static"], ["Access type", "Direct download (external)"], ["Formats", "Shapefile"], ["Coverage", "Global land"]], "access_note": "", "coverage": "Global land", "license": {"name": "HydroSHEDS licence (free, attribution required)", "url": "https://www.hydrosheds.org/products/hydrobasins"}, "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/hydrobasins", "provider_url": "https://www.hydrosheds.org/products/hydrobasins", "methods": [{"type": "regions", "label": "Level 4 sub-basins per HydroSHEDS region (change lev04 for other levels)"}], "preview": {"type": "layer", "layer": "basins", "label": "Basins (HydroBASINS)"}, "thumb_credit": "River basins (HydroBASINS) 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/hydrobasins/links.txt?bbox=-75,-20,-50,5\" \\\n  | xargs -n 1 curl -fLO", "python": "import requests\n\nurls = requests.get(\"https://hydrological.org/api/v1/datasets/hydrobasins/links.txt?bbox=-75,-20,-50,5\").text.split()\nfor url in urls:\n    name = url.rsplit(\"/\", 1)[-1]\n    with requests.get(url, stream=True) as r, open(name, \"wb\") as f:\n        for chunk in r.iter_content(1 << 20):\n            f.write(chunk)", "javascript": "const res = await fetch(\"https://hydrological.org/api/v1/datasets/hydrobasins/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/hydrobasins/links?bbox=-75,-20,-50,5", "manifest": "/api/v1/datasets/hydrobasins/manifest?bbox=-75,-20,-50,5"}}