Framework project: Digital Elevation Models (DEMs)

Global DEMs: access and download

Introduction

The term Digital Elevation Model (DEM) is a generic, or superset, class of datasets depicting heights or elevations. Typically these heights can represent i) the Earth’s (or any other sphere’s) natural surface, ii) the height including objects on top of the surface, or iii) just the objects. The basic surface, without any objects is usually referred to as a Digital Terrain Model (DTM), whereas height data including objects (whether natural objects like trees or man made like buildings) is usually called a Digital Surface Model (DSM). Note, however, that the terminology I have used here is not universal. As long as you know what you want to use the DEM (as a generic term) for, the terms provide a hint, but better look in the metadata.

Prerequisits

You do not need Karttur’s GeoImagine Framework for accessing and organizing DEM data as outlined in this post. But it makes it easier. To access all of the DEMs you also need to install three different command line tools:

  • wget
  • AWSCLIV2
  • aria2

wget

wget is a command line utility for downloading files from the Internet. It supports downloading multiple files, downloading in the background, resuming downloads, limiting the bandwidth used for downloads and viewing headers. It can also be used for taking a mirror of a site and can be combined with other UNIX tools to find out things like broken links on a site. wget does not come pre-installed with MacOS, use brew from the Terminal to install it:

$ brew install wget

Amazon Web Services Command Line Interface 2 (AWSCLIV2)

Some DEMs are available as Amazon Web Services (AWS) Open Data. To access registries on AWS Open Data I use the free Amazon Web Services Command Line Interface 2 (AWSCLIV2). To install AWSCLIV2 on your machine you can check out Installing, updating, and uninstalling the AWS CLI version 2. Here is a summary of the steps needed for installation on MacOS:

  1. start a Terminal session.

  2. $ curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"

  3. $ sudo installer -pkg AWSCLIV2.pkg -target /

Give your machine password and the AWSCLIV2.pkg package should install and report back:

installer: Package name is AWS Command Line Interface
installer: Installing at base path /
installer: The install was successful.

aria2

aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink. You can use brew for installation:

$ brew install aria2

Global DEMs

There are a few different options if you are looking for a global DEM. Writing this post and working my way through different DEMs I came across opentopography.org; an excellent source of both data and processing algorithms. But there are more alternatives available. The DEMs I retrieved and tested in March 2021 include the following:

  • GMTED2010 (~250m or 7.5 arc-seconds)
  • SRTM (90 m)
  • TanDEM-X (90 m for free version)
  • Copernicus DEM (30 or 90 m)
  • ASTER DEM (30 m)
  • ALOS DEM (30 m)
  • Arctic DEM (2 m)
  • PanArctic DEM (90 m)

United Stated Naval Academy (USNA) maintains an up-to-date list of global DEMs. It contains some additional datasets not tested in this post.

GMTED2010

The Global Multi-resolution Terrain Elevation Data (GMTED2010) was released in 2010 as a replacement for GTOPO30/HYDRO1K. It was jointly produced by the United Sates Geological Survey (USGS) and the National Geospatial-Intelligence Agency (NGA). GMTED2010 is not truly global in any other sense than all pixels having a valid number - but Greenland is then completely sunken below the sea surface. I do not know if other regions are similarly missing. GMTED2010 contains several estimates, including for mean, median, minimum and maximum elevation. GMTED2010 is freely available as tiles from USGS, or as global grids. It is a bit easier to use Karttur’s GeoImagine Framework (but not required). To use the Framework, first create a text file with the urls to the tiles of GMTED that you want to download, then call the process DownloadAncillary with the parameter downloadcode set to filelist and the path set to the actual file listing the tiles (under the volume defined under srcpath).

TanDEM-X

