Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#157] Example notebook for NLDI data access #158

Merged
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
Loading