Skip to content

Commit

Permalink
fix tutorial for groundwater recharge calculation with EE
Browse files Browse the repository at this point in the history
  • Loading branch information
guiattard committed Jul 15, 2024
1 parent 484e0d3 commit 1e65d73
Showing 1 changed file with 4 additions and 4 deletions.
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",
"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

0 comments on commit 1e65d73

Please sign in to comment.