TanDEM-X (TerraSAR-X add-on for Digital Elevation Measurements) is an Earth observation radar mission that consists of a SAR interferometer built by two almost identical satellites flying in close formation. It is a product from the Deutsches Zentrum für Luft- und Raumfahrt (DLR). The original product at 12 m spatial resolution is not freely available. You can find a free 90 m ellipsoid version with DLR or orthometric version in 30 or 90 m from the European Copernicus program or via Amazon Web Services. DLR also offers other products derived from TanDEM-X.

Accessing the DLR 90 TanDEM-X product

This product is a more raw ellipsoid of limited interest as cleaned up products are available via the Copernicus program (see next section). If you want to access the DLR 90 m ellipsoid product you first need to register with DLR self service. I got the list of all available TanDEM-X tiles from https://github.com/justinelliotmeyers/TanDEM-X_GRID_INDEX. I then extracted the url’s of all the tiles I wanted to a simple list:

https://download.geoservice.dlr.de/TDM90/files/N14/E020/TDM1_DEM__30_N14E028.zip
https://download.geoservice.dlr.de/TDM90/files/N14/E020/TDM1_DEM__30_N14E026.zip
https://download.geoservice.dlr.de/TDM90/files/N14/E020/TDM1_DEM__30_N14E029.zip
...

The list above can be constructed from the json file available at https://github.com/justinelliotmeyers/TanDEM-X_GRID_INDEX, and I added a process, SearchJsonTandemX, to the Framework that does this automatically.

Then just add the file with listed url’s and your credentials, start a Terminal session, cd to the folder with the listfile.txt, and aria2 will get all the tiles downloaded really quick:

$ aria2c -i "listfile.txt" –http-user "username" –http-passwd "password"

The downloaded tiles are zip files with quite a lot more content than the DEM tiles. You can use the Framework process UnZipTandemX to explode only the DEM data.

Accessing the Copernicus DEM

Copernicus DEM is based on TanDEM-X and then infilled on a local basis with the following DEMs: ASTER, SRTM90, SRTM30, SRTM30plus, GMTED2010, TerraSAR-X Radargrammetric DEM, ALOS World 3D-30m. Copernicus DEM is available in two versions: COPERNICUS_30 and COPERNICUS_90.

The 90 m Copernicus DEM product is freely available at https://gisco-services.ec.europa.eu/dem/copernicus/outD/ or with Amazon Web Services (AWS). Downloading from the former is more complicated and is done using a file listing urls and aria2 as described in the previous section. The post on Mosaic, import and tile CopDEM covers the details on how to access this particular version of Copernicus DEM.

Access via AWS is easier. If you installed Amazon Web Services Command Line Interface 2 (AWSCLIV2) as outlined above, the access point Open Data AWS Copernicus Digital Elevation Model (DEM) describes the data access. To download the complete global dataset all you need to do is to execute the following command:

$ aws s3 cp s3://copernicus-dem-90m/ . --recursive --no-sign-request

Also the Copernicus DEM 30 m product is freely accessible via AWS Open Data, with the following “one-liner” downloading the complete global dataset:

$ aws s3 cp s3://copernicus-dem-30m/ . --recursive --no-sign-request

Alternatively you can register with Copernicus PANDA. When writing this, the services had had a major crash and was not available for registering. Thus I did not test that alternative.

ASTER DEM

ASTER Global Digital Elevation Map (DEM) - ASTERDEM is produced from stereo pairs of optical images over the same area but taken at different angles. At the time of writing this in March 2021, the latest version is the ASTER Global Digital Elevation Model Version 3 released August 5 2019. GDEM V3 adds additional stereo-pairs, improving coverage and reducing the occurrence of artifacts. The refined production algorithm provides improved spatial resolution, increased horizontal and vertical accuracy. The ASTER GDEM V3 has a spatial resolution of 30 m and is available as 1 x 1 degree tiles.

