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.
| Method | Most useful for | Requirements |
|---|---|---|
| 1. Download from this pagearea selector and ZIP download | Small 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, QGIS | Small 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 line | Large 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:// 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.
| Product | Content | Grid and format | Status |
|---|---|---|---|
MESA DEMdem/ | Elevation in meters above the MOLA areoid (the PEDR height convention), float32, nodata −9999 | 1,185,494 × 592,747 pixels at 18 m. One lossless COG, ~1.4 TB | Available |
Maskdem/ | 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 = nodata | Same grid. uint8 COG, 1.2 GB | Available |
Uncertainty mapuncertainty/ | 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 GB | Available |
CTX image mosaicctx_image/ | 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 TB | Available |
The bucket also holds the DEM flags (dem/), 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/), and SHA-256 checksums (checksums/). 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
- Unzip the download.
- Drag
…_mesa_dem.tifinto the QGIS window, or use Layer ▸ Add Layer ▸ Add Raster Layer. - 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.
- 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.
ArcGIS Pro
- Unzip the download.
- On the Map tab, click Add Data and select
…_mesa_dem.tif. - 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.
- 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_level | 0 | 1 | 2 | 3 | 4 | 5 | 7 | 9 | 11 |
|---|---|---|---|---|---|---|---|---|---|
| pixel | 36 m | 72 m | 144 m | 288 m | 576 m | 1.2 km | 4.6 km | 18 km | 74 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.
- 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.
- Zoom to the area of interest.
- 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.
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
- Run the commands for your system. The full instructions are in the AWS CLI installation guide.
- Open a new terminal and check the installation with
aws --version. - AWS credentials and
aws configureare 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 folder | Size | At 100 Mbit/s | At 1 Gbit/s |
|---|---|---|---|
Mask dem/ | 1.2 GB | 2 min | 10 s |
Footprints folder footprints/ | 14.5 GB | 19 min | 2 min |
Uncertainty folder uncertainty/ (4 files) | 299 GB | 6.6 h | 40 min |
DEM dem/ | 1.4 TB | 31 h | 3.1 h |
CTX image mosaic ctx_image/ | 4.2 TB | 3.9 days | 9.4 h |
Times assume the full network rate for the whole transfer.
- Areas that cross 180° longitude are requested in two parts, one on each side.
- Data are available equatorward of ~88.6° latitude. Near the poles, subsets are selected by longitude and latitude and reprojected to polar stereographic.
- Vertical exaggeration in the perspective views is for display. Heights in the files are in meters without exaggeration.
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
RMS error (m)
same DEMs and bands
Citation
Citation and license
In preparation.
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.
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.