{ "cells": [ { "cell_type": "markdown", "metadata": { "cell_marker": "\"\"\"" }, "source": [ "# River Discharge" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import xarray as xr\n", "\n", "import pydaymet as daymet\n", "import pygeohydro as gh\n", "from pygeohydro import NWIS, plot" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "_ = xr.set_options(display_expand_attrs=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can explore the available NWIS stations within a bounding box using ``interactive_map`` function. It returns an interactive map and by clicking on an station some of the most important properties of stations are shown so you can decide which station(s) to choose from." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "bbox = (-69.5, 45, -69, 45.5)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (time: 4018, station_id: 2)\n", "Coordinates:\n", " * time (time) datetime64[ns] 2000-01-01T05:00:00 ... 2010-12-31T05...\n", " * station_id (station_id) object 'USGS-01031450' 'USGS-01031500'\n", "Data variables:\n", " discharge (time, station_id) float64 0.7128 0.667 0.6435 ... 1.534 1.407\n", " station_nm (station_id) <U44 'Kingsbury Stream At Abbot Village, Maine...\n", " dec_lat_va (station_id) float64 45.18 45.17\n", " dec_long_va (station_id) float64 -69.45 -69.31\n", " alt_va (station_id) float64 423.0 358.5\n", " alt_acy_va (station_id) float64 0.01 0.01\n", " alt_datum_cd (station_id) <U6 'NGVD29' 'NGVD29'\n", " huc_cd (station_id) <U8 '01020004' '01020004'\n", " begin_date (station_id) <U10 '1997-07-26' '1902-10-01'\n", " end_date (station_id) <U10 '2023-11-26' '2023-11-26'\n", "Attributes: (1)