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

fix tutorial for groundwater recharge calculation with EE #838

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tutorials/groundwater-recharge-estimation/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,8 @@
},
"outputs": [],
"source": [
"# Combine precipitation and evapotranspiration.\n",
"meteo = pr_m.combine(pet_m)\n",
"# Combine precipitation and evapotranspiration, and sort the collection.\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to mention the sort in the comment. That's redundant to what's in the code.

"meteo = pr_m.combine(pet_m).sort(\"system:time_start\")\n",
"\n",
"# Import meteorological data as an array at the location of interest.\n",
"meteo_arr = meteo.getRegion(poi, scale).getInfo()\n",
Expand Down Expand Up @@ -1212,7 +1212,7 @@
"***Case 2.2: the storage $ST_{m}$ is less than or equal to the water stored at the field capacity.***\n",
"\n",
"If $ST_{m} \u003c= ST_{FC}$, $APWL_{m}$ is implemented as follows:\n",
"$APWL_{m} = ST_{FC} \\times \\textrm{ln}(ST_{m}/ST_{FC})$, and no percolation occurs.\n",
"$APWL_{m} = - ST_{FC} \\times \\textrm{ln}(ST_{m}/ST_{FC})$, and no percolation occurs.\n",
"\n",
"#### Initialization\n",
"\n",
Expand Down Expand Up @@ -1381,7 +1381,7 @@
" new_apwl = new_apwl.where(zone1, zone1_apwl)\n",
"\n",
" # Calculate ST in zone 1.\n",
" zone1_st = prev_st.multiply(\n",
" zone1_st = stfc.multiply(\n",
" ee.Image.exp(zone1_apwl.divide(stfc).multiply(-1))\n",
" ).rename(\"st\")\n",
" # Implement ST in zone 1.\n",
Expand Down
Loading