{"slug": "usgs-3dep", "name": "USGS 3DEP Elevation", "tagline": "Lidar-based elevation for the United States, 1 m to 1/3 arc-second", "source": "USGS", "category": {"slug": "dem", "name": "DEM", "icon": "mountain", "tone": "slate"}, "meta": ["1 m", "Varies by project", "United States and territories"], "thumb": "/static/catalog/thumbs/usgs-3dep.e42c53448ab6.jpg", "bbox": [-180.0, 17.0, -64.0, 72.0], "global": false, "access": "api", "url": "/datasets/usgs-3dep/", "subtitle": "3D Elevation Program", "summary": "The national elevation baseline for the United States, collected mostly by airborne lidar. Seamless 1/3 arc-second DEMs cover the whole country; 1 m DEMs cover wherever lidar has been flown.", "categories": [{"slug": "dem", "name": "DEM", "icon": "mountain", "tone": "slate"}], "sources": [{"slug": "usgs", "name": "U.S. Geological Survey", "label": "USGS", "url": "https://www.usgs.gov/", "page": "/sources/usgs/"}], "facts": [["Source", "USGS"], ["Resolution", "1 m (lidar) to 10 m (1/3 arc-second)"], ["Time span", "Varies by project"], ["Temporal", "Static, updated by project"], ["Access type", "API (external)"], ["Formats", "GeoTIFF, LAZ point clouds"], ["Coverage", "United States and territories"]], "access_note": "The National Map API, no key", "coverage": "United States and territories", "license": {"name": "Public domain (U.S. Government work)", "url": "https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits"}, "citation": "", "doi": "", "landing_url": "https://www.usgs.gov/3d-elevation-program", "provider_url": "https://apps.nationalmap.gov/downloader/", "methods": [{"type": "tiles", "label": "1/3 arc-second DEM, current 1° tiles (cloud-optimised GeoTIFF)"}, {"type": "tnm", "label": "1 m DEM project tiles in the area (The National Map)"}], "preview": {"type": "relief"}, "thumb_credit": "Relief rendered from AWS Terrain Tiles", "selection": [-123.0, 43.5, -121.0, 45.5], "selection_text": "-123,43.5,-121,45.5", "snippets": {"curl": "curl -fsSL \"https://hydrological.org/api/v1/datasets/usgs-3dep/links.txt?bbox=-123,43.5,-121,45.5\" \\\n  | xargs -n 1 curl -fLO", "python": "import os\nimport requests\n\nlisting = requests.get(\"https://hydrological.org/api/v1/datasets/usgs-3dep/links.txt?bbox=-123,43.5,-121,45.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/usgs-3dep/links?bbox=-123,43.5,-121,45.5\");\nconst { groups } = await res.json();\nfor (const g of groups) g.links.forEach(l => console.log(l.url));"}, "api": {"links": "/api/v1/datasets/usgs-3dep/links?bbox=-123,43.5,-121,45.5", "manifest": "/api/v1/datasets/usgs-3dep/manifest?bbox=-123,43.5,-121,45.5"}}