The daily soil reservoir#

The soil reservoir turns the daily rain and ETP of a grid into the recharge of a MODFLOW 6 run. It is a water balance with one store per column. The store fills with the rain, loses water to the plants, and sends down what exceeds its capacity. This page gives the equations of hydromodpy/model/soil/kernel.py, what they assume and what they leave out. Only MODFLOW 6 accepts the reservoir, so a file that declares flow.sinks_sources.recharge.soil with another solver is refused. The reference page of that section lists every key a run sets.

The water path#

Water path through the daily soil reservoir Rain enters the soil store. The store loses water to evapotranspiration, at most kc times the ETP and less below alpha times RU, and its overflow becomes the recharge of MODFLOW 6. The demand the soil could not meet goes to the EVT package. Off by default: a curve number takes runoff from the rain, routes it and delays it, a bypass skips the store, a transit store delays the overflow, and a sealed share of the rain runs off at once. Rain P Curve number Soil store S Evapotranspiration ETR Transit store R Recharge N EVT Routing store C Delay L Runoff capacity RU at most kc E, less below α RU MODFLOW 6 MODFLOW 6 to the discharge unmet demand X O P - Q Q bypass, share b sealed share f, at once
The solid boxes work in every soil run. The dashed boxes and paths are off by default, and each one starts when the file sets its key.
Notation of this page

Every column of the reservoir is independent, so the column index is left out. \(t\) is the day. Stores are in mm of water per unit of unsealed area, and fluxes in mm/day. Every symbol of the site is on Notation.

Symbol

Meaning

Unit

Set by

\(t\)

time; on the soil page, the day

s

start_datetime and end_datetime bound the run

\(N\)

recharge rate, positive into the aquifer

m/s

flow.sinks_sources.recharge

\(P_t\)

rain of day \(t\)

mm/day

data.precipitation

\(E_t\)

ETP of day \(t\), as loaded

mm/day

data.etp

\(\mathrm{RU}\)

capacity of the soil store

mm

ru

\(\alpha\)

share of RU above which evaporation is not limited

alpha

\(k_c\)

factor applied to the loaded ETP

kc

\(f\)

sealed share of the area

impervious_fraction

\(b\)

share of the rain that skips the soil

bypass_fraction

\(\tau\)

time constant of the transit store

day

transit_time

\(\mathrm{CN}\)

SCS curve number

curve_number

\(\tau_q\)

time constant of the curve-number runoff store

day

runoff_time

\(L\)

pure delay of the curve-number runoff

day

runoff_lag

\(S_t, R_t, C_t\)

soil, transit and curve-number stores at the end of day \(t\)

mm

state, not a key

\(Q_t\)

curve-number runoff of day \(t\)

mm/day

derived

\(O_t\)

water that reaches the water table, per unit of unsealed area

mm/day

derived

\(w_t\)

wetness of the soil the day before, a share of RU

derived

\(\sigma_t\)

SCS retention of day \(t\)

mm

derived

\(B_t\)

rain that skips the soil on day \(t\)

mm/day

derived

\(W_t\)

water in the soil after the rain, before any evaporation

mm

derived

\(\psi_t\)

evaporation stress, the share of \(k_c E_t\) the soil can meet

derived

\(\mathrm{ETR}_t\)

evapotranspiration of the soil on day \(t\)

mm/day

derived

\(X_t, I_t\)

overflow of the soil, and inflow of the transit store (\(X_t + B_t\))

mm/day

derived

\(Q^r_t, Q^L_t\)

curve-number runoff after its store, and after its delay

mm/day

derived

The daily balance#

With the default values, a day has three steps. The rain reaches the soil first, so the water in the soil before any evaporation is

(8)#\[W_t = S_{t-1} + P_t ,\]

where \(S_{t-1}\) is the store at the end of the day before. The soil evaporates at the full rate \(k_c E_t\) while it holds more than \(\alpha\,\mathrm{RU}\). Below that level the rate falls linearly with the store, and it can never exceed what the soil holds. The evapotranspiration reads

(9)#\[\psi_t = \min\!\left(1,\ \frac{W_t}{\alpha\,\mathrm{RU}}\right), \qquad \mathrm{ETR}_t = \min\bigl(W_t,\ k_c\,E_t\,\psi_t\bigr),\]

with \(\psi_t = 1\) if \(\mathrm{RU} = 0\). The water above the capacity leaves the soil, and the rest stays for the next day:

(10)#\[X_t = \max\bigl(0,\ W_t - \mathrm{ETR}_t - \mathrm{RU}\bigr), \qquad S_t = W_t - \mathrm{ETR}_t - X_t .\]

With the default values, this overflow \(X_t\) is the recharge \(N_t\) of MODFLOW 6. The demand the soil could not meet, \(k_c E_t - \mathrm{ETR}_t\), is offered to the water table (Where the results go).

