Skip to content

Commit

Permalink
[#157] Example notebook for NLDI data access (#158)
Browse files Browse the repository at this point in the history
* [#157] new notebook with examples for retrieving data from NLDI

* [#157] fixing corrupted notebook

* [#157] deleting empty cell

* [#157] adding examples with no multi-index

* [#157] reformating code cells

* [#157] updates to nldi examples notebook by Jeff Horsburgh

* Update demos/hydroshare/USGS_dataretrieval_NLDI_Examples.ipynb

Co-authored-by: Elise Hinman <[email protected]>

* Update demos/hydroshare/USGS_dataretrieval_NLDI_Examples.ipynb

Co-authored-by: Elise Hinman <[email protected]>

* Update demos/hydroshare/USGS_dataretrieval_NLDI_Examples.ipynb

Co-authored-by: Elise Hinman <[email protected]>

---------

Co-authored-by: Timothy Hodson <[email protected]>
Co-authored-by: Elise Hinman <[email protected]>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent baa65e5 commit 103724b
Show file tree
Hide file tree
Showing 9 changed files with 727 additions and 17 deletions.
19 changes: 18 additions & 1 deletion demos/hydroshare/USGS_dataretrieval_DailyValues_Examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,23 @@
"display(dailyMultiSites[0])"
]
},
{
"metadata": {},
"cell_type": "markdown",
"source": "The following example is the same as the previous example but with multi index turned off (multi_index=False)"
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": [
"dailyMultiSites = nwis.get_dv(sites=[\"01491000\", \"01645000\"], parameterCd=[\"00010\", \"00060\"],\n",
" start=\"2012-01-01\", end=\"2012-06-30\", statCd=[\"00001\",\"00003\"],\n",
" multi_index=False)\n",
"display(dailyMultiSites[0])"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -330,4 +347,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,23 @@
"display(data2[0])"
]
},
{
"metadata": {},
"cell_type": "markdown",
"source": "The following example is the same as the previous example but with multi index turned off (multi_index=False)"
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": [
"site_ids = [\"434400121275801\", \"375907091432201\"]\n",
"data2 = nwis.get_gwlevels(sites=site_ids, multi_index=False)\n",
"print(\"Retrieved \" + str(len(data2[0])) + \" data values.\")\n",
"display(data2[0])"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down
Loading

0 comments on commit 103724b

Please sign in to comment.