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] 
 
- lons, lats
- Returns:
- heightsQuantity
- SRTM heights [m] 
 
- heights
- 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. 
 
- TileNotAvailableOnDiskWarning
 - 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- SRTMDATAenvironment variable (sub-directories are also parsed). Alternatively, use the- SrtmConfmanager to change the directory, where- pycraflooks for SRTM data, during run-time. The- SrtmConfmanager 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.