The capacity ru is the water the roots can draw. It belongs to the site, so it has no default. The soil map of Brittany gives 100 to 200 mm on schist and granite [Berthier, 2013], and Dewandel and others [2020] take 125 mm on the catchment of example 04.

The share alpha sets when the plants begin to close their stomata. It is the \(1 - p\) of FAO-56 [Allen et al., 1998] and the \(LP\) of HBV [Seibert and Vis, 2012], and Manabe [1969] has the same form with 0.75. The default 0.45 is our choice. It means \(p = 0.55\), the value of table 22 of FAO-56 for cereals and maize, with 0.60 for pasture.

The factor kc scales the loaded ETP. The value 1 assumes that the surface of this ETP looks like the site. The attribute dictionaries of SIM2 label its ETP Penman-Monteith, but we found no primary text of Météo-France that gives its reference surface.

How much recharge, by capacity#

The capacity moves the recharge more than any other parameter. A larger store keeps more of the winter rain for the summer, when the plants take it back.

Mean annual recharge and evapotranspiration against the soil capacity, from 0 to 300 mm. Recharge falls from about 670 to 275 mm per year, evapotranspiration rises from about 235 to 630; the rain is 904 mm per year.

Fig. 17 Recharge and evapotranspiration against \(\mathrm{RU}\), from spinup_state and run_soil_balance on a synthetic six-year climate (904 mm of rain and 698 mm of ETP per year, the other keys at their defaults). The two curves sum to the rain over the run.#

Example 04 prints the same ladder on the SIM2 rain and ETP of 2015 to 2020 over its catchment:

\(\mathrm{RU}\) (mm)

50

100

150

200

250

Recharge (mm/year)

443

389

350

315

280

Over the same days the rain is 911 mm/year, the ETP 693 mm/year and the gauged discharge 327 mm/year. So the discharge alone does not fix the capacity.

What the recharge represents#

With the default values the reservoir has no runoff term. All the water above RU goes to the water table, so this recharge is an effective rain. Its counterpart in SIM2 is the drainage plus the runoff, DRAINC + RUNC. On the catchment of example 04, from October 1985 to July 2015, the reservoir gives 308 mm/year and SIM2 gives 243 + 79 = 322 mm/year.

MODFLOW 6 then splits this water. Where the water table reaches the drain elevation, the water leaves through the drain in the same period. Elsewhere it passes through the aquifer. So the split between quick and slow flow comes from the aquifer parameters and the drains. On example 04 at the daily step, 2016 to 2020, with K = 3.16e-5 m/s and Sy = 0.04, the filter of Lyne and Hollick (0.925, three passes) gives a baseflow index of 0.69 for the run and 0.67 for the gauge. Across K from 1e-7 to 1e-4 m/s and Sy from 0.02 to 0.08, the index of the run goes from 0.03 to 0.81. Dewandel and others [2020] impose the split at the surface instead, with 55 % of the effective rain going to the aquifer on hard rock. Their share and this index are different quantities, so the comparison says nothing of the path of the water.

A strong rain on a dry soil gives no quick flow in this model, because the soil takes it and the plants use it later.

The optional terms#

In the code, a day runs the curve number, then the bypass, the evaporation and the overflow, the transit, and at the end the routing and the delay of the runoff. The sealed share changes the area that all of them apply to.

Curve number#

A part of the rain runs off before it reaches the soil. The key curve_number starts this term, with a value between 30 and 98. The runoff is the SCS formula of HELP [Schroeder and others, 1994], eq. 21, and NEH-630 [USDA Natural Resources Conservation Service, 2004], eq. 10-1:

(11)#\[Q_t = \frac{(P_t - 0.2\,\sigma_t)^2}{P_t + 0.8\,\sigma_t} \quad \text{if } P_t > 0.2\,\sigma_t , \qquad Q_t = 0 \text{ otherwise.}\]

The retention \(\sigma_t\), in mm, depends on the wetness of the soil the day before,

(12)#\[w_t = \min\!\left(1,\ \max\!\left(0,\ \frac{S_{t-1}}{\mathrm{RU}}\right)\right), \qquad w_t = 1 \text{ if } \mathrm{RU} = 0 .\]

It moves linearly with \(w_t\), from the retention of the dry number at \(w_t = 0\) to the retention of the wet number at \(w_t = 1\). The file gives the class II number. The code derives \(\mathrm{CN}_I = 4.2\,\mathrm{CN} / (10 - 0.058\,\mathrm{CN})\) and \(\mathrm{CN}_{III} = 23\,\mathrm{CN} / (10 + 0.13\,\mathrm{CN})\), a fit about one number from table 10-1 of NEH-630, and a number gives the retention \(25400 / \mathrm{CN} - 254\). The straight line is our choice. HELP uses other bounds [Schroeder and others, 1994], and SWAT uses a curve that adds 2.54 mm at saturation [Neitsch et al., 2011]. The ratio 0.2 stays because the tables of numbers were built with it, although measured ratios are far lower [Hawkins et al., 2002].

