Skip to content

r.in.srtm

Imports SRTM HGT files into raster map.

r.in.srtm [-1] input=name [output=name] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

r.in.srtm input=name

grass.script.run_command("r.in.srtm", input, output=None, flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("r.in.srtm", input="name")

Parameters

input=name [required]
    Name of SRTM input tile (file without .hgt.zip extension)
output=name
    Name for output raster map (default: input tile)
-1
    Input is a 1-arcsec tile (default: 3-arcsec)
--overwrite
    Allow output files to overwrite existing files
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

input : str, required
    Name of SRTM input tile (file without .hgt.zip extension)
    Used as: input, file, name
output : str, optional
    Name for output raster map (default: input tile)
    Used as: output, raster, name
flags : str, optional
    Allowed values: 1
    1
        Input is a 1-arcsec tile (default: 3-arcsec)
overwrite: bool, optional
    Allow output files to overwrite existing files
    Default: False
verbose: bool, optional
    Verbose module output
    Default: False
quiet: bool, optional
    Quiet module output
    Default: False
superquiet: bool, optional
    Very quiet module output
    Default: False

DESCRIPTION

r.in.srtm imports SRTM HGT files into GRASS. SRTM Version 1 and improved Version 2 data sets can be downloaded from NASA at this site:
http://dds.cr.usgs.gov/srtm/ (archived)
https://earthexplorer.usgs.gov/

Gap-filled SRTM Version 3 data can be downloaded from USGS at this site:
https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL3.003/2000.02.11/

NOTES

SRTM tiles are of 1 degree by 1 degree size. The SRTM filename contains the coordinates which refer to the center of the lower left pixel (e.g., N51E010: lower left cell center at 10E, 51N). To identify a tile name, a grid can be easily visualized by d.grid:

d.grid size=1

To import TOPEX/SRTM30 PLUS data, use r.in.bin.

REFERENCES

M. Neteler, 2005. SRTM and VMAP0 data in OGR and GRASS. GRASS Newsletter, Vol.3, pp. 2-6, June 2005. ISSN 1614-8746.

SEE ALSO

r.in.bin, r.in.srtm.region (Addon), r.in.nasadem (Addon)

The Shuttle Radar Topography Mission homepage at NASA's JPL. (archived)
The SRTM Web Forum (archived)

AUTHORS

Markus Neteler
Improved by W. Kyngesburye and H. Bowman
Update for SRTM V3 by Markus Metz

SOURCE CODE

Available at: r.in.srtm source code (history)
Latest change: Wednesday Feb 19 13:05:15 2025 in commit bfe6ba0