srtm_height_map#
- pycraf.pathprof.srtm_height_map(lon_c, lat_c, map_size_lon, map_size_lat, map_resolution=<Quantity 3. arcsec>, hprof_step=None, do_cos_delta=True, do_coords_2d=False)[source]#
Extract terrain map from SRTM data.
- Parameters:
- lon_t, lat_t
Quantity
Geographic longitude/latitude of map center [deg]
- map_size_lon, map_size_lat
Quantity
Map size in longitude/latitude[deg]
- map_resolution
Quantity
, optional Pixel resolution of map [deg] (default: 3 arcsec)
- hprof_step
Quantity
, optional Pixel resolution of map [m] (default: None) Overrides
map_resolution
if given!- do_cos_deltabool, optional
If True, divide
map_size_lon
bycos(lat_c)
to produce a more square-like map. (default: True)- do_coords_2dbool, optional
If True, return 2D coordinate arrays (default: False)
- lon_t, lat_t
- Returns:
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.