The retention is no store, because no water sits in it and the balance never counts it. NEH-630 warns against reading it as the storage of the soil [USDA Natural Resources Conservation Service, 2004], p. 10-5. The term reads the soil and never the water table, so it renders saturation runoff badly. The drains of MODFLOW 6 already give that runoff and the term can count it twice, so it stays off by default.

Bypass#

Water can reach the water table through cracks, root channels and worm holes without wetting the soil. The key bypass_fraction gives this flow as a constant share \(b\) of the rain that infiltrates:

(13)#\[B_t = b\,(P_t - Q_t), \qquad W_t = S_{t-1} + (1 - b)\,(P_t - Q_t).\]

The share stays the same in every season and every storm, and real preferential flow does not. A calibrated bypass often stands in for the slow drainage that this store does not have [Ireson and Butler, 2013]. On the rain and ETP of example 04, 2015 to 2020, shares of 0.1 and 0.2 give 0.18 and 0.36 mm/day of recharge from July to September, for 0.000 without a bypass. So a bypass rebuilds a summer floor, and it stays at 0 unless the site shows preferential flow.

Infiltration ratio#

The key infiltration_ratio gives the share \(r\) of the water leaving the soil that goes on to the aquifer, the ratio of infiltration of the effective rainfall (RIPE) of ESPERE [Lanini et al., 2016]. The rest runs off on the same day, beside the sealed share and the curve number, so the inflow of the transit store and the quick runoff read

(14)#\[I_t = r\,(X_t + B_t), \qquad Q^{\text{quick}}_t = (1 - r)\,(X_t + B_t).\]

With \(r = 1\), the default, all of it reaches the aquifer and the drains of MODFLOW give back what saturates, bit for bit as before. ESPERE v2 proposes the lowest yearly baseflow index of the Wallingford filter on the gauge, after Caballero et al. (2020, BRGM/RP-69217-FR). The soil budget of hmp run --until load_data prints that value when a gauge is loaded, and the user copies it, since the gauge the run is scored on never sets the model by itself. On the Nancon over 2015 to 2020 the lowest index is 0.70. With it the recharge falls from 421 to 295 mm/year and 126 mm/year runs off. The pbias of the discharge moves from 20.5 % to 22.1 %, so the quick runoff reaches the gauge, and the ru that closes the budget does not move, because the gauge sees recharge and runoff together.

Transit through the unsaturated zone#

The water can take time to cross the unsaturated zone. The key transit_time sets the time constant \(\tau\) of one linear reservoir, whose outflow is \(R/\tau\). The inflow \(I_t = X_t + B_t\) is constant over the day and the code integrates the reservoir exactly:

(15)#\[R_t = \tau I_t + (R_{t-1} - \tau I_t)\,e^{-1/\tau}, \qquad O_t = I_t - (R_t - R_{t-1}),\]

where \(O_t\) is the water that reaches the water table. A pulse leaves as a falling exponential, and \(\tau = 0\) gives \(O_t = I_t\). The limit of 30 days leaves the slow response to MODFLOW 6. One constant applies to the whole catchment, whatever the depth of the water table.

On example 04, 2016 to 2020, with K = 3.16e-5 m/s and Sy = 0.04, a delay of 5 days raises the NSE of the daily discharge from 0.58 to 0.79 and moves the July to September bias from -0.002 to +0.007 m3/s. A delay of 30 days, run at the monthly step, brings that bias from -0.007 to +0.050 m3/s, so the summer floor comes back.

Routing and delay of the runoff#

The curve-number runoff goes through the same reservoir, with the time constant \(\tau_q\) of runoff_time and its own store \(C_t\). The routed runoff is \(Q^r_t\), and \(\tau_q = 0\) gives \(Q^r_t = Q_t\). A pure delay of \(L\) days, runoff_lag, follows. With \(L = n + \varphi\), where \(n\) is a whole number of days and \(0 \le \varphi < 1\), the delayed runoff reads

(16)#\[Q^L_t = (1 - \varphi)\,Q^r_{t-n} + \varphi\,Q^r_{t-n-1} .\]

Both keys are read only with a curve number. They move the runoff in time and keep its volume, apart from the part pushed beyond the last day of the run. A day before the first day reads zero, or, with spinup = "first_year", the end of the last repeated year.

Sealed share#

The key impervious_fraction gives the share \(f\) of the area that is sealed. The rain on it runs off the same day, with no soil and no evaporation. The stores above are per unit of unsealed area, so the fluxes of the column read

(17)#\[\begin{split}\begin{aligned} N_t &= (1 - f)\,O_t,\\ \text{ETR}^{\text{col}}_t &= (1 - f)\,\mathrm{ETR}_t,\\ \text{residual ETP}_t &= (1 - f)\,\bigl(k_c\,E_t - \mathrm{ETR}_t\bigr),\\ \text{runoff}_t &= f\,P_t + (1 - f)\,Q^L_t . \end{aligned}\end{split}\]

