get_nldi_interactively | R Documentation |
This function uses the NLDI API to allow the user to visually select a location (point) to get numerous hydrologic realizations.
get_nldi_interactively()
A list with sf objects.
The picker list has three options right now: Total Basin, All Local Catchments and Only Local Catchment. Descriptions below:
Total Basin: This will return the upstream tributaries (UT), upstream main (UM), basin boundary and site data above the user point.
All Local Catchments: This will return the upstream tributaries (UT) and all the local NHDPLusV2 catchments above the user point. In addition, each catchment will contain the zonal stats associated with 'CAT' in NLDI.
Only Local Catchment: This will only return the catchment at the point and tributary. In addition, it will also include the zonal stat for that catchment.
if(interactive()){
nldi_data <- get_nldi_interactively()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.