SWORD.get_nodes_of_reach()
# Import package
from dahitiapi.SWORD import SWORD
# Initialize Class
sword = SWORD()
SWORD_version = 'v17'
SWORD_reach_id = 62262600151
response = sword.get_nodes_of_reach(SWORD_version, SWORD_reach_id)
Output of JSON response:
{
'SWORD_version': 'v17b',
'nodes': [
{
'cl_ids_0': 18224252,
'cl_ids_1': 18224258,
'dist_out': 2514538.664618905,
'edit_flag': None,
'end_reach': 0,
'ext_dist_coef': 3.0,
'facc': 4432.585614577154,
'grod_id': 0,
'hfalls_id': 0,
'id': 9550490,
'lakeflag': 0,
'main_side': 0,
'manual_add': 0,
'max_width': 48.0,
'meander_length': 663.4122856917784,
'n_chan_max': 1,
'n_chan_mod': 1,
'network': 1,
'node_id': 62262600150011,
'node_length': 184.6843226986223,
'obstr_type': 0,
'path_freq': 1,
'path_order': 872,
'path_segs': 1934,
'reach_id': 62262600151,
'ref_location': 'POINT(-61.327550282322605 -9.518092424480542)',
'river_name': 'Rio Madeirinha',
'sinuosity': 1.0481880897527558,
'stream_order': 1,
'trib_flag': '0',
'width': 48.0,
'width_var': 157.10204081632654,
'wse': 97.4000015258789,
'wse_var': 0.0,
'wth_coef': 0.5,
'x': -61.3275,
'y': -9.518092424480542
},
...
{
'cl_ids_0': 18224561,
'cl_ids_1': 18224566,
'dist_out': 2524732.682790676,
'edit_flag': None,
'end_reach': 0,
'ext_dist_coef': 3.0,
'facc': 4206.719262716378,
'grod_id': 0,
'hfalls_id': 0,
'id': 9550541,
'lakeflag': 0,
'main_side': 0,
'manual_add': 0,
'max_width': 42.0,
'meander_length': 408.0001883137874,
'n_chan_max': 1,
'n_chan_mod': 1,
'network': 1,
'node_id': 62262600150521,
'node_length': 212.1663270065592,
'obstr_type': 0,
'path_freq': 1,
'path_order': 872,
'path_segs': 1934,
'reach_id': 62262600151,
'ref_location': 'POINT(-61.335147605833384 -9.585801987819092)',
'river_name': 'Rio Madeirinha',
'sinuosity': 1.0238401841313427,
'stream_order': 1,
'trib_flag': '0',
'width': 42.0,
'width_var': 55.25,
'wse': 102.80000305175781,
'wse_var': 0.0,
'wth_coef': 0.5,
'x': -61.3351,
'y': -9.585801987819092
}
]
}