A curve number fitted on a total runoff such as RUNC already holds the runoff of the sealed ground, so \(f\) stays at 0 with it. A mean of curve numbers does not replace \(f\) either, because the soil then keeps its whole area and its evapotranspiration.

Three days, by hand#

The numbers below come from one call of soil_step for each day, with \(\mathrm{RU} = 150\) mm, \(\alpha = 0.45\), \(k_c = 1\) and \(f = b = \tau = 0\). The last day adds a curve number of 80 with \(\tau_q = 0\). Its store is full, so \(w = 1\) and \(\sigma\) is the retention of the wet number, \(\mathrm{CN}_\mathrm{III} = 90.2\).

Dry day

Overflow

Curve number

\(S_{t-1}\) (mm)

40

145

150

\(P_t\), \(E_t\) (mm/day)

0, 4

30, 3

30, 3

What happens

\(W = 40\) is below \(\alpha\,\mathrm{RU} = 67.5\), so \(\psi = 0.593\)

\(W = 175\), evaporation 3, \(175 - 3 - 150 = 22\) leaves

\(w = 1\), \(\sigma = 27.6\), \(Q = 11.50\), then \(W = 168.50\)

ETR (mm/day)

2.37

3.00

3.00

Recharge \(N_t\) (mm/day)

0

22.00

15.50

Runoff (mm/day)

0

0

11.50

\(S_t\) (mm)

37.63

150

150

Residual ETP (mm/day)

1.63

0

0

The balance closes#

Over any run, per column and per day,

(18)#\[P_t = \mathrm{ETR}^{\text{col}}_t + N_t + \text{runoff}_t + \Delta\bigl[(1 - f)(S + R + C)\bigr]_t + \Delta\Lambda_t ,\]

where \(\Lambda_t\) is the running total of runoff held back by the delay. The function balance_residual computes the difference between the two sides. On 400 days of random rain and ETP over three columns, with all the options on, the largest residual is under \(10^{-13}\) mm.

The starting state#

With spinup = "none", the soil starts full and the other stores empty. With spinup = "first_year", the default, the first 365 days run again and again from that full soil, until no store moves by 0.1 mm or more over one repetition. The run stops with an error if 20 repetitions are not enough. A run shorter than 52 weeks is refused with this option, and a run of 364 days repeats those 364 days.

The soil and the aquifer each get a starting state, and the two are computed apart. The soil settles on its first year. If flow.ic.h.kind of the aquifer is spinup_cyclic, the aquifer settles on cycles of the whole period, with the recharge the soil gave on that period. The soil state at the start of the run is the one of the first year, and the heads at the start of the run are the ones of the cycled period. The two states come from two windows of the same forcing, and no step makes them agree. The file is accepted without a warning, because this is sometimes what is wanted: a soil that needs one year to fill, and an aquifer that needs the mean of many years to reach its yearly cycle. A modeller who wants both states of one window runs hmp spinup over that window and starts from its result with flow.restart_from.

Under simulation.time.window_length the reservoir still runs on the whole simulation, from its starting state, and each window takes its own periods of that run. final_state/ keeps no soil state. This is possible because the reservoir never reads a head (Limits), so the soil of a window does not depend on the aquifer. The warm-up reads the first 365 days of the series, and the three stores and the runoff of the days before day 0 would have to be written and read again to give anything better. The windows of a chain share one soil product, computed once.

Columns and capacity classes#

Without data.soil_capacity, each cell of the rain and ETP grid is one column with the same RU. With it, the pixels of the raster in each cell are sorted by capacity and cut into ten classes of equal pixel count. Each class is a column of capacity \(\mathrm{RU} \times (\text{class mean} / \text{raster mean})\), so the value in the file stays the mean capacity and the raster only spreads it. A capacity spread below the cell belongs to the family of Moore [2007], and these classes are our choice. The basin value of a flux gives each cell its share of the catchment, or the same weight without a catchment polygon.

