srtm_height_profile¶
-
pycraf.pathprof.
srtm_height_profile
(lon_t, lat_t, lon_r, lat_r, step)[source] [edit on github]¶ Extract a height profile from SRTM data.
- Parameters
- Returns
- lons
Quantity
1D array Geographic longitudes of path.
- lats
Quantity
1D array Geographic latitudes of path.
- distance
Quantity
scalar Distance between start and end point of path.
- distances
Quantity
1D array Distances along the path (with respect to start point).
- heights
Quantity
1D array 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
1D array 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.