SWORD.get_reach_info()
# Import package
from dahitiapi.SWORD import SWORD
# Initialize Class
sword = SWORD()
SWORD_version = 'v17'
SWORD_reach_id = 62262600151
response = sword.get_reach_info(SWORD_version, SWORD_reach_id)
Output of JSON response:
{
'SWORD_version': 'v17',
'change_log': '',
'cl_ids_0': 18224252,
'cl_ids_1': 18224566,
'continent': 'south_america',
'dist_out': 2524732.682790676,
'edit_flag': None,
'end_reach': 0,
'facc': 4432.585614577154,
'grod_id': 0,
'hfalls_id': 0,
'iceflag': 296,
'id': 217660,
'lakeflag': 0,
'low_slope_flag': 0,
'main_side': 0,
'max_width': 296.0,
'n_chan_max': 1,
'n_chan_mod': 1,
'n_nodes': 52,
'n_rch_down': 1,
'n_rch_up': 1,
'network': 1,
'nodes': 'LINESTRING(-61.3275 -9.518092424480542,-61.3278 '
'-9.519720821108063,-61.3283 -9.521350647080746,-61.3283 '
'-9.523249247256953,-61.3283 -9.525012738175926,-61.3281 '
'-9.52663906129533,-61.327 -9.528080107090128,-61.3252 '
'-9.528442256967605,-61.3235 -9.528955133885542,-61.3221 '
'-9.530136318141832,-61.3215 -9.531760920671802,-61.3219 '
'-9.533525792269094,-61.3226 -9.535292011150057,-61.3232 '
'-9.536922490672753,-61.3239 -9.53855296989064,-61.3245 '
'-9.540318849857156,-61.325 -9.542084366536576,-61.3257 '
'-9.54371541473668,-61.3267 -9.545211663108956,-61.3278 '
'-9.546410688657193,-61.3293 -9.547656517381526,-61.331 '
'-9.548469031343169,-61.3318 -9.54948324829054,-61.331 '
'-9.550695894878752,-61.3312 -9.552556834244001,-61.331 '
'-9.554353679832364,-61.3296 -9.554971997076906,-61.3286 '
'-9.556333679776557,-61.3292 -9.557351662986107,-61.3306 '
'-9.55765214260904,-61.3323 -9.557227229258839,-61.3339 '
'-9.558383294388115,-61.3352 -9.559031358034428,-61.3364 '
'-9.560583122098274,-61.3373 -9.562214683313352,-61.3381 '
'-9.56384624350335,-61.3391 -9.565342710940694,-61.3397 '
'-9.566973074628082,-61.3392 -9.568597829627663,-61.338 '
'-9.569948535630461,-61.3368 -9.571317108389524,-61.3351 '
'-9.57158530553629,-61.3348 -9.57269067904911,-61.3362 '
'-9.573963142299789,-61.3363 -9.575500673833156,-61.3353 '
'-9.57698744169476,-61.334 -9.578337496672495,-61.3329 '
'-9.579688386081871,-61.3323 -9.581177399872766,-61.333 '
'-9.582807879881774,-61.334 -9.584304680830254,-61.3351 '
'-9.585801987819092)',
'obstr_type': 0.0,
'path_freq': 1,
'path_order': 872,
'path_segs': 1934,
'rch_id_dn_0': 62262600141,
'rch_id_dn_1': None,
'rch_id_dn_2': None,
'rch_id_dn_3': None,
'rch_id_up_0': 62262600166,
'rch_id_up_1': None,
'rch_id_up_2': None,
'rch_id_up_3': None,
'reach_id': 62262600151,
'reach_id_v16': None,
'reach_length': 10378.702494469344,
'river_name': 'Rio Madeirinha',
'slope': 0.5621466108015749,
'slope_IRISv2r1': None,
'stream_order': 1,
'swot_obs': 2,
'swot_orbits_0': 395,
'swot_orbits_1': 576,
'swot_orbits_10': None,
'swot_orbits_11': None,
'swot_orbits_12': None,
'swot_orbits_13': None,
'swot_orbits_14': None,
'swot_orbits_15': None,
'swot_orbits_16': None,
'swot_orbits_17': None,
'swot_orbits_18': None,
'swot_orbits_19': None,
'swot_orbits_2': None,
'swot_orbits_20': None,
'swot_orbits_3': None,
'swot_orbits_4': None,
'swot_orbits_5': None,
'swot_orbits_6': None,
'swot_orbits_7': None,
'swot_orbits_8': None,
'swot_orbits_9': None,
'trib_flag': '0',
'width': 48.0,
'width_var': 419.98149659863947,
'wse': 98.0999984741211,
'wse_var': 3.9107640600127906,
'x': -61.330829869412455,
'x_max': -61.32150949902428,
'x_min': -61.33981206274567,
'y': -9.55391312675904,
'y_max': -9.517279711498313,
'y_min': -9.586481021964964
}