data.impervious, data.curve_number and data.infiltration_ratio give the sealed share, the curve number and the infiltration ratio as rasters. Each cell takes the mean of the pixels that lie inside the catchment, so a town beside the catchment does not seal it, and every column of the cell reads that mean in place of impervious_fraction or curve_number. A cell the catchment does not reach takes the catchment mean. The sealed share comes from OCS GE of the IGN over France, its built and unbuilt sealed covers burnt on a 10 m grid, or from the built-up class of ESA WorldCover over the world, or from a file. On the Nancon, OCS GE 2023 gives 3.95 % sealed and WorldCover 2021 gives 2.39 %, because a road narrower than a 10 m pixel falls in the field beside it. The curve number comes from a file, such as the GCN250 map of Jaafar et al. [2019], or from a land cover. Then each class goes to one class of the ESA CCI legend, and the curve number is the row of GCN250 for that class and the hydrologic soil group, a letter or a HYSOGs250m map [Ross et al., 2018] written in the section. The ESA CCI legend is the pivot because GCN250 is the only published bridge from a land cover legend to the curve number, and no correspondence between OCS GE, Corine Land Cover and WorldCover is official. So every class points to one published row and no row is a mean of ours. The crosswalks of OCS GE, Corine Land Cover and WorldCover are our choice, written beside each class, and the section may override any row or describe a legend of its own. Managed meadows read the managed grass row (75 on group C), not grassland (81), which GCN250 builds with 40 % bare soil. Sealed and built-up classes stay out of the map, since the sealed share runs them off whole, and so do water and snow, which have no curve number. On the Nancon with group C, OCS GE 2023 gives a basin mean of 74.2 and WorldCover 2021 76.8, while the GCN250 map, on its own soil groups, gives 78.5. The tables of the curve number come from small American catchments and storms of a day, so on a catchment where the water table makes the runoff the value is a relative index of the surface, to calibrate, more than a law. The mean of a cell is its composite curve number, and the SCS law is not linear, so it runs off a little less than its pixels would one by one. The infiltration ratio comes from a file or from OCS GE, where the section writes one ratio for each cover, keyed by its code or the start of one. HydroModPy ships no value per cover, because no published table fits every site. The sealed covers stay out of that map, since the sealed share runs them off whole, so a cell averages the ratio over its unsealed ground.

Where the pieces come from#

The threshold balance and its overflow are the soil budget of Thornthwaite and Mather [1957], which also gives a daily procedure and a start from a repeated year. SWB2 [Westenbroek et al., 2018] has the same order within a day and the same overflow, but it first takes a runoff from the rain. GSFLOW [Markstrom et al., 2008] is the closest published chain, with a daily threshold soil, a preferential flow, a delay and the unused ETP passed to MODFLOW. It differs by its saturation runoff and its feedback from the water table. We found no published model with this whole assembly, and the search was not a systematic review.

Assumptions#

  • The rain and the ETP are constant over the day.

  • The rain falls before the soil evaporates, so the stress of a day reads the store after the rain.

  • The curve number reads the wetness of the day before.

  • Columns do not exchange water.

  • One value of \(\alpha\), \(k_c\), \(f\), \(b\), \(\tau\), CN, \(\tau_q\) and \(L\) holds for the catchment and the run.

  • Snow counts as rain on the day it falls, and the file is refused unless components = ["total"].

Limits#

  • The soil never reads the water table, so a shallow water table does not reduce the capacity.

  • The drainage stops at RU, where a real soil keeps draining slowly.

  • The rain and the ETP need one value per day and per cell, with no gap and no negative value, on a standard calendar, on one grid, in the CRS of the model.

  • A steady first stress period is refused, because it would hold the recharge of one day only.

  • The SIM2 drainage jumps from 0.000 to 0.300 mm/day on 31 July 2015 over the catchment of example 04, so compare a recharge with it period by period. Le Moigne et al. [2020] do not explain this step.

Where the results go#

The reservoir hands three daily grids to the rest of the run, in mm/day on the cells of the rain grid.

The recharge goes to the MODFLOW 6 recharge package. A file that also loads a recharge through data.types is refused.

The residual ETP goes to the MODFLOW 6 evapotranspiration package, which draws it from the water table. This needs a [flow.sinks_sources.etp] table. The rate falls linearly to zero at extinction_depth below the drain elevation of the cell. The default of 2 m is our choice, and this depth matters for the low flows. On example 04, from 1 m to 2 m, the July to September bias of the discharge goes from +0.009 to -0.007 m3/s and the lowest monthly flow of 2019 from 0.167 to 0.147 m3/s, for 0.153 gauged.

The runoff goes where a loaded runoff would go, to the stream networks, the lakes and the discharge that a calibration compares with the gauge. A file that also loads a runoff through data.types is refused, because the same water would count twice.

Four storage laws#

The method names the law that shares the water of the day between ETR, the store and the overflow. Everything around it stays the same. The sealed share, the curve number, the bypass, the transit and the snow work the same way under every law, and every law closes the balance \(W_t = \mathrm{ETR}_t + S_t + X_t\).

fao56, the default, is the law above. thornthwaite (Thornthwaite 1948) meets the full demand while water is left, \(\mathrm{ETR}_t = \min(W_t, k_c E_t)\). It is fao56 with no stress line, the limit \(\alpha \to 0\). dingman (Dingman 2008) meets the full demand on a wet day. On a day with less water in than \(k_c E_t\), it empties the store as an exponential of the deficit,

(19)#\[S_t = S_{t-1}\,\exp\!\left(\frac{P_t - k_c E_t}{\mathrm{RU}}\right).\]

edijatno_michel is the production store of GR4J (Edijatno and Michel 1989, Perrin et al. 2003) without its percolation. On a wet day with net rain \(P_n = P_t - k_c E_t\), the store fills by

