bozso / SRTM-DEM-tools

Tools for making and manipulating SRTM1 and SRTM3 Dems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SRTM-DEM-tools

Tools for making and manipulating SRTM1 and SRTM3 DEMs. Note that only a small amount of the GSHHS data is included here to give a working example. The full dataset can be downloaded from http://www.soest.hawaii.edu/pwessel/gshhg/

New in January 2022:

Publication style figures can now be created with very few settings. See "publication_example.py" image

Installation

A suitable python environment can be created using the conda command (for version 3.X.X):
conda env create --file srtm_dem_tools_v3.yml


Usage

DEMs an be described either using using west/east/south/north limits:
SRTM_dem_make({'west':-4, 'east':-1, 'south':53, 'north':55})

Or, using a centre location and side length (in metres):
SRTM_dem_make({'centre': (-3.396, 37.041), 'side_length':(110e3, 100e3)},

There are also other useful functions:

  • water_pixel_masker | To determine if pixels lie within water bodes. This is usually called from within SRTM_dem_make.
  • SRTM_dem_make_batch | To create several DEMs in one step.
  • dem_show | To create simple figures showing the DEMs that have been created.

Examples

"example.py" includes several examples, including of an SRTM3 DEM with water bodies masked:

SRTM3_DEM

and of an SRTM1 DEM:

SRTM1_DEM

Note, however, that to download SRTM1 tiles, an account with USGS Earthdata will be required - see: https://urs.earthdata.nasa.gov/

About

Tools for making and manipulating SRTM1 and SRTM3 Dems.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%