srtm_height_data#

pycraf.pathprof.srtm_height_data(lons, lats)[source]#

Interpolated SRTM terrain data extracted from “.hgt” files.

Parameters:
lons, latsQuantity

Geographic longitudes/latitudes for which to return height data [deg]

Returns:
heightsQuantity

SRTM heights [m]

Raises:
TileNotAvailableOnDiskWarningUserWarning

If a tile is requested that should exist on the chosen server but is not available on disk (at least not in the search path) a warning is raised. In this case, the tile height data is set to Zeros.

Notes

  • SRTM data tiles (*.hgt) need to be accessible by pycraf. It is assumed that these are either present in the current working directory or in the path defined by the SRTMDATA environment variable (sub-directories are also parsed). Alternatively, use the SrtmConf manager to change the directory, where pycraf looks for SRTM data, during run-time. The SrtmConf manager also offers additional features such as automatic downloading of missing tiles or applying different interpolation methods (e.g., splines). For details see Working with SRTM data.