srtm_height_profile¶
- pycraf.pathprof.srtm_height_profile(lon_t, lat_t, lon_r, lat_r, step, generic_heights=False)[source] [edit on github]¶
Extract a height profile from SRTM data.
- Parameters
- lon_t, lat_t
Quantity Geographic longitude/latitude of start point (transmitter) [deg]
- lon_r, lat_r
Quantity Geographic longitude/latitude of end point (receiver) [deg]
- step
Quantity Distance resolution of height profile along path [m]
- generic_heightsbool
If
generic_heightsis set to True, heights will be set to zero. This can be useful for generic (aka flat-Earth) computations. (Default: False)
- lon_t, lat_t
- Returns
- lons
Quantity1D array Geographic longitudes of path.
- lats
Quantity1D array Geographic latitudes of path.
- distance
Quantityscalar Distance between start and end point of path.
- distances
Quantity1D array Distances along the path (with respect to start point).
- heights
Quantity1D array Terrain height along the path (aka Height profile).
- bearing
Quantityscalar Start bearing of path.
- backbearing
Quantityscalar Back-bearing at end point of path.
- backbearings
Quantity1D array Back-bearings for each point on the path.
- lons
Notes
distancescontains distances from Transmitter.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 theSRTMDATAenvironment variable (sub-directories are also parsed). Alternatively, use theSrtmConfmanager to change the directory, wherepycraflooks for SRTM data, during run-time. TheSrtmConfmanager 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.