(20)#\[S_t = \frac{S_{t-1} + \mathrm{RU}\tanh(P_n/\mathrm{RU})} {1 + (S_{t-1}/\mathrm{RU})\tanh(P_n/\mathrm{RU})}, \qquad X_t = P_n - (S_t - S_{t-1}),\]

so part of the rain leaves before the store is full. On a dry day the store empties by the matching \(\tanh\) form and nothing leaves. These three laws follow ESPERE (BRGM report RP-69538-FR) except on one point. ESPERE tests the wet branch of edijatno_michel on the ETP without \(k_c\), which breaks the balance when \(k_c \neq 1\). Here the test reads the demand \(k_c E_t\).

Only fao56 reads alpha. A file that writes it beside another law is refused, and so is a calibration that searches it.

Snow and a seasonal crop coefficient#

A snow table turns on a snow pack, read from the daily mean temperature of [data.temperature]. The melt factor \(f\) goes linearly from 0 at melt_start to 1 at melt_full, 0 and 6 °C by default, as in ESPERE. A share \(1 - f\) of the day’s precipitation falls as snow, and a share \(f\) of the pack plus that snow melts. The pack is a store of its own, so it enters the balance and the table soil_budget.

The factor kc may also be a table {low, high, months}. It is low outside the growing season, rises linearly to high from planting to full cover, holds it, and falls back at harvest. Each of the four months starts its change on its first day, and a winter crop wraps over the new year. A calibration can search kc only when it is a number.

The capacity that closes the budget#

Over several years, the water that leaves the soil, recharge plus runoff, has to match the gauged discharge, give or take the storage of the aquifer and its own evaporation. The recharge falls when \(\mathrm{RU}\) grows, so one capacity closes that budget. When a gauge is loaded at the outlet, the run finds it by bisection on the soil alone and prints it under the budget block, with three numbers that say how firm it is:

  • the range of the answer when the years are drawn again at random, 5 to 95 %;

  • the answer with the rain, then the gauge, 5 % lower or higher;

  • the change for 10 mm/year of evaporation by the water table.

The value is an effective capacity, since a bias of the rain moves it as much as the range of the soils of Brittany. Writing it as ru and calibrating K and Sy with it fixed separates the volume, which the budget sets, from the dynamics, which the heads and the hydrograph set. Only the calendar years the gauge covers on 90 % of their days count. The run keeps the numbers as attributes of forcing/soil (ru_closing_budget_mm and its band). A calibration phase with regime = "soil" does the same search and freezes the value for the phases after it (Write calibration phases).

Parameters of this page#

The fields below are the ones that appear in the equations. Open a row for its card.

ru = "150 mm"Available water capacity of the soil, in mm of water: what the roots can draw between field capacity and wilting point. required mm [0, 1000] calibrable example value
Path
flow.sinks_sources.recharge.soil.ru
More

A bare number is in mm; "120 mm" and "12 cm" also read. Between 0 and 1000 mm. Required, since it belongs to the site. Start from a soil map, then compare the recharge the soil alone prints for 50 to 250 mm with the gauged discharge (hmp run <file> --until load_data). With [data.soil_capacity], it is the mean capacity over the catchment, and the raster spreads it over classes inside each cell. Calibrate it with [calibration.parameters.ru].

Accepted
number or "<n> mm" (a bare number is read in the canonical unit)
Valid range
[0, 1000] (refused outside)
Unit
mm
Example
"150 mm"
Calibration
yes, search space identity, sampling uniform, bounds belong to the site: write them in calibration.parameters.<name>.bounds
# method = "fao56"Storage law of the soil, the one thing that differs between methods. experimental
Path
flow.sinks_sources.recharge.soil.method
More

"fao56" lowers ETR linearly below alpha x ru (Allen et al. 1998). "thornthwaite" meets the full demand while water is left (Thornthwaite 1948). "dingman" empties the soil as an exponential of the deficit on dry days (Dingman 2008). "edijatno_michel" is the production store of GR4J without its percolation (Edijatno and Michel 1989). The sealed share, the curve number, the bypass, the transit and the snow work the same around every law.

Accepted
string
Example
"fao56", "thornthwaite"
# alpha = 0.45Share of ru above which the soil evaporates at the full rate kc x ETP. ]0, 1] calibrable experimental
Path
flow.sinks_sources.recharge.soil.alpha
More

Below alpha x ru, ETR falls linearly with the stored water. It is 1 - p of FAO-56 and LP of HBV. The default 0.45 is a choice: it means p = 0.55, the value of FAO-56 table 22 for cereals and maize (pasture 0.60). Above 0, at most 1. Kept fixed by default: on the discharge alone it trades off with ru, since both move the annual volume.

Accepted
number
Valid range
]0, 1] (refused outside)
Unit
-
Calibration
yes, search space identity, sampling uniform, default bounds [0.3, 1.0]
# impervious_fraction = 0.0Share of the area that is sealed (roofs, roads). [0, 1[ calibrable experimental
Path
flow.sinks_sources.recharge.soil.impervious_fraction
More

