Skip to content

Commit bf5f18e

Browse files
committed
get rid of arbitrary lower bound date in timeseries call
1 parent c2d6d3b commit bf5f18e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

demos/WaterData_demo.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"id": "70ee1da9",
177177
"metadata": {},
178178
"source": [
179-
"First, let's get our expected date range in order. Note that the `waterdata` functions are capable of taking in bounded and unbounded date and datetime ranges. In this case, we want the start date of the discharge timeseries to be no more recent than 10 years ago, and we want the end date of the timeseries to be from at most a week ago. We can use the notation `{date}/..` to mean that we want all timeseries that end a week ago or more recently. For now, we need to set a lower bound for the beginning of the timeseries though, so we will pick a date that is clearly earlier than when gages were recording data: `1700-01-01/{date}`. This means that we want all timeseries that begin after 1700-01-01 (which is all of them!) and before the upper bound date (in our case, 10 years prior to today)."
179+
"First, let's get our expected date range in order. Note that the `waterdata` functions are capable of taking in bounded and unbounded date and datetime ranges. In this case, we want the start date of the discharge timeseries to be no more recent than 10 years ago, and we want the end date of the timeseries to be from at most a week ago. We can use the notation `{date}/..` to mean that we want all timeseries that end a week ago or more recently. Similarly, we can use the notation `../{date}` to mean we want all timeseries that started at least 10 years ago (and thus likely have at least 10 years of data)."
180180
]
181181
},
182182
{
@@ -208,7 +208,7 @@
208208
"NE_discharge,_ = waterdata.get_time_series_metadata(\n",
209209
" state_name=\"Nebraska\",\n",
210210
" parameter_code='00060',\n",
211-
" begin=f\"1700-01-01/{ten_years_ago}\",\n",
211+
" begin=f\"../{ten_years_ago}\",\n",
212212
" end=f\"{one_week_ago}/..\",\n",
213213
" skip_geometry=True\n",
214214
")"
@@ -601,7 +601,7 @@
601601
],
602602
"metadata": {
603603
"kernelspec": {
604-
"display_name": "drpy-no-geopandas",
604+
"display_name": "drpy-demo",
605605
"language": "python",
606606
"name": "python3"
607607
},
@@ -615,7 +615,7 @@
615615
"name": "python",
616616
"nbconvert_exporter": "python",
617617
"pygments_lexer": "ipython3",
618-
"version": "3.14.2"
618+
"version": "3.11.14"
619619
}
620620
},
621621
"nbformat": 4,

0 commit comments

Comments
 (0)