planetarydems
The delta of Jezero crater in 3-D, CTX images draped on the MESA elevation model, seen from the east

Jezero crater delta. CTX image draped on MESA, vertical exaggeration 4×.

Mars · global elevation model · 18 m grid

MESA

Mars Elevation from Shading and Altimetry

A global digital elevation model of Mars on an 18 m grid. Elevation is predicted from the shading in 48,002 Context Camera (CTX) images with a neural network and leveled to MOLA laser altimetry.

18 m
grid spacing. MOLA: 463 m
8.5 m
median error of the released DEM against 618 independent HiRISE DEMs. MOLA: 18.0 m
97.6%
of the surface predicted from CTX images. Infilled areas are flagged.
1.4 TB
single Cloud-Optimized GeoTIFF, read in subsets over HTTP.

Sites

Perspective views at 18 m

In each view, MESA (left of the divider) is compared with the MOLA gridded DEM (right). In the elevation view, both surfaces are colored by height above the MOLA areoid on one color scale. In the relief view, both surfaces are rendered with shading from the elevation model. In the CTX view, the CTX images used for the MESA prediction are draped over both surfaces. The divider is moved by dragging.

Data access

Getting the data

MESA version 1 is distributed as Cloud-Optimized GeoTIFFs (COGs) in a public AWS bucket. No AWS account is needed. Three methods of access are described below.

MethodMost useful forRequirements
1. Download from this pagearea selector and ZIP downloadSmall areas, up to 800 MB of data (~250 × 250 km at 18 m near the equator). Larger areas at coarser pixel sizes.A web browser. QGIS or ArcGIS to view the files.
2. Stream with coderioxarray, rasterio, GDAL, QGISSmall areas in a script or notebook. Only the tiles inside the area are transferred. Large regions at coarser pixel sizes, from the overviews.Python with rioxarray, or GDAL. QGIS for streaming without code.
3. Bulk downloadAWS command lineLarge areas and whole files: the full DEM, the uncertainty map, the CTX image mosaic, or whole folders, for work offline.The AWS Command Line Interface (AWS CLI), installed as below. Disk space: 1.4 TB for the DEM.

Hosted on AWS. The files are in the public bucket s3://planetarydems (AWS region us-west-2), under mars/mesa/v1/, through the AWS Open Data Sponsorship Program. No AWS account is needed. The HTTPS address of each file is https://planetarydems.s3.us-west-2.amazonaws.com/mars/mesa/v1/ followed by the path in the table. Every file is described in the bucket README.

The four products are defined on one grid (global equirectangular, Mars sphere). Resampling is not required to overlay them.

ProductContentGrid and formatStatus
MESA DEM
dem/mesa_mars_dem_18m_v1.tif
Elevation in meters above the MOLA areoid (the PEDR height convention), float32, nodata −99991,185,494 × 592,747 pixels at 18 m. One lossless COG, ~1.4 TBAvailable
Mask
dem/mesa_mars_dem_18m_v1_mask.tif
0 = predicted from CTX, 1 = infilled by the inpainting network, 2 = short bridge or seam replacement (MOLA-guided, up to 180 m), 3 = MOLA fill with matched edges, 255 = nodataSame grid. uint8 COG, 1.2 GBAvailable
Uncertainty map
uncertainty/mesa_mars_uncertainty_median_m_v1.tif
Expected error of each pixel in meters, from the median error of test pixels with the same slope, local incidence, and distance to the nearest laser shot. Infilled pixels are assigned by distance to the nearest predicted pixel. A class raster accompanies the map (mesa_mars_uncertainty_class_v1.tif: reliable <10 m, caution 10–25 m, unreliable ≥25 m, and infilled).Same grid. float32 COG, 144 GBAvailable
CTX image mosaic
ctx_image/mesa_ctx_image_6m_v1.tif
8-bit CTX image. Each pixel is taken from the registered image that dominates the DEM at that location.DEM grid at one third of the pixel size (6 m, 3 × 3 per DEM pixel). One lossless COG, ~4.2 TBAvailable

