srtm_height_data#
- pycraf.pathprof.srtm_height_data(lons, lats)[source]#
Interpolated SRTM terrain data extracted from “.hgt” files.
- Parameters:
- lons, lats
Quantity
Geographic longitudes/latitudes for which to return height data [deg]
- lons, lats
- Returns:
- heights
Quantity
SRTM heights [m]
- heights
- Raises:
- TileNotAvailableOnDiskWarning
UserWarning
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.
- TileNotAvailableOnDiskWarning
Notes
SRTM data tiles (
*.hgt
) need to be accessible bypycraf
. It is assumed that these are either present in the current working directory or in the path defined by theSRTMDATA
environment variable (sub-directories are also parsed). Alternatively, use theSrtmConf
manager to change the directory, wherepycraf
looks for SRTM data, during run-time. TheSrtmConf
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.