The rain that falls on it runs off at once, with no infiltration and no evaporation, and reaches the streams, the lakes and the gauged discharge. The soil reservoir covers the rest of the area. From 0 up to, not including, 1. Calibrate it with [calibration.parameters.impervious_fraction]; the range belongs to the site, so a file has to state it. [data.impervious] gives it cell by cell instead, and then it is not written here.

Accepted
number
Valid range
[0, 1[ (refused outside)
Unit
-
Calibration
yes, search space identity, sampling uniform, bounds belong to the site: write them in calibration.parameters.<name>.bounds
# bypass_fraction = 0.0Share of the rain on the unsealed area that skips the soil through macropores and joins the recharge the same day, even when the soil is dry. [0, 1[ calibrable experimental
Path
flow.sinks_sources.recharge.soil.bypass_fraction
More

From 0 up to, not including, 1. Keep it at 0 while K and Sy are calibrated: a bypass can rebuild the summer recharge the soil reservoir removes.

Accepted
number
Valid range
[0, 1[ (refused outside)
Unit
-
Calibration
yes, search space identity, sampling uniform, default bounds [0.0, 0.3]
# transit_time = 0.0Mean time the water leaving the soil takes to cross the unsaturated zone down to the water table, in days. day [0, 30] calibrable experimental
Path
flow.sinks_sources.recharge.soil.transit_time
More

A linear reservoir with this time constant delays and smooths the recharge; 0 sends it the same day. A bare number is in days; "5 days" also reads. At most 30 days: a longer delay would rebuild the slow groundwater memory MODFLOW computes itself.

Accepted
number or "<n> day" (a bare number is read in the canonical unit)
Valid range
[0, 30] (refused outside)
Unit
day
Calibration
yes, search space identity, sampling uniform, default bounds [0.0, 30.0]
# curve_number = ‹number›SCS curve number (AMC II), dimensionless, of a HELP-style surface runoff (Schroeder et al. 1994): the unsealed share of the rain above a daily retention loses some to a fast runoff, more as the soil is wetter. [30, 98] calibrable experimental
Path
flow.sinks_sources.recharge.soil.curve_number
More

None turns the term off, bit for bit as before. Between 30 and 98. It reads the soil and never the water table, so it renders saturation runoff badly: leave it off where the drains already give that runoff. To calibrate it, state a range under [calibration.parameters.curve_number]: it belongs to the soil group and the land use of the site. [data.curve_number] gives it cell by cell instead, and then it is not written here.

Accepted
number
Valid range
[30, 98] (refused outside)
Unit
-
Calibration
yes, search space identity, sampling uniform, bounds belong to the site: write them in calibration.parameters.<name>.bounds
# infiltration_ratio = 1.0Share of the water leaving the soil that goes on to the aquifer, the RIPE of ESPERE (BRGM): the rest runs off on the same day, beside the sealed share and the curve number, and reaches the streams through the runoff of the run. - [0, 1] experimental
Path
flow.sinks_sources.recharge.soil.infiltration_ratio
More

1, the default, sends it all to the aquifer, bit for bit as before, and the drains give back what saturates. Between 0 and 1. ESPERE proposes the lowest yearly baseflow index of the gauge, which the soil budget of hmp run --until load_data prints when a gauge is loaded: copy it here, the gauge never sets it on its own. [data.infiltration_ratio] gives it cell by cell instead, and then it is not written here.

Accepted
number
Valid range
[0, 1] (refused outside)
Unit
-
# runoff_time = 1.0Time constant of the linear reservoir that routes the curve-number runoff to the outlet, in days. day [0, 10] calibrable experimental
Path
flow.sinks_sources.recharge.soil.runoff_time
More

No effect without a curve number, here or in [data.curve_number]. 0 sends it the same day; "2 days" also reads. Between 0 and 10 days: a longer delay would smooth away the fast surface peak the term exists for.

Accepted
number or "<n> day" (a bare number is read in the canonical unit)
Valid range
[0, 10] (refused outside)
Unit
day
Calibration
yes, search space identity, sampling uniform, default bounds [0.0, 10.0]
# runoff_lag = 0.0Pure delay applied to the routed curve-number runoff, after runoff_time, before it reaches the gauged discharge: the travel time to the outlet plus any lag between the forcing's daily step and the gauge's. day [0, 5] calibrable experimental
Path
flow.sinks_sources.recharge.soil.runoff_lag
More

No effect without a curve number, here or in [data.curve_number]. 0 adds no delay, bit for bit as before; "0.75 days" also reads, interpolated linearly between the neighbouring whole-day shifts. Between 0 and 5 days: a longer shift belongs to runoff_time's reservoir, not to a fixed travel time. Calibrate it with [calibration.parameters.runoff_lag].

Accepted
number or "<n> day" (a bare number is read in the canonical unit)
Valid range
[0, 5] (refused outside)
Unit
day
Calibration
yes, search space identity, sampling uniform, default bounds [0.0, 5.0]
# spinup = "first_year"State of the soil on the first day. experimental
Path
flow.sinks_sources.recharge.soil.spinup
More

"first_year" repeats the first 365 days of the run until the storage at the end of that year moves by less than 0.1 mm, 20 times at most; the run must last 364 days (52 weeks) at least, and a 364-day run repeats those 364 days. "none" starts from a full soil, the state of a soil in a wet winter. Beside a cyclic spin-up of the aquifer (flow.ic.kind = "spinup_cyclic"), the two starts are computed over two windows: the soil settles on the first year, the heads on the whole run. That pair is allowed without a warning, because it is sometimes what the study wants.

Values
  • "first_year" : Repeat the first year until the soil storage settles.
  • "none" : Start from a full soil and an empty transit store.
Accepted
"first_year" | "none"
low = 0.6Crop coefficient outside the growing season, between 0 and 2. required - [0, 2] experimental example value
Path
flow.sinks_sources.recharge.soil.kc.low
Accepted
number
Valid range
[0, 2] (refused outside)
Unit
-
Example
0.6
high = 1.15Crop coefficient at full cover, between 0 and 2. required - [0, 2] experimental example value
Path
flow.sinks_sources.recharge.soil.kc.high
Accepted
number
Valid range
[0, 2] (refused outside)
Unit
-
Example
1.15
months = [4, 6, 8, 10]Four months, 1 to 12, in the order of the season: planting, full cover, start of senescence, harvest. required experimental example value
Path
flow.sinks_sources.recharge.soil.kc.months
More

A winter crop wraps over the new year, for instance [10, 3, 6, 7].

Accepted
list of integer
Example
[4, 6, 8, 10]
enabled = ‹true | false›Whether the snow pack melts the precipitation over the days. false keeps the table in the file and reads it as absent: all precipitation reaches the ground as rain the same day. required experimental
Path
flow.sinks_sources.recharge.soil.snow.enabled
More

Required, so the table never switches itself on.

Accepted
true | false
# melt_start = 0.0Temperature at or below which nothing melts and all precipitation is snow, in degC. degC [-10, 10] experimental
Path
flow.sinks_sources.recharge.soil.snow.melt_start
Accepted
number
Valid range
[-10, 10] (refused outside)
Unit
degC
# melt_full = 6.0Temperature at or above which the whole pack melts and no snow falls, in degC. degC [-5, 15] experimental
Path
flow.sinks_sources.recharge.soil.snow.melt_full
Accepted
number
Valid range
[-5, 15] (refused outside)
Unit
degC
# extinction_depth = 2.0Depth (m) below the EVT surface where the water table stops evaporating; the rate falls linearly between the surface and this depth. m > 0 calibrable
Path
flow.sinks_sources.etp.extinction_depth
More

2 m by default, a choice: this depth often reaches the deepest roots, and 150 mm of soil capacity means about 1 to 2 m of them. Read by MODFLOW-NWT, and by MODFLOW 6 in soil mode for the ETP the soil left unmet. Calibrate it with [calibration.parameters.extinction_depth]; the range belongs to the site, so a file has to state it.

Accepted
number or "<n> m" (a bare number is read in the canonical unit)
Valid range
> 0 (refused outside)
Unit
m
Calibration
yes, search space identity, sampling uniform, bounds belong to the site: write them in calibration.parameters.<name>.bounds

Lines generated from the models, as in the reference. Open one for its card.

A soil section with every key and a curve number. Its keys link to their card. A run that declares it also reads the rain and the ETP in [data], and no recharge.

1# not checked: the section alone, without the rain and the ETP it reads
2[flow.sinks_sources.recharge]
3enabled = true
4
5[flow.sinks_sources.recharge.soil]
6ru = "150 mm"
7alpha = 0.45
8kc = 1.0
9impervious_fraction = 0.0
10bypass_fraction = 0.0
11transit_time = "3 days"
12curve_number = 78
13runoff_time = "1 day"
14runoff_lag = "0.5 days"
15spinup = "first_year"

Checked by#

The tests that import the code of this page. The box is generated, so a new test appears here on the next build.

In the code#

What

Where

The daily step and the balance

hydromodpy/model/soil/kernel.py (soil_step, run_soil_balance, balance_residual)

The four storage laws

hydromodpy/model/soil/laws.py (SOIL_METHODS)

Snow and the seasonal kc

hydromodpy/model/soil/kernel.py (snow_step, seasonal_kc)

The capacity that closes the budget

hydromodpy/model/forcing/soil_ru_budget.py

The starting state

the same file, spinup_state

What a file may say, and its ranges

hydromodpy/model/forcing/soil_config.py

Grids in, columns, grids out

hydromodpy/model/forcing/ (soil_grids.py, soil_columns.py, soil_forcing.py, soil_budget.py)

See also#