The bucket also holds the DEM flags (dem/mesa_mars_dem_18m_v1_flags.tif), the 90th-percentile error and the seam flags of the uncertainty layer (uncertainty/), the footprints of the 57,945 image placements (footprints/), a STAC catalog (stac/catalog.json), and SHA-256 checksums (checksums/SHA256SUMS). Every folder is listed on the bucket browse page and with aws s3 ls (Method 3).

Grid
Simple cylindrical on the Mars sphere, R = 3,396,190 m, centered on 0° longitude
Size
1,185,494 × 592,747 pixels of 18 m at the equator, edges on ±180° and ±90°
Coordinates
Longitude −180 to 180, east-positive. Heights relative to the MOLA areoid, as for MOLA PEDR ELEV
Layout
512 × 512 tiles, DEFLATE compression, 12 overview levels with 36 m to 74 km pixels

1Download from this page

Most useful for small areas. The subset is cut from the COG in the web browser and saved as GeoTIFFs for QGIS or ArcGIS. Command-line tools are not required.

Select an area and download

Download for QGIS or ArcGIS

The ZIP contains the DEM and the mask of the selected area as GeoTIFFs, each with a world file (.tfw) and a projection file (.prj).

Browser downloads are limited to 800 MB of raw data. Larger areas are streamed with code or QGIS (Method 2) or downloaded in full with the AWS command line (Method 3).

Open the download in a GIS

QGIS free, qgis.org

  1. Unzip the download.
  2. Drag …_mesa_dem.tif into the QGIS window, or use Layer ▸ Add Layer ▸ Add Raster Layer.
  3. If a red “No transform available” message appears, right-click the layer and choose Layer CRS ▸ Set Project CRS from Layer. Then close the message.
  4. For shaded relief, right-click the layer and choose Duplicate Layer. In Layer Properties ▸ Symbology, set the lower copy to Hillshade and the upper copy to Singleband pseudocolor at ~50% opacity.
QGIS main window with the Jezero crater subset of MESA, colored elevation over a hillshade
The Jezero crater subset in QGIS 3.30, colored elevation over a hillshade.

ArcGIS Pro

  1. Unzip the download.
  2. On the Map tab, click Add Data and select …_mesa_dem.tif.
  3. Right-click the map in the Contents pane and open Properties ▸ Coordinate Systems. Under Layers, select the coordinate system of the MESA layer (Mars equirectangular) and click OK. Remove the Earth basemap.
  4. For shaded relief, open Imagery ▸ Raster Functions ▸ Surface ▸ Hillshade and select the DEM as input.

The coordinate system is stored in each GeoTIFF. The .tfw and .prj files are included for software that reads world files.

2Stream with code

Most useful for small areas in a script or notebook. Subsets are read with HTTP range requests in rioxarray, rasterio, or GDAL. Only the 512 × 512 pixel tiles that intersect the requested area are transferred. In a test, ~12 MB were transferred for a 35 × 30 km subset at Jezero crater. The area in the code is the one selected in Method 1.

Installation: pip install rioxarray or conda install -c conda-forge rioxarray. rasterio is installed with rioxarray. The GDAL command-line tools are installed with conda install -c conda-forge gdal.


    

Further examples

Large regions from overviews

The same surface is stored at coarser pixel spacing in 12 overview levels. At level 3 (288 m pixels), a 30° × 30° region is ~6,200 pixels across.

overview_level0123457911
pixel36 m72 m144 m288 m576 m1.2 km4.6 km18 km74 km

Infilled pixels

2.3% of the surface is infilled, in areas without usable CTX images. Infilled pixels are suitable for context. They are unsuitable for measurements of small landforms.

Square pixels in meters

Pixels of the global grid are elongated east–west away from the equator. Reprojection to a projection centered on the area is recommended before distances or slopes are measured.

HTTP read settings

With these GDAL settings, the directory listing is skipped, requests for adjacent tiles are merged, and connections are reused.

