Value From Raster¶
adds the value from at the node location.
Parameter¶
| Name | Type | Description |
|---|---|---|
| view_name | STRING | lead view name |
| attribute_name | STRING | name of the attribute added to the nodes |
| raster_file | STRING | raster data file |
Data-stream¶
| View | Attribute | Type | Access | Description |
|---|---|---|---|---|
| view_name | NODE | read | ||
| attribute_name | DOUBLE | write |
Module Name¶
DM_ValueFromRaster
Sample Code for Python Simulation¶
value_form_raster = sim.add_module('DM_ValueFromRaster',
{'view_name': 'inlet',
'attribute_name': 'height',
'raster_file': 'vicmap_elev_dtm20.tif'},
nodes)