genet.utils.elevation
get_elevation_data(img, lat, lon)
#
get_elevation_image(elevation_tif)
#
validation_report_for_node_elevation(elev_dict, low_limit=-50, mont_blanc_height=4809)
#
Generates a validation report for the node elevation dictionary.
| PARAMETER | DESCRIPTION |
|---|---|
elev_dict
|
contains node_id as key and elevation in meters as value.
TYPE:
|
low_limit
|
values below this get flagged as possibly wrong. Defaults to -50 (below sea level).
TYPE:
|
mont_blanc_height
|
values above this get flagged as possibly wrong. Defaults to 4809 (the height of Mont Blanc).
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict
|
Contains summary statistics, and extreme values lists.
TYPE:
|
Source code in src/genet/utils/elevation.py
write_slope_xml(link_slope_dictionary, output_dir)
#
Generates a link_slopes XML file.
| PARAMETER | DESCRIPTION |
|---|---|
link_slope_dictionary
|
dictionary of link slopes in format
TYPE:
|
output_dir
|
directory where the XML file will be written to.
TYPE:
|