Skip to content

Commit

Permalink
[#157] reformating code cells
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Aug 30, 2024
1 parent 9ed8729 commit a4ac32f
Showing 1 changed file with 10 additions and 37 deletions.
47 changes: 10 additions & 37 deletions demos/hydroshare/USGS_dataretrieval_NLDI_Examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"gdf = nldi.get_flowlines(\n",
" navigation_mode='UM', feature_source=\"WQP\", feature_id=\"USGS-01031500\"\n",
")\n",
"gdf = nldi.get_flowlines(navigation_mode='UM', feature_source=\"WQP\", feature_id=\"USGS-01031500\")\n",
"display(gdf)"
],
"id": "404457b0b8ea283c",
Expand All @@ -165,9 +163,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"flowlines_json_data = nldi.get_flowlines(\n",
" navigation_mode='UM', feature_source=\"WQP\", feature_id=\"USGS-01031500\", as_json=True\n",
")\n",
"flowlines_json_data = nldi.get_flowlines(navigation_mode='UM', feature_source=\"WQP\", feature_id=\"USGS-01031500\", as_json=True)\n",
"print(flowlines_json_data)"
],
"id": "c1d916a742e0e986",
Expand Down Expand Up @@ -207,9 +203,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"flowlines_json_data = nldi.get_flowlines(\n",
" navigation_mode='UM', comid=13294314, as_json=True\n",
")\n",
"flowlines_json_data = nldi.get_flowlines(navigation_mode='UM', comid=13294314, as_json=True)\n",
"print(flowlines_json_data)"
],
"id": "b39d360a47ba170f",
Expand Down Expand Up @@ -250,12 +244,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"gdf = nldi.get_features(\n",
" data_source=\"census2020-nhdpv2\",\n",
" navigation_mode=\"UM\",\n",
" feature_source=\"WQP\",\n",
" feature_id=\"USGS-01031500\",\n",
")\n",
"gdf = nldi.get_features(data_source=\"census2020-nhdpv2\", navigation_mode=\"UM\", feature_source=\"WQP\", feature_id=\"USGS-01031500\")\n",
"display(gdf)"
],
"id": "492b5bedfb71a478",
Expand All @@ -272,9 +261,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"gdf = nldi.get_features(\n",
" data_source=\"census2020-nhdpv2\", navigation_mode=\"UM\", comid=13294314\n",
")\n",
"gdf = nldi.get_features(data_source=\"census2020-nhdpv2\", navigation_mode=\"UM\", comid=13294314)\n",
"display(gdf)"
],
"id": "fe7bee5ba6e4f419",
Expand Down Expand Up @@ -308,9 +295,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"gdf = nldi.get_features(\n",
" comid=13294314, data_source=\"census2020-nhdpv2\", navigation_mode=\"UM\"\n",
")\n",
"gdf = nldi.get_features(comid=13294314, data_source=\"census2020-nhdpv2\", navigation_mode=\"UM\")\n",
"display(gdf)"
],
"id": "1957fe0113e682d4",
Expand Down Expand Up @@ -374,9 +359,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"basin_data = nldi.search(\n",
" feature_source=feature_source, feature_id=feature_id, find=\"basin\"\n",
")\n",
"basin_data = nldi.search(feature_source=feature_source, feature_id=feature_id, find=\"basin\")\n",
"print(basin_data)"
],
"id": "d7422c075998921c",
Expand All @@ -393,12 +376,7 @@
"metadata": {},
"cell_type": "code",
"source": [
"flowlines_data = nldi.search(\n",
" navigation_mode='UM',\n",
" feature_source=feature_source,\n",
" feature_id=feature_id,\n",
" find=\"flowlines\",\n",
")\n",
"flowlines_data = nldi.search(navigation_mode='UM', feature_source=feature_source, feature_id=feature_id, find=\"flowlines\")\n",
"print(flowlines_data)"
],
"id": "e247afc5b85a226c",
Expand All @@ -415,13 +393,8 @@
"metadata": {},
"cell_type": "code",
"source": [
"features_data = nldi.search(\n",
" data_source=\"census2020-nhdpv2\",\n",
" navigation_mode='UM',\n",
" feature_source=feature_source,\n",
" feature_id=feature_id,\n",
" find=\"features\",\n",
")\n",
"features_data = nldi.search(data_source=\"census2020-nhdpv2\", navigation_mode='UM', feature_source=feature_source,\n",
" feature_id=feature_id, find=\"features\")\n",
"print(features_data)"
],
"id": "a40613fc4fedc416",
Expand Down

0 comments on commit a4ac32f

Please sign in to comment.