pyufunc.download_elevation_tif_by#
- pyufunc.download_elevation_tif_by(bbox, output_file)#
Download elevation data (TIFF) from USGS National Map based on a bounding box.
- Parameters:
- Location:
pyufunc.util_geo._geo_tif.download_elevation_tif_by
Note
UGSG National Map API: https://tnmaccess.nationalmap.gov/api/v1/products USGS Elevation Data: https://apps.nationalmap.gov/downloader/#/elevation Dataset: National Elevation Dataset (NED) 1/3 arc-second Available products: 1 arc-second, 1/3 arc-second, 1/9 arc-second, 1 meter
Example
>>> from pyufunc import download_elevation_tif_by >>> bbox = (-122.5, 37.5, -122.0, 38.0) >>> output_file = "elevation.tif" >>> download_elevation_tif_by(bbox, output_file) :Downloading GeoTIFF file from: https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/1/TIFF/n38w123/USGS_1_n38w123.tif Total file size: 1.00 MB :Downloaded: 1.00 MB :GeoTIFF file saved as: elevation.tif
- Returns:
None