srtm_height_profile#
- pycraf.pathprof.srtm_height_profile(lon_t, lat_t, lon_r, lat_r, step, generic_heights=False)[source]#
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_heights
is 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
Quantity
1Darray
Geographic longitudes of path.
- lats
Quantity
1Darray
Geographic latitudes of path.
- distance
Quantity
scalar Distance between start and end point of path.
- distances
Quantity
1Darray
Distances along the path (with respect to start point).
- heights
Quantity
1Darray
Terrain height along the path (aka Height profile).
- bearing
Quantity
scalar Start bearing of path.
- backbearing
Quantity
scalar Back-bearing at end point of path.
- backbearings
Quantity
1Darray
Back-bearings for each point on the path.
- lons
Notes
distances
contains 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 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.