Streaming without code: QGIS

The COG is also read directly in QGIS. Only the tiles in view are transferred.

  1. Open Layer ▸ Add Layer ▸ Add Raster Layer. Select Protocol: HTTP(S), cloud, etc., keep the type HTTP/HTTPS/FTP, and paste the DEM address into URI. Click Add.
  2. Zoom to the area of interest.
  3. Right-click the layer and choose Export ▸ Save As. Under Extent, click Map Canvas Extent or draw a box on the map. Keep the resolution at 18 m, enter a file name, and click OK.
QGIS Data Source Manager, Raster page, with the MESA COG address entered under Protocol
Step 1. The MESA DEM added by its address.
QGIS Save Raster Layer As dialog with the extent and 18 m resolution set
Step 3. A subset of the streamed layer saved as a GeoTIFF.

3Bulk download with the AWS command line

Most useful for large areas and whole files, for work offline or on many areas. Each product is a single file that covers Mars. Files and folders are copied with the AWS Command Line Interface (AWS CLI), in parallel parts. Areas are cut from a downloaded file with the commands of Method 2, with the local file name in place of the web address.

Install the AWS CLI free

  1. Run the commands for your system. The full instructions are in the AWS CLI installation guide.
  2. Open a new terminal and check the installation with aws --version.
  3. AWS credentials and aws configure are not needed. Each command on this page includes --no-sign-request, for anonymous access.

Without the AWS CLI, single files are downloaded over HTTPS, for example with curl -O and the HTTPS address. Large files are copied faster with the AWS CLI.


      

Download

List a folder

File names and sizes. The folders are dem/, uncertainty/, ctx_image/, footprints/, stac/, checksums/, and docs/.

Download files

Each file is saved in the current folder. The DEM is 1.4 TB. The mask is 1.2 GB.

Download a folder

Folders are copied with sync. Files already downloaded are skipped when the command is run again. The footprints folder holds 3,242 files, 14.5 GB.

Check a download

The SHA-256 checksum of every file is published in the bucket. The two values printed must match.

Cut a large area from the downloaded DEM

Valles Marineris, 80° W to 40° W and 20° S to 0°: 131,722 × 65,861 pixels, 35 GB before compression.

Download sizes and times

File or folderSizeAt 100 Mbit/sAt 1 Gbit/s
Mask dem/mesa_mars_dem_18m_v1_mask.tif1.2 GB2 min10 s
Footprints folder footprints/14.5 GB19 min2 min
Uncertainty folder uncertainty/ (4 files)299 GB6.6 h40 min
DEM dem/mesa_mars_dem_18m_v1.tif1.4 TB31 h3.1 h
CTX image mosaic ctx_image/mesa_ctx_image_6m_v1.tif4.2 TB3.9 days9.4 h

Times assume the full network rate for the whole transfer.

Accuracy

Accuracy assessment

Test sites were withheld from training by location. HiRISE DEMs were produced from independent imagery with a different stereo pipeline. Errors are medians of the per-DEM mean absolute error of the product as delivered.

Correlation with HiRISE

by wavelength, 581 co-registered HiRISE DEMs

MESAMOLA

RMS error (m)

same DEMs and bands

MESAMOLA
Three HiRISE test sites: CTX image, HiRISE DEM, MESA and MOLA side by side
Three HiRISE DEMs of the test set, 8 km across. All panels are shown in place. Ridges, gullies, and dunes in the HiRISE DEMs are reproduced in MESA and are absent from MOLA. Color is elevation over a hillshade. Elevations are absolute in every panel.

Citation

Citation and license

Paper

In preparation.

Code and model

The source code and trained model weights are at github.com/planetarydems/mesa under the MIT License. Version 1.0.0 is archived on Zenodo, doi.org/10.5281/zenodo.24697130.

License

Creative Commons Attribution 4.0 (CC BY 4.0). MESA is a derived product made at MIT. The input data (MRO CTX images, MOLA altimetry) are NASA Planetary Data System products in the public domain.