ASTERDEM is available from NASA Eartdata, with the direct link https://e4ftl01.cr.usgs.gov/ASTER_B/ASTT/. For downloading ASTER DEM I use Karttur’s GeoImagine Framework. Basically that boils down to exactly the same procedure with a file listing the url’s of all tiles you want to download and executing an aria2 command, as described for accessing the DLR 90 TanDEM-X product. But instead of searching a local file for urls, you need to go online to the server holding the ASTER DEM. You have to have a registered user with Earthdata, then you can run the Framework processes SearchUSGSProducts and DownloadUSGS to create the list of urls to download. Once you have the lists, just use aria2 (even if this can be done via the Framework it is better to just run aria2).

ALOS World 3D - 30m (AW3D30)

The Japan Aerospace Exploration Agency(JAXA) Advanced Land Observing Satellite (ALOS) Global Digital Surface Model “ALOS World 3D - 30m (AW3D30)” is a 30 m global DEM that is freely available both from JAXA and opentopography.org.

To access AW3D30 from Japan you must first to register with JAXA. With opentopography.org you can bulk download the complete world using Amazon Web Services Command Line Interface 2 (AWSCLIV2) without registering. The latter alternative is outlined in the next section (see the article Experiments with the global JAXA ALOS World 30m elevation model on AWS S3 by @kokoalberti).

Bulk access AW3D30 via OpenTopography

Navigate toOpenTopography ALOS World 3D - 30m to get basin metadata and download instructions for AW3D30. If you just want to get the data you can also follow the cheat-sheet outlined here.

List all the tiles:

$ aws s3 ls s3://raster/AW3D30/ –recursive –endpoint-url https://opentopography.s3.sdsc.edu –no-sign-request

Pipe tiles to csv file:

$ aws s3 ls s3://raster/AW3D30/ –recursive –endpoint-url https://opentopography.s3.sdsc.edu –no-sign-request > AW3D30_tiles.csv

Download all the tiles (to the present directory):

aws s3 cp s3://raster/AW3D30/ . –recursive –endpoint-url https://opentopography.s3.sdsc.edu –no-sign-request

Regional DEM

Shuttle Radar Topography Mission (SRTM)

The Shuttle Radar Topography Mission (SRTM) obtained elevation data on a near-global scale to generate the most complete high-resolution digital topographic database of Earth. SRTM consisted of a specially modified radar system that flew onboard the Space Shuttle Endeavour during an 11-day mission in February of 2000. SRTM is an international project spearheaded by the National Geospatial-Intelligence Agency (NGA) and the National Aeronautics and Space Administration (NASA).

SRTM is available in (at least) 30, 90 at 500 m spatial resolution. The SRTM data al stem from a Space Shuttle flight in 2000.

SRTM GL1 and GL3

The 1 arc sec (~30 m) product is available in two version; 1 and 3. In version 3 voids are filled in using primarily ASTERDEM. SRTMGL1v003 is available both from USGS and OpenTopography. The download procedures for data holding on both USGS servers and the OpenTopography are outlined above. SRTM does not cover regions above 60 degrees latitude.

SRTM15Plus

SRTM15Plus is a global topography and bathymetry grid at 15 Arc Sec (~500 m) spatial resolution. The dataset was published in March 2019.

SRTM15Plus is available from OpenTopography.

Arctic DEM

ArcticDEM is an incomplete attempt to create a very high resolution (2 m spatial resolution) circumpolar DEM over the Arctic region. The work has been led by the United States National Geospatial-Intelligence Agency (NGA) and the National Science Foundation (NSF). The DEM is created from optical stereo imagery and open source photogrammetry software. It covers all land areas north of 60 degrees, all territory of Greenland, the State of Alaska in entirety, and the Kamchatka Peninsula of the Russian Federation. ArticDEM is freely available from GRACE TELLUS.

PanArctic DEM

PanarcticDEM is a circumpolar digital elevation models > 55° N, available from PANGEA. It is in 90 m spatial resolution and compiled from different sources over different regions, including topographic contours over large parts of Russia. It is freely available and can be downloaded in 3 pieces. PanarcticDEM is not complete.