partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
calc_qref_v1
Determine the reference discharge within the given space-time interval. Required state sequences: |QZ| |QA| Calculated flux sequence: |QRef| Basic equation: :math:`QRef = \\frac{QZ_{new}+QZ_{old}+QA_{old}}{3}` Example: >>> from hydpy.models.lstream import * >...
hydpy/models/lstream/lstream_model.py
def calc_qref_v1(self): """Determine the reference discharge within the given space-time interval. Required state sequences: |QZ| |QA| Calculated flux sequence: |QRef| Basic equation: :math:`QRef = \\frac{QZ_{new}+QZ_{old}+QA_{old}}{3}` Example: >>> from hydpy.mo...
def calc_qref_v1(self): """Determine the reference discharge within the given space-time interval. Required state sequences: |QZ| |QA| Calculated flux sequence: |QRef| Basic equation: :math:`QRef = \\frac{QZ_{new}+QZ_{old}+QA_{old}}{3}` Example: >>> from hydpy.mo...
[ "Determine", "the", "reference", "discharge", "within", "the", "given", "space", "-", "time", "interval", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L15-L42
[ "def", "calc_qref_v1", "(", "self", ")", ":", "new", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_new", "old", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_old", "flu", "=", "self", ".", "sequences", ".", "fluxes", "."...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_rk_v1
Determine the actual traveling time of the water (not of the wave!). Required derived parameter: |Sek| Required flux sequences: |AG| |QRef| Calculated flux sequence: |RK| Basic equation: :math:`RK = \\frac{Laen \\cdot A}{QRef}` Examples: First, note that t...
hydpy/models/lstream/lstream_model.py
def calc_rk_v1(self): """Determine the actual traveling time of the water (not of the wave!). Required derived parameter: |Sek| Required flux sequences: |AG| |QRef| Calculated flux sequence: |RK| Basic equation: :math:`RK = \\frac{Laen \\cdot A}{QRef}` Examples...
def calc_rk_v1(self): """Determine the actual traveling time of the water (not of the wave!). Required derived parameter: |Sek| Required flux sequences: |AG| |QRef| Calculated flux sequence: |RK| Basic equation: :math:`RK = \\frac{Laen \\cdot A}{QRef}` Examples...
[ "Determine", "the", "actual", "traveling", "time", "of", "the", "water", "(", "not", "of", "the", "wave!", ")", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L45-L97
[ "def", "calc_rk_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "f...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_am_um_v1
Calculate the flown through area and the wetted perimeter of the main channel. Note that the main channel is assumed to have identical slopes on both sides and that water flowing exactly above the main channel is contributing to |AM|. Both theoretical surfaces seperating water above the main chann...
hydpy/models/lstream/lstream_model.py
def calc_am_um_v1(self): """Calculate the flown through area and the wetted perimeter of the main channel. Note that the main channel is assumed to have identical slopes on both sides and that water flowing exactly above the main channel is contributing to |AM|. Both theoretical surfaces seperatin...
def calc_am_um_v1(self): """Calculate the flown through area and the wetted perimeter of the main channel. Note that the main channel is assumed to have identical slopes on both sides and that water flowing exactly above the main channel is contributing to |AM|. Both theoretical surfaces seperatin...
[ "Calculate", "the", "flown", "through", "area", "and", "the", "wetted", "perimeter", "of", "the", "main", "channel", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L100-L187
[ "def", "calc_am_um_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "if", "flu", ".", "h", "<=", "0.", ":", "flu", ".", "am",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qm_v1
Calculate the discharge of the main channel after Manning-Strickler. Required control parameters: |EKM| |SKM| |Gef| Required flux sequence: |AM| |UM| Calculated flux sequence: |lstream_fluxes.QM| Examples: For appropriate strictly positive values: ...
hydpy/models/lstream/lstream_model.py
def calc_qm_v1(self): """Calculate the discharge of the main channel after Manning-Strickler. Required control parameters: |EKM| |SKM| |Gef| Required flux sequence: |AM| |UM| Calculated flux sequence: |lstream_fluxes.QM| Examples: For appropriate stri...
def calc_qm_v1(self): """Calculate the discharge of the main channel after Manning-Strickler. Required control parameters: |EKM| |SKM| |Gef| Required flux sequence: |AM| |UM| Calculated flux sequence: |lstream_fluxes.QM| Examples: For appropriate stri...
[ "Calculate", "the", "discharge", "of", "the", "main", "channel", "after", "Manning", "-", "Strickler", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L190-L240
[ "def", "calc_qm_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "if", "(", "flu", ".", "am", ">", "0.", ")", "and", "(", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_av_uv_v1
Calculate the flown through area and the wetted perimeter of both forelands. Note that the each foreland lies between the main channel and one outer embankment and that water flowing exactly above the a foreland is contributing to |AV|. The theoretical surface seperating water above the main chann...
hydpy/models/lstream/lstream_model.py
def calc_av_uv_v1(self): """Calculate the flown through area and the wetted perimeter of both forelands. Note that the each foreland lies between the main channel and one outer embankment and that water flowing exactly above the a foreland is contributing to |AV|. The theoretical surface seperatin...
def calc_av_uv_v1(self): """Calculate the flown through area and the wetted perimeter of both forelands. Note that the each foreland lies between the main channel and one outer embankment and that water flowing exactly above the a foreland is contributing to |AV|. The theoretical surface seperatin...
[ "Calculate", "the", "flown", "through", "area", "and", "the", "wetted", "perimeter", "of", "both", "forelands", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L243-L342
[ "def", "calc_av_uv_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qv_v1
Calculate the discharge of both forelands after Manning-Strickler. Required control parameters: |EKV| |SKV| |Gef| Required flux sequence: |AV| |UV| Calculated flux sequence: |lstream_fluxes.QV| Examples: For appropriate strictly positive values: ...
hydpy/models/lstream/lstream_model.py
def calc_qv_v1(self): """Calculate the discharge of both forelands after Manning-Strickler. Required control parameters: |EKV| |SKV| |Gef| Required flux sequence: |AV| |UV| Calculated flux sequence: |lstream_fluxes.QV| Examples: For appropriate strict...
def calc_qv_v1(self): """Calculate the discharge of both forelands after Manning-Strickler. Required control parameters: |EKV| |SKV| |Gef| Required flux sequence: |AV| |UV| Calculated flux sequence: |lstream_fluxes.QV| Examples: For appropriate strict...
[ "Calculate", "the", "discharge", "of", "both", "forelands", "after", "Manning", "-", "Strickler", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L345-L391
[ "def", "calc_qv_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "i", "in", "range", "(", "2", ")", ":", "if", "(", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_avr_uvr_v1
Calculate the flown through area and the wetted perimeter of both outer embankments. Note that each outer embankment lies beyond its foreland and that all water flowing exactly above the a embankment is added to |AVR|. The theoretical surface seperating water above the foreland from water above its...
hydpy/models/lstream/lstream_model.py
def calc_avr_uvr_v1(self): """Calculate the flown through area and the wetted perimeter of both outer embankments. Note that each outer embankment lies beyond its foreland and that all water flowing exactly above the a embankment is added to |AVR|. The theoretical surface seperating water above the...
def calc_avr_uvr_v1(self): """Calculate the flown through area and the wetted perimeter of both outer embankments. Note that each outer embankment lies beyond its foreland and that all water flowing exactly above the a embankment is added to |AVR|. The theoretical surface seperating water above the...
[ "Calculate", "the", "flown", "through", "area", "and", "the", "wetted", "perimeter", "of", "both", "outer", "embankments", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L394-L469
[ "def", "calc_avr_uvr_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qvr_v1
Calculate the discharge of both outer embankments after Manning-Strickler. Required control parameters: |EKV| |SKV| |Gef| Required flux sequence: |AVR| |UVR| Calculated flux sequence: |QVR| Examples: For appropriate strictly positive values: ...
hydpy/models/lstream/lstream_model.py
def calc_qvr_v1(self): """Calculate the discharge of both outer embankments after Manning-Strickler. Required control parameters: |EKV| |SKV| |Gef| Required flux sequence: |AVR| |UVR| Calculated flux sequence: |QVR| Examples: For appropriate stric...
def calc_qvr_v1(self): """Calculate the discharge of both outer embankments after Manning-Strickler. Required control parameters: |EKV| |SKV| |Gef| Required flux sequence: |AVR| |UVR| Calculated flux sequence: |QVR| Examples: For appropriate stric...
[ "Calculate", "the", "discharge", "of", "both", "outer", "embankments", "after", "Manning", "-", "Strickler", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L472-L519
[ "def", "calc_qvr_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "i", "in", "range", "(", "2", ")", ":", "if", "(", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_ag_v1
Sum the through flown area of the total cross section. Required flux sequences: |AM| |AV| |AVR| Calculated flux sequence: |AG| Example: >>> from hydpy.models.lstream import * >>> parameterstep() >>> fluxes.am = 1.0 >>> fluxes.av= 2.0, 3.0 >...
hydpy/models/lstream/lstream_model.py
def calc_ag_v1(self): """Sum the through flown area of the total cross section. Required flux sequences: |AM| |AV| |AVR| Calculated flux sequence: |AG| Example: >>> from hydpy.models.lstream import * >>> parameterstep() >>> fluxes.am = 1.0 >>> ...
def calc_ag_v1(self): """Sum the through flown area of the total cross section. Required flux sequences: |AM| |AV| |AVR| Calculated flux sequence: |AG| Example: >>> from hydpy.models.lstream import * >>> parameterstep() >>> fluxes.am = 1.0 >>> ...
[ "Sum", "the", "through", "flown", "area", "of", "the", "total", "cross", "section", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L522-L545
[ "def", "calc_ag_v1", "(", "self", ")", ":", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "flu", ".", "ag", "=", "flu", ".", "am", "+", "flu", ".", "av", "[", "0", "]", "+", "flu", ".", "av", "[", "1", "]", "+", "flu...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qg_v1
Calculate the discharge of the total cross section. Method |calc_qg_v1| applies the actual versions of all methods for calculating the flown through areas, wetted perimeters and discharges of the different cross section compartments. Hence its requirements might be different for various application mo...
hydpy/models/lstream/lstream_model.py
def calc_qg_v1(self): """Calculate the discharge of the total cross section. Method |calc_qg_v1| applies the actual versions of all methods for calculating the flown through areas, wetted perimeters and discharges of the different cross section compartments. Hence its requirements might be differe...
def calc_qg_v1(self): """Calculate the discharge of the total cross section. Method |calc_qg_v1| applies the actual versions of all methods for calculating the flown through areas, wetted perimeters and discharges of the different cross section compartments. Hence its requirements might be differe...
[ "Calculate", "the", "discharge", "of", "the", "total", "cross", "section", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L548-L563
[ "def", "calc_qg_v1", "(", "self", ")", ":", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "self", ".", "calc_am_um", "(", ")", "self", ".", "calc_qm", "(", ")", "self", ".", "calc_av_uv", "(", ")", "self", ".", "calc_qv", "(...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_hmin_qmin_hmax_qmax_v1
Determine an starting interval for iteration methods as the one implemented in method |calc_h_v1|. The resulting interval is determined in a manner, that on the one hand :math:`Qmin \\leq QRef \\leq Qmax` is fulfilled and on the other hand the results of method |calc_qg_v1| are continuous for :math...
hydpy/models/lstream/lstream_model.py
def calc_hmin_qmin_hmax_qmax_v1(self): """Determine an starting interval for iteration methods as the one implemented in method |calc_h_v1|. The resulting interval is determined in a manner, that on the one hand :math:`Qmin \\leq QRef \\leq Qmax` is fulfilled and on the other hand the results of me...
def calc_hmin_qmin_hmax_qmax_v1(self): """Determine an starting interval for iteration methods as the one implemented in method |calc_h_v1|. The resulting interval is determined in a manner, that on the one hand :math:`Qmin \\leq QRef \\leq Qmax` is fulfilled and on the other hand the results of me...
[ "Determine", "an", "starting", "interval", "for", "iteration", "methods", "as", "the", "one", "implemented", "in", "method", "|calc_h_v1|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L566-L632
[ "def", "calc_hmin_qmin_hmax_qmax_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "flu...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_h_v1
Approximate the water stage resulting in a certain reference discarge with the Pegasus iteration method. Required control parameters: |QTol| |HTol| Required flux sequence: |QRef| Modified aide sequences: |HMin| |HMax| |QMin| |QMax| Calculated flux sequen...
hydpy/models/lstream/lstream_model.py
def calc_h_v1(self): """Approximate the water stage resulting in a certain reference discarge with the Pegasus iteration method. Required control parameters: |QTol| |HTol| Required flux sequence: |QRef| Modified aide sequences: |HMin| |HMax| |QMin| |QMax|...
def calc_h_v1(self): """Approximate the water stage resulting in a certain reference discarge with the Pegasus iteration method. Required control parameters: |QTol| |HTol| Required flux sequence: |QRef| Modified aide sequences: |HMin| |HMax| |QMin| |QMax|...
[ "Approximate", "the", "water", "stage", "resulting", "in", "a", "certain", "reference", "discarge", "with", "the", "Pegasus", "iteration", "method", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L635-L875
[ "def", "calc_h_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "aid", "=", "self", ".", "sequences", ".", "aides", ".", "fasta...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qa_v1
Calculate outflow. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required flux sequence: |RK| Required state sequence: |QZ| Updated state sequence: |QA| ...
hydpy/models/lstream/lstream_model.py
def calc_qa_v1(self): """Calculate outflow. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required flux sequence: |RK| Required state sequence: |QZ| Updated sta...
def calc_qa_v1(self): """Calculate outflow. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required flux sequence: |RK| Required state sequence: |QZ| Updated sta...
[ "Calculate", "outflow", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L878-L939
[ "def", "calc_qa_v1", "(", "self", ")", ":", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "old", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_old", "new", "=", "self", ".", "sequences", ".", "states", ".", "f...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
pick_q_v1
Update inflow.
hydpy/models/lstream/lstream_model.py
def pick_q_v1(self): """Update inflow.""" sta = self.sequences.states.fastaccess inl = self.sequences.inlets.fastaccess sta.qz = 0. for idx in range(inl.len_q): sta.qz += inl.q[idx][0]
def pick_q_v1(self): """Update inflow.""" sta = self.sequences.states.fastaccess inl = self.sequences.inlets.fastaccess sta.qz = 0. for idx in range(inl.len_q): sta.qz += inl.q[idx][0]
[ "Update", "inflow", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L942-L948
[ "def", "pick_q_v1", "(", "self", ")", ":", "sta", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess", "inl", "=", "self", ".", "sequences", ".", "inlets", ".", "fastaccess", "sta", ".", "qz", "=", "0.", "for", "idx", "in", "range", "(", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
pass_q_v1
Update outflow.
hydpy/models/lstream/lstream_model.py
def pass_q_v1(self): """Update outflow.""" sta = self.sequences.states.fastaccess out = self.sequences.outlets.fastaccess out.q[0] += sta.qa
def pass_q_v1(self): """Update outflow.""" sta = self.sequences.states.fastaccess out = self.sequences.outlets.fastaccess out.q[0] += sta.qa
[ "Update", "outflow", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_model.py#L951-L955
[ "def", "pass_q_v1", "(", "self", ")", ":", "sta", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess", "out", "=", "self", ".", "sequences", ".", "outlets", ".", "fastaccess", "out", ".", "q", "[", "0", "]", "+=", "sta", ".", "qa" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_tc_v1
Adjust the measured air temperature to the altitude of the individual zones. Required control parameters: |NmbZones| |TCAlt| |ZoneZ| |ZRelT| Required input sequence: |hland_inputs.T| Calculated flux sequences: |TC| Basic equation: :math:`TC = T - TCAlt \...
hydpy/models/hland/hland_model.py
def calc_tc_v1(self): """Adjust the measured air temperature to the altitude of the individual zones. Required control parameters: |NmbZones| |TCAlt| |ZoneZ| |ZRelT| Required input sequence: |hland_inputs.T| Calculated flux sequences: |TC| Basic equation: ...
def calc_tc_v1(self): """Adjust the measured air temperature to the altitude of the individual zones. Required control parameters: |NmbZones| |TCAlt| |ZoneZ| |ZRelT| Required input sequence: |hland_inputs.T| Calculated flux sequences: |TC| Basic equation: ...
[ "Adjust", "the", "measured", "air", "temperature", "to", "the", "altitude", "of", "the", "individual", "zones", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L13-L57
[ "def", "calc_tc_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "inp", "=", "self", ".", "sequences", ".", "inputs", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fas...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_tmean_v1
Calculate the areal mean temperature of the subbasin. Required derived parameter: |RelZoneArea| Required flux sequence: |TC| Calculated flux sequences: |TMean| Examples: Prepare two zones, the first one being twice as large as the second one: >>> from hydp...
hydpy/models/hland/hland_model.py
def calc_tmean_v1(self): """Calculate the areal mean temperature of the subbasin. Required derived parameter: |RelZoneArea| Required flux sequence: |TC| Calculated flux sequences: |TMean| Examples: Prepare two zones, the first one being twice as large as the se...
def calc_tmean_v1(self): """Calculate the areal mean temperature of the subbasin. Required derived parameter: |RelZoneArea| Required flux sequence: |TC| Calculated flux sequences: |TMean| Examples: Prepare two zones, the first one being twice as large as the se...
[ "Calculate", "the", "areal", "mean", "temperature", "of", "the", "subbasin", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L60-L95
[ "def", "calc_tmean_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_fracrain_v1
Determine the temperature-dependent fraction of (liquid) rainfall and (total) precipitation. Required control parameters: |NmbZones| |TT|, |TTInt| Required flux sequence: |TC| Calculated flux sequences: |FracRain| Basic equation: :math:`FracRain = \\frac{TC-(T...
hydpy/models/hland/hland_model.py
def calc_fracrain_v1(self): """Determine the temperature-dependent fraction of (liquid) rainfall and (total) precipitation. Required control parameters: |NmbZones| |TT|, |TTInt| Required flux sequence: |TC| Calculated flux sequences: |FracRain| Basic equation: ...
def calc_fracrain_v1(self): """Determine the temperature-dependent fraction of (liquid) rainfall and (total) precipitation. Required control parameters: |NmbZones| |TT|, |TTInt| Required flux sequence: |TC| Calculated flux sequences: |FracRain| Basic equation: ...
[ "Determine", "the", "temperature", "-", "dependent", "fraction", "of", "(", "liquid", ")", "rainfall", "and", "(", "total", ")", "precipitation", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L98-L156
[ "def", "calc_fracrain_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "k", "in", "range", "(", "con", ".", "nmbzones", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_rfc_sfc_v1
Calculate the corrected fractions rainfall/snowfall and total precipitation. Required control parameters: |NmbZones| |RfCF| |SfCF| Calculated flux sequences: |RfC| |SfC| Basic equations: :math:`RfC = RfCF \\cdot FracRain` \n :math:`SfC = SfCF \\cdot (1 - Frac...
hydpy/models/hland/hland_model.py
def calc_rfc_sfc_v1(self): """Calculate the corrected fractions rainfall/snowfall and total precipitation. Required control parameters: |NmbZones| |RfCF| |SfCF| Calculated flux sequences: |RfC| |SfC| Basic equations: :math:`RfC = RfCF \\cdot FracRain` \n ...
def calc_rfc_sfc_v1(self): """Calculate the corrected fractions rainfall/snowfall and total precipitation. Required control parameters: |NmbZones| |RfCF| |SfCF| Calculated flux sequences: |RfC| |SfC| Basic equations: :math:`RfC = RfCF \\cdot FracRain` \n ...
[ "Calculate", "the", "corrected", "fractions", "rainfall", "/", "snowfall", "and", "total", "precipitation", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L159-L214
[ "def", "calc_rfc_sfc_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "k", "in", "range", "(", "con", ".", "nmbzones", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_pc_v1
Apply the precipitation correction factors and adjust precipitation to the altitude of the individual zones. Required control parameters: |NmbZones| |PCorr| |PCAlt| |ZoneZ| |ZRelP| Required input sequence: |P| Required flux sequences: |RfC| |SfC| C...
hydpy/models/hland/hland_model.py
def calc_pc_v1(self): """Apply the precipitation correction factors and adjust precipitation to the altitude of the individual zones. Required control parameters: |NmbZones| |PCorr| |PCAlt| |ZoneZ| |ZRelP| Required input sequence: |P| Required flux sequences: ...
def calc_pc_v1(self): """Apply the precipitation correction factors and adjust precipitation to the altitude of the individual zones. Required control parameters: |NmbZones| |PCorr| |PCAlt| |ZoneZ| |ZRelP| Required input sequence: |P| Required flux sequences: ...
[ "Apply", "the", "precipitation", "correction", "factors", "and", "adjust", "precipitation", "to", "the", "altitude", "of", "the", "individual", "zones", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L217-L290
[ "def", "calc_pc_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "inp", "=", "self", ".", "sequences", ".", "inputs", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fas...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_ep_v1
Adjust potential norm evaporation to the actual temperature. Required control parameters: |NmbZones| |ETF| Required input sequence: |EPN| |TN| Required flux sequence: |TMean| Calculated flux sequences: |EP| Basic equation: :math:`EP = EPN \\cdot (1 + ET...
hydpy/models/hland/hland_model.py
def calc_ep_v1(self): """Adjust potential norm evaporation to the actual temperature. Required control parameters: |NmbZones| |ETF| Required input sequence: |EPN| |TN| Required flux sequence: |TMean| Calculated flux sequences: |EP| Basic equation: :...
def calc_ep_v1(self): """Adjust potential norm evaporation to the actual temperature. Required control parameters: |NmbZones| |ETF| Required input sequence: |EPN| |TN| Required flux sequence: |TMean| Calculated flux sequences: |EP| Basic equation: :...
[ "Adjust", "potential", "norm", "evaporation", "to", "the", "actual", "temperature", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L293-L355
[ "def", "calc_ep_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "inp", "=", "self", ".", "sequences", ".", "inputs", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fas...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_epc_v1
Apply the evaporation correction factors and adjust evaporation to the altitude of the individual zones. Calculate the areal mean of (uncorrected) potential evaporation for the subbasin, adjust it to the individual zones in accordance with their heights and perform some corrections, among which one ...
hydpy/models/hland/hland_model.py
def calc_epc_v1(self): """Apply the evaporation correction factors and adjust evaporation to the altitude of the individual zones. Calculate the areal mean of (uncorrected) potential evaporation for the subbasin, adjust it to the individual zones in accordance with their heights and perform some co...
def calc_epc_v1(self): """Apply the evaporation correction factors and adjust evaporation to the altitude of the individual zones. Calculate the areal mean of (uncorrected) potential evaporation for the subbasin, adjust it to the individual zones in accordance with their heights and perform some co...
[ "Apply", "the", "evaporation", "correction", "factors", "and", "adjust", "evaporation", "to", "the", "altitude", "of", "the", "individual", "zones", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L358-L434
[ "def", "calc_epc_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "k", "in", "range", "(", "con", ".", "nmbzones", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_tf_ic_v1
Calculate throughfall and update the interception storage accordingly. Required control parameters: |NmbZones| |ZoneType| |IcMax| Required flux sequences: |PC| Calculated fluxes sequences: |TF| Updated state sequence: |Ic| Basic equation: :math:`TF ...
hydpy/models/hland/hland_model.py
def calc_tf_ic_v1(self): """Calculate throughfall and update the interception storage accordingly. Required control parameters: |NmbZones| |ZoneType| |IcMax| Required flux sequences: |PC| Calculated fluxes sequences: |TF| Updated state sequence: |Ic| ...
def calc_tf_ic_v1(self): """Calculate throughfall and update the interception storage accordingly. Required control parameters: |NmbZones| |ZoneType| |IcMax| Required flux sequences: |PC| Calculated fluxes sequences: |TF| Updated state sequence: |Ic| ...
[ "Calculate", "throughfall", "and", "update", "the", "interception", "storage", "accordingly", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L437-L523
[ "def", "calc_tf_ic_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_ei_ic_v1
Calculate interception evaporation and update the interception storage accordingly. Required control parameters: |NmbZones| |ZoneType| Required flux sequences: |EPC| Calculated fluxes sequences: |EI| Updated state sequence: |Ic| Basic equation: :math:`EI ...
hydpy/models/hland/hland_model.py
def calc_ei_ic_v1(self): """Calculate interception evaporation and update the interception storage accordingly. Required control parameters: |NmbZones| |ZoneType| Required flux sequences: |EPC| Calculated fluxes sequences: |EI| Updated state sequence: |Ic| ...
def calc_ei_ic_v1(self): """Calculate interception evaporation and update the interception storage accordingly. Required control parameters: |NmbZones| |ZoneType| Required flux sequences: |EPC| Calculated fluxes sequences: |EI| Updated state sequence: |Ic| ...
[ "Calculate", "interception", "evaporation", "and", "update", "the", "interception", "storage", "accordingly", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L526-L608
[ "def", "calc_ei_ic_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_sp_wc_v1
Add throughfall to the snow layer. Required control parameters: |NmbZones| |ZoneType| Required flux sequences: |TF| |RfC| |SfC| Updated state sequences: |WC| |SP| Basic equations: :math:`\\frac{dSP}{dt} = TF \\cdot \\frac{SfC}{SfC+RfC}` \n :math:...
hydpy/models/hland/hland_model.py
def calc_sp_wc_v1(self): """Add throughfall to the snow layer. Required control parameters: |NmbZones| |ZoneType| Required flux sequences: |TF| |RfC| |SfC| Updated state sequences: |WC| |SP| Basic equations: :math:`\\frac{dSP}{dt} = TF \\cdot \\fra...
def calc_sp_wc_v1(self): """Add throughfall to the snow layer. Required control parameters: |NmbZones| |ZoneType| Required flux sequences: |TF| |RfC| |SfC| Updated state sequences: |WC| |SP| Basic equations: :math:`\\frac{dSP}{dt} = TF \\cdot \\fra...
[ "Add", "throughfall", "to", "the", "snow", "layer", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L611-L684
[ "def", "calc_sp_wc_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_refr_sp_wc_v1
Calculate refreezing of the water content within the snow layer and update both the snow layers ice and the water content. Required control parameters: |NmbZones| |ZoneType| |CFMax| |CFR| Required derived parameter: |TTM| Required flux sequences: |TC| Calculat...
hydpy/models/hland/hland_model.py
def calc_refr_sp_wc_v1(self): """Calculate refreezing of the water content within the snow layer and update both the snow layers ice and the water content. Required control parameters: |NmbZones| |ZoneType| |CFMax| |CFR| Required derived parameter: |TTM| Required flu...
def calc_refr_sp_wc_v1(self): """Calculate refreezing of the water content within the snow layer and update both the snow layers ice and the water content. Required control parameters: |NmbZones| |ZoneType| |CFMax| |CFR| Required derived parameter: |TTM| Required flu...
[ "Calculate", "refreezing", "of", "the", "water", "content", "within", "the", "snow", "layer", "and", "update", "both", "the", "snow", "layers", "ice", "and", "the", "water", "content", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L804-L940
[ "def", "calc_refr_sp_wc_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_in_wc_v1
Calculate the actual water release from the snow layer due to the exceedance of the snow layers capacity for (liquid) water. Required control parameters: |NmbZones| |ZoneType| |WHC| Required state sequence: |SP| Required flux sequence |TF| Calculated fluxes sequence...
hydpy/models/hland/hland_model.py
def calc_in_wc_v1(self): """Calculate the actual water release from the snow layer due to the exceedance of the snow layers capacity for (liquid) water. Required control parameters: |NmbZones| |ZoneType| |WHC| Required state sequence: |SP| Required flux sequence |TF|...
def calc_in_wc_v1(self): """Calculate the actual water release from the snow layer due to the exceedance of the snow layers capacity for (liquid) water. Required control parameters: |NmbZones| |ZoneType| |WHC| Required state sequence: |SP| Required flux sequence |TF|...
[ "Calculate", "the", "actual", "water", "release", "from", "the", "snow", "layer", "due", "to", "the", "exceedance", "of", "the", "snow", "layers", "capacity", "for", "(", "liquid", ")", "water", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L943-L1031
[ "def", "calc_in_wc_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_glmelt_in_v1
Calculate melting from glaciers which are actually not covered by a snow layer and add it to the water release of the snow module. Required control parameters: |NmbZones| |ZoneType| |GMelt| Required state sequence: |SP| Required flux sequence: |TC| Calculated fluxes...
hydpy/models/hland/hland_model.py
def calc_glmelt_in_v1(self): """Calculate melting from glaciers which are actually not covered by a snow layer and add it to the water release of the snow module. Required control parameters: |NmbZones| |ZoneType| |GMelt| Required state sequence: |SP| Required flux sequenc...
def calc_glmelt_in_v1(self): """Calculate melting from glaciers which are actually not covered by a snow layer and add it to the water release of the snow module. Required control parameters: |NmbZones| |ZoneType| |GMelt| Required state sequence: |SP| Required flux sequenc...
[ "Calculate", "melting", "from", "glaciers", "which", "are", "actually", "not", "covered", "by", "a", "snow", "layer", "and", "add", "it", "to", "the", "water", "release", "of", "the", "snow", "module", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1034-L1107
[ "def", "calc_glmelt_in_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", "....
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_r_sm_v1
Calculate effective precipitation and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |Beta| Required fluxes sequence: |In_| Calculated flux sequence: |R| Updated state sequence: |SM| Basic equations: :math:`\\frac{dS...
hydpy/models/hland/hland_model.py
def calc_r_sm_v1(self): """Calculate effective precipitation and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |Beta| Required fluxes sequence: |In_| Calculated flux sequence: |R| Updated state sequence: |SM| Basic eq...
def calc_r_sm_v1(self): """Calculate effective precipitation and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |Beta| Required fluxes sequence: |In_| Calculated flux sequence: |R| Updated state sequence: |SM| Basic eq...
[ "Calculate", "effective", "precipitation", "and", "update", "soil", "moisture", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1110-L1199
[ "def", "calc_r_sm_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "f...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_cf_sm_v1
Calculate capillary flow and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |CFlux| Required fluxes sequence: |R| Required state sequence: |UZ| Calculated flux sequence: |CF| Updated state sequence: |SM| Basic e...
hydpy/models/hland/hland_model.py
def calc_cf_sm_v1(self): """Calculate capillary flow and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |CFlux| Required fluxes sequence: |R| Required state sequence: |UZ| Calculated flux sequence: |CF| Updated state s...
def calc_cf_sm_v1(self): """Calculate capillary flow and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |CFlux| Required fluxes sequence: |R| Required state sequence: |UZ| Calculated flux sequence: |CF| Updated state s...
[ "Calculate", "capillary", "flow", "and", "update", "soil", "moisture", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1202-L1341
[ "def", "calc_cf_sm_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_ea_sm_v1
Calculate soil evaporation and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |LP| |ERed| Required fluxes sequences: |EPC| |EI| Required state sequence: |SP| Calculated flux sequence: |EA| Updated state sequenc...
hydpy/models/hland/hland_model.py
def calc_ea_sm_v1(self): """Calculate soil evaporation and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |LP| |ERed| Required fluxes sequences: |EPC| |EI| Required state sequence: |SP| Calculated flux sequence: ...
def calc_ea_sm_v1(self): """Calculate soil evaporation and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |LP| |ERed| Required fluxes sequences: |EPC| |EI| Required state sequence: |SP| Calculated flux sequence: ...
[ "Calculate", "soil", "evaporation", "and", "update", "soil", "moisture", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1344-L1473
[ "def", "calc_ea_sm_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_inuz_v1
Accumulate the total inflow into the upper zone layer. Required control parameters: |NmbZones| |ZoneType| Required derived parameters: |RelLandZoneArea| Required fluxes sequences: |R| |CF| Calculated flux sequence: |InUZ| Basic equation: :math:`InUZ = R...
hydpy/models/hland/hland_model.py
def calc_inuz_v1(self): """Accumulate the total inflow into the upper zone layer. Required control parameters: |NmbZones| |ZoneType| Required derived parameters: |RelLandZoneArea| Required fluxes sequences: |R| |CF| Calculated flux sequence: |InUZ| Basic ...
def calc_inuz_v1(self): """Accumulate the total inflow into the upper zone layer. Required control parameters: |NmbZones| |ZoneType| Required derived parameters: |RelLandZoneArea| Required fluxes sequences: |R| |CF| Calculated flux sequence: |InUZ| Basic ...
[ "Accumulate", "the", "total", "inflow", "into", "the", "upper", "zone", "layer", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1476-L1528
[ "def", "calc_inuz_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_contriarea_v1
Determine the relative size of the contributing area of the whole subbasin. Required control parameters: |NmbZones| |ZoneType| |RespArea| |FC| |Beta| Required derived parameter: |RelSoilArea| Required state sequence: |SM| Calculated fluxes sequences: ...
hydpy/models/hland/hland_model.py
def calc_contriarea_v1(self): """Determine the relative size of the contributing area of the whole subbasin. Required control parameters: |NmbZones| |ZoneType| |RespArea| |FC| |Beta| Required derived parameter: |RelSoilArea| Required state sequence: |SM| ...
def calc_contriarea_v1(self): """Determine the relative size of the contributing area of the whole subbasin. Required control parameters: |NmbZones| |ZoneType| |RespArea| |FC| |Beta| Required derived parameter: |RelSoilArea| Required state sequence: |SM| ...
[ "Determine", "the", "relative", "size", "of", "the", "contributing", "area", "of", "the", "whole", "subbasin", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1531-L1635
[ "def", "calc_contriarea_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_q0_perc_uz_v1
Perform the upper zone layer routine which determines percolation to the lower zone layer and the fast response of the hland model. Note that the system behaviour of this method depends strongly on the specifications of the options |RespArea| and |RecStep|. Required control parameters: |RecStep| ...
hydpy/models/hland/hland_model.py
def calc_q0_perc_uz_v1(self): """Perform the upper zone layer routine which determines percolation to the lower zone layer and the fast response of the hland model. Note that the system behaviour of this method depends strongly on the specifications of the options |RespArea| and |RecStep|. Required...
def calc_q0_perc_uz_v1(self): """Perform the upper zone layer routine which determines percolation to the lower zone layer and the fast response of the hland model. Note that the system behaviour of this method depends strongly on the specifications of the options |RespArea| and |RecStep|. Required...
[ "Perform", "the", "upper", "zone", "layer", "routine", "which", "determines", "percolation", "to", "the", "lower", "zone", "layer", "and", "the", "fast", "response", "of", "the", "hland", "model", ".", "Note", "that", "the", "system", "behaviour", "of", "thi...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1638-L1821
[ "def", "calc_q0_perc_uz_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_lz_v1
Update the lower zone layer in accordance with percolation from upper groundwater to lower groundwater and/or in accordance with lake precipitation. Required control parameters: |NmbZones| |ZoneType| Required derived parameters: |RelLandArea| |RelZoneArea| Required fluxes ...
hydpy/models/hland/hland_model.py
def calc_lz_v1(self): """Update the lower zone layer in accordance with percolation from upper groundwater to lower groundwater and/or in accordance with lake precipitation. Required control parameters: |NmbZones| |ZoneType| Required derived parameters: |RelLandArea| |RelZo...
def calc_lz_v1(self): """Update the lower zone layer in accordance with percolation from upper groundwater to lower groundwater and/or in accordance with lake precipitation. Required control parameters: |NmbZones| |ZoneType| Required derived parameters: |RelLandArea| |RelZo...
[ "Update", "the", "lower", "zone", "layer", "in", "accordance", "with", "percolation", "from", "upper", "groundwater", "to", "lower", "groundwater", "and", "/", "or", "in", "accordance", "with", "lake", "precipitation", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1824-L1892
[ "def", "calc_lz_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "f...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_el_lz_v1
Calculate lake evaporation. Required control parameters: |NmbZones| |ZoneType| |TTIce| Required derived parameters: |RelZoneArea| Required fluxes sequences: |TC| |EPC| Updated state sequence: |LZ| Basic equations: :math:`\\frac{dLZ...
hydpy/models/hland/hland_model.py
def calc_el_lz_v1(self): """Calculate lake evaporation. Required control parameters: |NmbZones| |ZoneType| |TTIce| Required derived parameters: |RelZoneArea| Required fluxes sequences: |TC| |EPC| Updated state sequence: |LZ| Basic equa...
def calc_el_lz_v1(self): """Calculate lake evaporation. Required control parameters: |NmbZones| |ZoneType| |TTIce| Required derived parameters: |RelZoneArea| Required fluxes sequences: |TC| |EPC| Updated state sequence: |LZ| Basic equa...
[ "Calculate", "lake", "evaporation", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1895-L1966
[ "def", "calc_el_lz_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_q1_lz_v1
Calculate the slow response of the lower zone layer. Required control parameters: |K4| |Gamma| Calculated fluxes sequence: |Q1| Updated state sequence: |LZ| Basic equations: :math:`\\frac{dLZ}{dt} = -Q1` \n :math:`Q1 = \\Bigl \\lbrace { ...
hydpy/models/hland/hland_model.py
def calc_q1_lz_v1(self): """Calculate the slow response of the lower zone layer. Required control parameters: |K4| |Gamma| Calculated fluxes sequence: |Q1| Updated state sequence: |LZ| Basic equations: :math:`\\frac{dLZ}{dt} = -Q1` \n :math:`Q1 = \...
def calc_q1_lz_v1(self): """Calculate the slow response of the lower zone layer. Required control parameters: |K4| |Gamma| Calculated fluxes sequence: |Q1| Updated state sequence: |LZ| Basic equations: :math:`\\frac{dLZ}{dt} = -Q1` \n :math:`Q1 = \...
[ "Calculate", "the", "slow", "response", "of", "the", "lower", "zone", "layer", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L1969-L2051
[ "def", "calc_q1_lz_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_inuh_v1
Calculate the unit hydrograph input. Required derived parameters: |RelLandArea| Required flux sequences: |Q0| |Q1| Calculated flux sequence: |InUH| Basic equation: :math:`InUH = Q0 + Q1` Example: The unit hydrographs receives base flow from the whole sub...
hydpy/models/hland/hland_model.py
def calc_inuh_v1(self): """Calculate the unit hydrograph input. Required derived parameters: |RelLandArea| Required flux sequences: |Q0| |Q1| Calculated flux sequence: |InUH| Basic equation: :math:`InUH = Q0 + Q1` Example: The unit hydrographs receiv...
def calc_inuh_v1(self): """Calculate the unit hydrograph input. Required derived parameters: |RelLandArea| Required flux sequences: |Q0| |Q1| Calculated flux sequence: |InUH| Basic equation: :math:`InUH = Q0 + Q1` Example: The unit hydrographs receiv...
[ "Calculate", "the", "unit", "hydrograph", "input", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L2054-L2089
[ "def", "calc_inuh_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "flu", ".", "inuh", "=", "der", ".", "rellandarea", "*", "fl...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_outuh_quh_v1
Calculate the unit hydrograph output (convolution). Required derived parameters: |UH| Required flux sequences: |Q0| |Q1| |InUH| Updated log sequence: |QUH| Calculated flux sequence: |OutUH| Examples: Prepare a unit hydrograph with only th...
hydpy/models/hland/hland_model.py
def calc_outuh_quh_v1(self): """Calculate the unit hydrograph output (convolution). Required derived parameters: |UH| Required flux sequences: |Q0| |Q1| |InUH| Updated log sequence: |QUH| Calculated flux sequence: |OutUH| Examples: Pr...
def calc_outuh_quh_v1(self): """Calculate the unit hydrograph output (convolution). Required derived parameters: |UH| Required flux sequences: |Q0| |Q1| |InUH| Updated log sequence: |QUH| Calculated flux sequence: |OutUH| Examples: Pr...
[ "Calculate", "the", "unit", "hydrograph", "output", "(", "convolution", ")", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L2092-L2181
[ "def", "calc_outuh_quh_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qt_v1
Calculate the total discharge after possible abstractions. Required control parameter: |Abstr| Required flux sequence: |OutUH| Calculated flux sequence: |QT| Basic equation: :math:`QT = max(OutUH - Abstr, 0)` Examples: Trying to abstract less then available, a...
hydpy/models/hland/hland_model.py
def calc_qt_v1(self): """Calculate the total discharge after possible abstractions. Required control parameter: |Abstr| Required flux sequence: |OutUH| Calculated flux sequence: |QT| Basic equation: :math:`QT = max(OutUH - Abstr, 0)` Examples: Trying to ab...
def calc_qt_v1(self): """Calculate the total discharge after possible abstractions. Required control parameter: |Abstr| Required flux sequence: |OutUH| Calculated flux sequence: |QT| Basic equation: :math:`QT = max(OutUH - Abstr, 0)` Examples: Trying to ab...
[ "Calculate", "the", "total", "discharge", "after", "possible", "abstractions", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_model.py#L2184-L2231
[ "def", "calc_qt_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "flu", ".", "qt", "=", "max", "(", "flu", ".", "outuh", "-",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Auxfiler.save
Save all defined auxiliary control files. The target path is taken from the |ControlManager| object stored in module |pub|. Hence we initialize one and override its |property| `currentpath` with a simple |str| object defining the test target path: >>> from hydpy import pub ...
hydpy/core/auxfiletools.py
def save(self, parameterstep=None, simulationstep=None): """Save all defined auxiliary control files. The target path is taken from the |ControlManager| object stored in module |pub|. Hence we initialize one and override its |property| `currentpath` with a simple |str| object defining ...
def save(self, parameterstep=None, simulationstep=None): """Save all defined auxiliary control files. The target path is taken from the |ControlManager| object stored in module |pub|. Hence we initialize one and override its |property| `currentpath` with a simple |str| object defining ...
[ "Save", "all", "defined", "auxiliary", "control", "files", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/auxfiletools.py#L235-L297
[ "def", "save", "(", "self", ",", "parameterstep", "=", "None", ",", "simulationstep", "=", "None", ")", ":", "par", "=", "parametertools", ".", "Parameter", "for", "(", "modelname", ",", "var2aux", ")", "in", "self", ":", "for", "filename", "in", "var2au...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Variable2Auxfile.remove
Remove the defined variables. The variables to be removed can be selected in two ways. But the first example shows that passing nothing or an empty iterable to method |Variable2Auxfile.remove| does not remove any variable: >>> from hydpy import dummies >>> v2af = dummies.v2af ...
hydpy/core/auxfiletools.py
def remove(self, *values): """Remove the defined variables. The variables to be removed can be selected in two ways. But the first example shows that passing nothing or an empty iterable to method |Variable2Auxfile.remove| does not remove any variable: >>> from hydpy import du...
def remove(self, *values): """Remove the defined variables. The variables to be removed can be selected in two ways. But the first example shows that passing nothing or an empty iterable to method |Variable2Auxfile.remove| does not remove any variable: >>> from hydpy import du...
[ "Remove", "the", "defined", "variables", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/auxfiletools.py#L473-L546
[ "def", "remove", "(", "self", ",", "*", "values", ")", ":", "for", "value", "in", "objecttools", ".", "extract", "(", "values", ",", "(", "str", ",", "variabletools", ".", "Variable", ")", ")", ":", "try", ":", "deleted_something", "=", "False", "for",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Variable2Auxfile.filenames
A list of all handled auxiliary file names. >>> from hydpy import dummies >>> dummies.v2af.filenames ['file1', 'file2']
hydpy/core/auxfiletools.py
def filenames(self): """A list of all handled auxiliary file names. >>> from hydpy import dummies >>> dummies.v2af.filenames ['file1', 'file2'] """ fns = set() for fn2var in self._type2filename2variable.values(): fns.update(fn2var.keys()) retu...
def filenames(self): """A list of all handled auxiliary file names. >>> from hydpy import dummies >>> dummies.v2af.filenames ['file1', 'file2'] """ fns = set() for fn2var in self._type2filename2variable.values(): fns.update(fn2var.keys()) retu...
[ "A", "list", "of", "all", "handled", "auxiliary", "file", "names", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/auxfiletools.py#L560-L570
[ "def", "filenames", "(", "self", ")", ":", "fns", "=", "set", "(", ")", "for", "fn2var", "in", "self", ".", "_type2filename2variable", ".", "values", "(", ")", ":", "fns", ".", "update", "(", "fn2var", ".", "keys", "(", ")", ")", "return", "sorted", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Variable2Auxfile.get_filename
Return the auxiliary file name the given variable is allocated to or |None| if the given variable is not allocated to any auxiliary file name. >>> from hydpy import dummies >>> eqb = dummies.v2af.eqb[0] >>> dummies.v2af.get_filename(eqb) 'file1' >>> eqb += 500.0 ...
hydpy/core/auxfiletools.py
def get_filename(self, variable): """Return the auxiliary file name the given variable is allocated to or |None| if the given variable is not allocated to any auxiliary file name. >>> from hydpy import dummies >>> eqb = dummies.v2af.eqb[0] >>> dummies.v2af.get_filename(e...
def get_filename(self, variable): """Return the auxiliary file name the given variable is allocated to or |None| if the given variable is not allocated to any auxiliary file name. >>> from hydpy import dummies >>> eqb = dummies.v2af.eqb[0] >>> dummies.v2af.get_filename(e...
[ "Return", "the", "auxiliary", "file", "name", "the", "given", "variable", "is", "allocated", "to", "or", "|None|", "if", "the", "given", "variable", "is", "not", "allocated", "to", "any", "auxiliary", "file", "name", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/auxfiletools.py#L595-L611
[ "def", "get_filename", "(", "self", ",", "variable", ")", ":", "fn2var", "=", "self", ".", "_type2filename2variable", ".", "get", "(", "type", "(", "variable", ")", ",", "{", "}", ")", "for", "(", "fn_", ",", "var", ")", "in", "fn2var", ".", "items",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
RemoteDischargeSmoothPar.update
Calculate the smoothing parameter values. The following example is explained in some detail in module |smoothtools|: >>> from hydpy import pub >>> pub.timegrids = '2000.01.01', '2000.01.03', '1d' >>> from hydpy.models.dam import * >>> parameterstep() >>> remoted...
hydpy/models/dam/dam_derived.py
def update(self): """Calculate the smoothing parameter values. The following example is explained in some detail in module |smoothtools|: >>> from hydpy import pub >>> pub.timegrids = '2000.01.01', '2000.01.03', '1d' >>> from hydpy.models.dam import * >>> parame...
def update(self): """Calculate the smoothing parameter values. The following example is explained in some detail in module |smoothtools|: >>> from hydpy import pub >>> pub.timegrids = '2000.01.01', '2000.01.03', '1d' >>> from hydpy.models.dam import * >>> parame...
[ "Calculate", "the", "smoothing", "parameter", "values", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/dam/dam_derived.py#L27-L50
[ "def", "update", "(", "self", ")", ":", "metapar", "=", "self", ".", "subpars", ".", "pars", ".", "control", ".", "remotedischargesafety", "self", ".", "shape", "=", "metapar", ".", "shape", "self", "(", "tuple", "(", "smoothtools", ".", "calc_smoothpar_lo...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
WaterLevelMinimumRemoteSmoothPar.update
Calculate the smoothing parameter value. The following example is explained in some detail in module |smoothtools|: >>> from hydpy.models.dam import * >>> parameterstep() >>> waterlevelminimumremotetolerance(0.0) >>> derived.waterlevelminimumremotesmoothpar.update() ...
hydpy/models/dam/dam_derived.py
def update(self): """Calculate the smoothing parameter value. The following example is explained in some detail in module |smoothtools|: >>> from hydpy.models.dam import * >>> parameterstep() >>> waterlevelminimumremotetolerance(0.0) >>> derived.waterlevelminimu...
def update(self): """Calculate the smoothing parameter value. The following example is explained in some detail in module |smoothtools|: >>> from hydpy.models.dam import * >>> parameterstep() >>> waterlevelminimumremotetolerance(0.0) >>> derived.waterlevelminimu...
[ "Calculate", "the", "smoothing", "parameter", "value", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/dam/dam_derived.py#L151-L173
[ "def", "update", "(", "self", ")", ":", "metapar", "=", "self", ".", "subpars", ".", "pars", ".", "control", ".", "waterlevelminimumremotetolerance", "self", "(", "smoothtools", ".", "calc_smoothpar_logistic1", "(", "metapar", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
HighestRemoteSmoothPar.update
Calculate the smoothing parameter value. The following example is explained in some detail in module |smoothtools|: >>> from hydpy.models.dam import * >>> parameterstep() >>> highestremotedischarge(1.0) >>> highestremotetolerance(0.0) >>> derived.highestremotesm...
hydpy/models/dam/dam_derived.py
def update(self): """Calculate the smoothing parameter value. The following example is explained in some detail in module |smoothtools|: >>> from hydpy.models.dam import * >>> parameterstep() >>> highestremotedischarge(1.0) >>> highestremotetolerance(0.0) ...
def update(self): """Calculate the smoothing parameter value. The following example is explained in some detail in module |smoothtools|: >>> from hydpy.models.dam import * >>> parameterstep() >>> highestremotedischarge(1.0) >>> highestremotetolerance(0.0) ...
[ "Calculate", "the", "smoothing", "parameter", "value", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/dam/dam_derived.py#L246-L303
[ "def", "update", "(", "self", ")", ":", "control", "=", "self", ".", "subpars", ".", "pars", ".", "control", "if", "numpy", ".", "isinf", "(", "control", ".", "highestremotedischarge", ")", ":", "self", "(", "0.0", ")", "else", ":", "self", "(", "con...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
run_subprocess
Execute the given command in a new process. Only when both `verbose` and `blocking` are |True|, |run_subprocess| prints all responses to the current value of |sys.stdout|: >>> from hydpy import run_subprocess >>> import platform >>> esc = '' if 'windows' in platform.platform().lower() else '\\\\' ...
hydpy/exe/commandtools.py
def run_subprocess(command: str, verbose: bool = True, blocking: bool = True) \ -> Optional[subprocess.Popen]: """Execute the given command in a new process. Only when both `verbose` and `blocking` are |True|, |run_subprocess| prints all responses to the current value of |sys.stdout|: >>> from...
def run_subprocess(command: str, verbose: bool = True, blocking: bool = True) \ -> Optional[subprocess.Popen]: """Execute the given command in a new process. Only when both `verbose` and `blocking` are |True|, |run_subprocess| prints all responses to the current value of |sys.stdout|: >>> from...
[ "Execute", "the", "given", "command", "in", "a", "new", "process", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/exe/commandtools.py#L21-L70
[ "def", "run_subprocess", "(", "command", ":", "str", ",", "verbose", ":", "bool", "=", "True", ",", "blocking", ":", "bool", "=", "True", ")", "->", "Optional", "[", "subprocess", ".", "Popen", "]", ":", "if", "blocking", ":", "result1", "=", "subproce...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
exec_commands
Execute the given Python commands. Function |exec_commands| is thought for testing purposes only (see the main documentation on module |hyd|). Seperate individual commands by semicolons and replaced whitespaces with underscores: >>> from hydpy.exe.commandtools import exec_commands >>> import sys ...
hydpy/exe/commandtools.py
def exec_commands(commands: str, **parameters: Any) -> None: """Execute the given Python commands. Function |exec_commands| is thought for testing purposes only (see the main documentation on module |hyd|). Seperate individual commands by semicolons and replaced whitespaces with underscores: >>> ...
def exec_commands(commands: str, **parameters: Any) -> None: """Execute the given Python commands. Function |exec_commands| is thought for testing purposes only (see the main documentation on module |hyd|). Seperate individual commands by semicolons and replaced whitespaces with underscores: >>> ...
[ "Execute", "the", "given", "Python", "commands", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/exe/commandtools.py#L73-L108
[ "def", "exec_commands", "(", "commands", ":", "str", ",", "*", "*", "parameters", ":", "Any", ")", "->", "None", ":", "cmdlist", "=", "commands", ".", "split", "(", "';'", ")", "print", "(", "f'Start to execute the commands {cmdlist} for testing purposes.'", ")"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
prepare_logfile
Prepare an empty log file eventually and return its absolute path. When passing the "filename" `stdout`, |prepare_logfile| does not prepare any file and just returns `stdout`: >>> from hydpy.exe.commandtools import prepare_logfile >>> prepare_logfile('stdout') 'stdout' When passing the "filen...
hydpy/exe/commandtools.py
def prepare_logfile(filename: str) -> str: """Prepare an empty log file eventually and return its absolute path. When passing the "filename" `stdout`, |prepare_logfile| does not prepare any file and just returns `stdout`: >>> from hydpy.exe.commandtools import prepare_logfile >>> prepare_logfile('...
def prepare_logfile(filename: str) -> str: """Prepare an empty log file eventually and return its absolute path. When passing the "filename" `stdout`, |prepare_logfile| does not prepare any file and just returns `stdout`: >>> from hydpy.exe.commandtools import prepare_logfile >>> prepare_logfile('...
[ "Prepare", "an", "empty", "log", "file", "eventually", "and", "return", "its", "absolute", "path", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/exe/commandtools.py#L159-L203
[ "def", "prepare_logfile", "(", "filename", ":", "str", ")", "->", "str", ":", "if", "filename", "==", "'stdout'", ":", "return", "filename", "if", "filename", "==", "'default'", ":", "filename", "=", "datetime", ".", "datetime", ".", "now", "(", ")", "."...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
execute_scriptfunction
Execute a HydPy script function. Function |execute_scriptfunction| is indirectly applied and explained in the documentation on module |hyd|.
hydpy/exe/commandtools.py
def execute_scriptfunction() -> None: """Execute a HydPy script function. Function |execute_scriptfunction| is indirectly applied and explained in the documentation on module |hyd|. """ try: args_given = [] kwargs_given = {} for arg in sys.argv[1:]: if len(arg) <...
def execute_scriptfunction() -> None: """Execute a HydPy script function. Function |execute_scriptfunction| is indirectly applied and explained in the documentation on module |hyd|. """ try: args_given = [] kwargs_given = {} for arg in sys.argv[1:]: if len(arg) <...
[ "Execute", "a", "HydPy", "script", "function", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/exe/commandtools.py#L223-L284
[ "def", "execute_scriptfunction", "(", ")", "->", "None", ":", "try", ":", "args_given", "=", "[", "]", "kwargs_given", "=", "{", "}", "for", "arg", "in", "sys", ".", "argv", "[", "1", ":", "]", ":", "if", "len", "(", "arg", ")", "<", "3", ":", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
parse_argument
Return a single value for a string understood as a positional argument or a |tuple| containing a keyword and its value for a string understood as a keyword argument. |parse_argument| is intended to be used as a helper function for function |execute_scriptfunction| only. See the following examples ...
hydpy/exe/commandtools.py
def parse_argument(string: str) -> Union[str, Tuple[str, str]]: """Return a single value for a string understood as a positional argument or a |tuple| containing a keyword and its value for a string understood as a keyword argument. |parse_argument| is intended to be used as a helper function for f...
def parse_argument(string: str) -> Union[str, Tuple[str, str]]: """Return a single value for a string understood as a positional argument or a |tuple| containing a keyword and its value for a string understood as a keyword argument. |parse_argument| is intended to be used as a helper function for f...
[ "Return", "a", "single", "value", "for", "a", "string", "understood", "as", "a", "positional", "argument", "or", "a", "|tuple|", "containing", "a", "keyword", "and", "its", "value", "for", "a", "string", "understood", "as", "a", "keyword", "argument", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/exe/commandtools.py#L346-L378
[ "def", "parse_argument", "(", "string", ":", "str", ")", "->", "Union", "[", "str", ",", "Tuple", "[", "str", ",", "str", "]", "]", ":", "idx_equal", "=", "string", ".", "find", "(", "'='", ")", "if", "idx_equal", "==", "-", "1", ":", "return", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
print_textandtime
Print the given string and the current date and time with high precision for logging purposes. >>> from hydpy.exe.commandtools import print_textandtime >>> from hydpy.core.testtools import mock_datetime_now >>> from datetime import datetime >>> with mock_datetime_now(datetime(2000, 1, 1, 12, 30, 0,...
hydpy/exe/commandtools.py
def print_textandtime(text: str) -> None: """Print the given string and the current date and time with high precision for logging purposes. >>> from hydpy.exe.commandtools import print_textandtime >>> from hydpy.core.testtools import mock_datetime_now >>> from datetime import datetime >>> with ...
def print_textandtime(text: str) -> None: """Print the given string and the current date and time with high precision for logging purposes. >>> from hydpy.exe.commandtools import print_textandtime >>> from hydpy.core.testtools import mock_datetime_now >>> from datetime import datetime >>> with ...
[ "Print", "the", "given", "string", "and", "the", "current", "date", "and", "time", "with", "high", "precision", "for", "logging", "purposes", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/exe/commandtools.py#L381-L393
[ "def", "print_textandtime", "(", "text", ":", "str", ")", "->", "None", ":", "timestring", "=", "datetime", ".", "datetime", ".", "now", "(", ")", ".", "strftime", "(", "'%Y-%m-%d %H:%M:%S.%f'", ")", "print", "(", "f'{text} ({timestring}).'", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
LogFileInterface.write
Write the given string as explained in the main documentation on class |LogFileInterface|.
hydpy/exe/commandtools.py
def write(self, string: str) -> None: """Write the given string as explained in the main documentation on class |LogFileInterface|.""" self.logfile.write('\n'.join( f'{self._string}{substring}' if substring else '' for substring in string.split('\n')))
def write(self, string: str) -> None: """Write the given string as explained in the main documentation on class |LogFileInterface|.""" self.logfile.write('\n'.join( f'{self._string}{substring}' if substring else '' for substring in string.split('\n')))
[ "Write", "the", "given", "string", "as", "explained", "in", "the", "main", "documentation", "on", "class", "|LogFileInterface|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/exe/commandtools.py#L335-L340
[ "def", "write", "(", "self", ",", "string", ":", "str", ")", "->", "None", ":", "self", ".", "logfile", ".", "write", "(", "'\\n'", ".", "join", "(", "f'{self._string}{substring}'", "if", "substring", "else", "''", "for", "substring", "in", "string", "."...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
solve_dv_dt_v1
Solve the differential equation of HydPy-L. At the moment, HydPy-L only implements a simple numerical solution of its underlying ordinary differential equation. To increase the accuracy (or sometimes even to prevent instability) of this approximation, one can set the value of parameter |MaxDT| to a va...
hydpy/models/llake/llake_model.py
def solve_dv_dt_v1(self): """Solve the differential equation of HydPy-L. At the moment, HydPy-L only implements a simple numerical solution of its underlying ordinary differential equation. To increase the accuracy (or sometimes even to prevent instability) of this approximation, one can set the v...
def solve_dv_dt_v1(self): """Solve the differential equation of HydPy-L. At the moment, HydPy-L only implements a simple numerical solution of its underlying ordinary differential equation. To increase the accuracy (or sometimes even to prevent instability) of this approximation, one can set the v...
[ "Solve", "the", "differential", "equation", "of", "HydPy", "-", "L", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L10-L69
[ "def", "solve_dv_dt_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "old", "=", "self", ".", "sequences", ".", "states", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_vq_v1
Calculate the auxiliary term. Required derived parameters: |Seconds| |NmbSubsteps| Required flux sequence: |QZ| Required aide sequence: |llake_aides.V| Calculated aide sequence: |llake_aides.VQ| Basic equation: :math:`VQ = 2 \\cdot V + \\frac{Seconds}{NmbSubs...
hydpy/models/llake/llake_model.py
def calc_vq_v1(self): """Calculate the auxiliary term. Required derived parameters: |Seconds| |NmbSubsteps| Required flux sequence: |QZ| Required aide sequence: |llake_aides.V| Calculated aide sequence: |llake_aides.VQ| Basic equation: :math:`VQ = 2 \\cdo...
def calc_vq_v1(self): """Calculate the auxiliary term. Required derived parameters: |Seconds| |NmbSubsteps| Required flux sequence: |QZ| Required aide sequence: |llake_aides.V| Calculated aide sequence: |llake_aides.VQ| Basic equation: :math:`VQ = 2 \\cdo...
[ "Calculate", "the", "auxiliary", "term", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L72-L112
[ "def", "calc_vq_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "aid", "=", "self", ".", "sequences", ".", "aides", ".", "fast...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
interp_qa_v1
Calculate the lake outflow based on linear interpolation. Required control parameters: |N| |llake_control.Q| Required derived parameters: |llake_derived.TOY| |llake_derived.VQ| Required aide sequence: |llake_aides.VQ| Calculated aide sequence: |llake_aides.QA| ...
hydpy/models/llake/llake_model.py
def interp_qa_v1(self): """Calculate the lake outflow based on linear interpolation. Required control parameters: |N| |llake_control.Q| Required derived parameters: |llake_derived.TOY| |llake_derived.VQ| Required aide sequence: |llake_aides.VQ| Calculated aide seque...
def interp_qa_v1(self): """Calculate the lake outflow based on linear interpolation. Required control parameters: |N| |llake_control.Q| Required derived parameters: |llake_derived.TOY| |llake_derived.VQ| Required aide sequence: |llake_aides.VQ| Calculated aide seque...
[ "Calculate", "the", "lake", "outflow", "based", "on", "linear", "interpolation", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L115-L222
[ "def", "interp_qa_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "aid", "=", "self", ".", "sequences", ".", "aides", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_v_qa_v1
Update the stored water volume based on the equation of continuity. Note that for too high outflow values, which would result in overdraining the lake, the outflow is trimmed. Required derived parameters: |Seconds| |NmbSubsteps| Required flux sequence: |QZ| Updated aide sequenc...
hydpy/models/llake/llake_model.py
def calc_v_qa_v1(self): """Update the stored water volume based on the equation of continuity. Note that for too high outflow values, which would result in overdraining the lake, the outflow is trimmed. Required derived parameters: |Seconds| |NmbSubsteps| Required flux sequence: ...
def calc_v_qa_v1(self): """Update the stored water volume based on the equation of continuity. Note that for too high outflow values, which would result in overdraining the lake, the outflow is trimmed. Required derived parameters: |Seconds| |NmbSubsteps| Required flux sequence: ...
[ "Update", "the", "stored", "water", "volume", "based", "on", "the", "equation", "of", "continuity", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L225-L290
[ "def", "calc_v_qa_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "aid", "=", "self", ".", "sequences", ".", "aides", ".", "fa...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
interp_w_v1
Calculate the actual water stage based on linear interpolation. Required control parameters: |N| |llake_control.V| |llake_control.W| Required state sequence: |llake_states.V| Calculated state sequence: |llake_states.W| Examples: Prepare a model object: ...
hydpy/models/llake/llake_model.py
def interp_w_v1(self): """Calculate the actual water stage based on linear interpolation. Required control parameters: |N| |llake_control.V| |llake_control.W| Required state sequence: |llake_states.V| Calculated state sequence: |llake_states.W| Examples: Pr...
def interp_w_v1(self): """Calculate the actual water stage based on linear interpolation. Required control parameters: |N| |llake_control.V| |llake_control.W| Required state sequence: |llake_states.V| Calculated state sequence: |llake_states.W| Examples: Pr...
[ "Calculate", "the", "actual", "water", "stage", "based", "on", "linear", "interpolation", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L293-L354
[ "def", "interp_w_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "new", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_new", "for", "jdx", "in", "range", "(", "1", ",", "con", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
corr_dw_v1
Adjust the water stage drop to the highest value allowed and correct the associated fluxes. Note that method |corr_dw_v1| calls the method `interp_v` of the respective application model. Hence the requirements of the actual `interp_v` need to be considered additionally. Required control parameter...
hydpy/models/llake/llake_model.py
def corr_dw_v1(self): """Adjust the water stage drop to the highest value allowed and correct the associated fluxes. Note that method |corr_dw_v1| calls the method `interp_v` of the respective application model. Hence the requirements of the actual `interp_v` need to be considered additionally. ...
def corr_dw_v1(self): """Adjust the water stage drop to the highest value allowed and correct the associated fluxes. Note that method |corr_dw_v1| calls the method `interp_v` of the respective application model. Hence the requirements of the actual `interp_v` need to be considered additionally. ...
[ "Adjust", "the", "water", "stage", "drop", "to", "the", "highest", "value", "allowed", "and", "correct", "the", "associated", "fluxes", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L420-L561
[ "def", "corr_dw_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "f...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
modify_qa_v1
Add water to or remove water from the calculated lake outflow. Required control parameter: |Verzw| Required derived parameter: |llake_derived.TOY| Updated flux sequence: |llake_fluxes.QA| Basic Equation: :math:`QA = QA* - Verzw` Examples: In preparation for the f...
hydpy/models/llake/llake_model.py
def modify_qa_v1(self): """Add water to or remove water from the calculated lake outflow. Required control parameter: |Verzw| Required derived parameter: |llake_derived.TOY| Updated flux sequence: |llake_fluxes.QA| Basic Equation: :math:`QA = QA* - Verzw` Examples: ...
def modify_qa_v1(self): """Add water to or remove water from the calculated lake outflow. Required control parameter: |Verzw| Required derived parameter: |llake_derived.TOY| Updated flux sequence: |llake_fluxes.QA| Basic Equation: :math:`QA = QA* - Verzw` Examples: ...
[ "Add", "water", "to", "or", "remove", "water", "from", "the", "calculated", "lake", "outflow", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L564-L637
[ "def", "modify_qa_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
pass_q_v1
Update the outlet link sequence.
hydpy/models/llake/llake_model.py
def pass_q_v1(self): """Update the outlet link sequence.""" flu = self.sequences.fluxes.fastaccess out = self.sequences.outlets.fastaccess out.q[0] += flu.qa
def pass_q_v1(self): """Update the outlet link sequence.""" flu = self.sequences.fluxes.fastaccess out = self.sequences.outlets.fastaccess out.q[0] += flu.qa
[ "Update", "the", "outlet", "link", "sequence", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/llake/llake_model.py#L649-L653
[ "def", "pass_q_v1", "(", "self", ")", ":", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "out", "=", "self", ".", "sequences", ".", "outlets", ".", "fastaccess", "out", ".", "q", "[", "0", "]", "+=", "flu", ".", "qa" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Responses.thresholds
Threshold values of the response functions.
hydpy/models/arma/arma_control.py
def thresholds(self): """Threshold values of the response functions.""" return numpy.array( sorted(self._key2float(key) for key in self._coefs), dtype=float)
def thresholds(self): """Threshold values of the response functions.""" return numpy.array( sorted(self._key2float(key) for key in self._coefs), dtype=float)
[ "Threshold", "values", "of", "the", "response", "functions", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_control.py#L308-L311
[ "def", "thresholds", "(", "self", ")", ":", "return", "numpy", ".", "array", "(", "sorted", "(", "self", ".", "_key2float", "(", "key", ")", "for", "key", "in", "self", ".", "_coefs", ")", ",", "dtype", "=", "float", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
prepare_arrays
Prepare and return two |numpy| arrays based on the given arguments. Note that many functions provided by module |statstools| apply function |prepare_arrays| internally (e.g. |nse|). But you can also apply it manually, as shown in the following examples. Function |prepare_arrays| can extract time seri...
hydpy/auxs/statstools.py
def prepare_arrays(sim=None, obs=None, node=None, skip_nan=False): """Prepare and return two |numpy| arrays based on the given arguments. Note that many functions provided by module |statstools| apply function |prepare_arrays| internally (e.g. |nse|). But you can also apply it manually, as shown in th...
def prepare_arrays(sim=None, obs=None, node=None, skip_nan=False): """Prepare and return two |numpy| arrays based on the given arguments. Note that many functions provided by module |statstools| apply function |prepare_arrays| internally (e.g. |nse|). But you can also apply it manually, as shown in th...
[ "Prepare", "and", "return", "two", "|numpy|", "arrays", "based", "on", "the", "given", "arguments", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L18-L135
[ "def", "prepare_arrays", "(", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "if", "node", ":", "if", "sim", "is", "not", "None", ":", "raise", "ValueError", "(", "'Values are passed to b...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
nse
Calculate the efficiency criteria after Nash & Sutcliffe. If the simulated values predict the observed values as well as the average observed value (regarding the the mean square error), the NSE value is zero: >>> from hydpy import nse >>> nse(sim=[2.0, 2.0, 2.0], obs=[1.0, 2.0, 3.0]) 0.0 ...
hydpy/auxs/statstools.py
def nse(sim=None, obs=None, node=None, skip_nan=False): """Calculate the efficiency criteria after Nash & Sutcliffe. If the simulated values predict the observed values as well as the average observed value (regarding the the mean square error), the NSE value is zero: >>> from hydpy import nse ...
def nse(sim=None, obs=None, node=None, skip_nan=False): """Calculate the efficiency criteria after Nash & Sutcliffe. If the simulated values predict the observed values as well as the average observed value (regarding the the mean square error), the NSE value is zero: >>> from hydpy import nse ...
[ "Calculate", "the", "efficiency", "criteria", "after", "Nash", "&", "Sutcliffe", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L140-L170
[ "def", "nse", "(", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "sim", ",", "obs", "=", "prepare_arrays", "(", "sim", ",", "obs", ",", "node", ",", "skip_nan", ")", "return", "1."...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
bias_abs
Calculate the absolute difference between the means of the simulated and the observed values. >>> from hydpy import round_ >>> from hydpy import bias_abs >>> round_(bias_abs(sim=[2.0, 2.0, 2.0], obs=[1.0, 2.0, 3.0])) 0.0 >>> round_(bias_abs(sim=[5.0, 2.0, 2.0], obs=[1.0, 2.0, 3.0])) 1.0 ...
hydpy/auxs/statstools.py
def bias_abs(sim=None, obs=None, node=None, skip_nan=False): """Calculate the absolute difference between the means of the simulated and the observed values. >>> from hydpy import round_ >>> from hydpy import bias_abs >>> round_(bias_abs(sim=[2.0, 2.0, 2.0], obs=[1.0, 2.0, 3.0])) 0.0 >>> ro...
def bias_abs(sim=None, obs=None, node=None, skip_nan=False): """Calculate the absolute difference between the means of the simulated and the observed values. >>> from hydpy import round_ >>> from hydpy import bias_abs >>> round_(bias_abs(sim=[2.0, 2.0, 2.0], obs=[1.0, 2.0, 3.0])) 0.0 >>> ro...
[ "Calculate", "the", "absolute", "difference", "between", "the", "means", "of", "the", "simulated", "and", "the", "observed", "values", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L175-L192
[ "def", "bias_abs", "(", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "sim", ",", "obs", "=", "prepare_arrays", "(", "sim", ",", "obs", ",", "node", ",", "skip_nan", ")", "return", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
std_ratio
Calculate the ratio between the standard deviation of the simulated and the observed values. >>> from hydpy import round_ >>> from hydpy import std_ratio >>> round_(std_ratio(sim=[1.0, 2.0, 3.0], obs=[1.0, 2.0, 3.0])) 0.0 >>> round_(std_ratio(sim=[1.0, 1.0, 1.0], obs=[1.0, 2.0, 3.0])) -1.0 ...
hydpy/auxs/statstools.py
def std_ratio(sim=None, obs=None, node=None, skip_nan=False): """Calculate the ratio between the standard deviation of the simulated and the observed values. >>> from hydpy import round_ >>> from hydpy import std_ratio >>> round_(std_ratio(sim=[1.0, 2.0, 3.0], obs=[1.0, 2.0, 3.0])) 0.0 >>> ...
def std_ratio(sim=None, obs=None, node=None, skip_nan=False): """Calculate the ratio between the standard deviation of the simulated and the observed values. >>> from hydpy import round_ >>> from hydpy import std_ratio >>> round_(std_ratio(sim=[1.0, 2.0, 3.0], obs=[1.0, 2.0, 3.0])) 0.0 >>> ...
[ "Calculate", "the", "ratio", "between", "the", "standard", "deviation", "of", "the", "simulated", "and", "the", "observed", "values", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L219-L236
[ "def", "std_ratio", "(", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "sim", ",", "obs", "=", "prepare_arrays", "(", "sim", ",", "obs", ",", "node", ",", "skip_nan", ")", "return", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
corr
Calculate the product-moment correlation coefficient after Pearson. >>> from hydpy import round_ >>> from hydpy import corr >>> round_(corr(sim=[0.5, 1.0, 1.5], obs=[1.0, 2.0, 3.0])) 1.0 >>> round_(corr(sim=[4.0, 2.0, 0.0], obs=[1.0, 2.0, 3.0])) -1.0 >>> round_(corr(sim=[1.0, 2.0, 1.0], obs...
hydpy/auxs/statstools.py
def corr(sim=None, obs=None, node=None, skip_nan=False): """Calculate the product-moment correlation coefficient after Pearson. >>> from hydpy import round_ >>> from hydpy import corr >>> round_(corr(sim=[0.5, 1.0, 1.5], obs=[1.0, 2.0, 3.0])) 1.0 >>> round_(corr(sim=[4.0, 2.0, 0.0], obs=[1.0, 2...
def corr(sim=None, obs=None, node=None, skip_nan=False): """Calculate the product-moment correlation coefficient after Pearson. >>> from hydpy import round_ >>> from hydpy import corr >>> round_(corr(sim=[0.5, 1.0, 1.5], obs=[1.0, 2.0, 3.0])) 1.0 >>> round_(corr(sim=[4.0, 2.0, 0.0], obs=[1.0, 2...
[ "Calculate", "the", "product", "-", "moment", "correlation", "coefficient", "after", "Pearson", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L241-L257
[ "def", "corr", "(", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "sim", ",", "obs", "=", "prepare_arrays", "(", "sim", ",", "obs", ",", "node", ",", "skip_nan", ")", "return", "nu...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
hsepd_pdf
Calculate the probability densities based on the heteroskedastic skewed exponential power distribution. For convenience, the required parameters of the probability density function as well as the simulated and observed values are stored in a dictonary: >>> import numpy >>> from hydpy import ro...
hydpy/auxs/statstools.py
def hsepd_pdf(sigma1, sigma2, xi, beta, sim=None, obs=None, node=None, skip_nan=False): """Calculate the probability densities based on the heteroskedastic skewed exponential power distribution. For convenience, the required parameters of the probability density function as well as the si...
def hsepd_pdf(sigma1, sigma2, xi, beta, sim=None, obs=None, node=None, skip_nan=False): """Calculate the probability densities based on the heteroskedastic skewed exponential power distribution. For convenience, the required parameters of the probability density function as well as the si...
[ "Calculate", "the", "probability", "densities", "based", "on", "the", "heteroskedastic", "skewed", "exponential", "power", "distribution", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L279-L388
[ "def", "hsepd_pdf", "(", "sigma1", ",", "sigma2", ",", "xi", ",", "beta", ",", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "sim", ",", "obs", "=", "prepare_arrays", "(", "sim", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
hsepd_manual
Calculate the mean of the logarithmised probability densities of the 'heteroskedastic skewed exponential power distribution. The following examples are taken from the documentation of function |hsepd_pdf|, which is used by function |hsepd_manual|. The first one deals with a heteroscedastic normal dist...
hydpy/auxs/statstools.py
def hsepd_manual(sigma1, sigma2, xi, beta, sim=None, obs=None, node=None, skip_nan=False): """Calculate the mean of the logarithmised probability densities of the 'heteroskedastic skewed exponential power distribution. The following examples are taken from the documentation of function ...
def hsepd_manual(sigma1, sigma2, xi, beta, sim=None, obs=None, node=None, skip_nan=False): """Calculate the mean of the logarithmised probability densities of the 'heteroskedastic skewed exponential power distribution. The following examples are taken from the documentation of function ...
[ "Calculate", "the", "mean", "of", "the", "logarithmised", "probability", "densities", "of", "the", "heteroskedastic", "skewed", "exponential", "power", "distribution", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L399-L428
[ "def", "hsepd_manual", "(", "sigma1", ",", "sigma2", ",", "xi", ",", "beta", ",", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "sim", ",", "obs", "=", "prepare_arrays", "(", "sim", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
hsepd
Calculate the mean of the logarithmised probability densities of the 'heteroskedastic skewed exponential power distribution. Function |hsepd| serves the same purpose as function |hsepd_manual|, but tries to estimate the parameters of the heteroscedastic skewed exponential distribution via an optimizati...
hydpy/auxs/statstools.py
def hsepd(sim=None, obs=None, node=None, skip_nan=False, inits=None, return_pars=False, silent=True): """Calculate the mean of the logarithmised probability densities of the 'heteroskedastic skewed exponential power distribution. Function |hsepd| serves the same purpose as function |hsepd_manual|...
def hsepd(sim=None, obs=None, node=None, skip_nan=False, inits=None, return_pars=False, silent=True): """Calculate the mean of the logarithmised probability densities of the 'heteroskedastic skewed exponential power distribution. Function |hsepd| serves the same purpose as function |hsepd_manual|...
[ "Calculate", "the", "mean", "of", "the", "logarithmised", "probability", "densities", "of", "the", "heteroskedastic", "skewed", "exponential", "power", "distribution", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L433-L523
[ "def", "hsepd", "(", "sim", "=", "None", ",", "obs", "=", "None", ",", "node", "=", "None", ",", "skip_nan", "=", "False", ",", "inits", "=", "None", ",", "return_pars", "=", "False", ",", "silent", "=", "True", ")", ":", "def", "transform", "(", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_mean_time
Return the weighted mean of the given timepoints. With equal given weights, the result is simply the mean of the given time points: >>> from hydpy import calc_mean_time >>> calc_mean_time(timepoints=[3., 7.], ... weights=[2., 2.]) 5.0 With different weights, the resulting m...
hydpy/auxs/statstools.py
def calc_mean_time(timepoints, weights): """Return the weighted mean of the given timepoints. With equal given weights, the result is simply the mean of the given time points: >>> from hydpy import calc_mean_time >>> calc_mean_time(timepoints=[3., 7.], ... weights=[2., 2.]) ...
def calc_mean_time(timepoints, weights): """Return the weighted mean of the given timepoints. With equal given weights, the result is simply the mean of the given time points: >>> from hydpy import calc_mean_time >>> calc_mean_time(timepoints=[3., 7.], ... weights=[2., 2.]) ...
[ "Return", "the", "weighted", "mean", "of", "the", "given", "timepoints", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L528-L566
[ "def", "calc_mean_time", "(", "timepoints", ",", "weights", ")", ":", "timepoints", "=", "numpy", ".", "array", "(", "timepoints", ")", "weights", "=", "numpy", ".", "array", "(", "weights", ")", "validtools", ".", "test_equal_shape", "(", "timepoints", "=",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_mean_time_deviation
Return the weighted deviation of the given timepoints from their mean time. With equal given weights, the is simply the standard deviation of the given time points: >>> from hydpy import calc_mean_time_deviation >>> calc_mean_time_deviation(timepoints=[3., 7.], ... wei...
hydpy/auxs/statstools.py
def calc_mean_time_deviation(timepoints, weights, mean_time=None): """Return the weighted deviation of the given timepoints from their mean time. With equal given weights, the is simply the standard deviation of the given time points: >>> from hydpy import calc_mean_time_deviation >>> calc_mea...
def calc_mean_time_deviation(timepoints, weights, mean_time=None): """Return the weighted deviation of the given timepoints from their mean time. With equal given weights, the is simply the standard deviation of the given time points: >>> from hydpy import calc_mean_time_deviation >>> calc_mea...
[ "Return", "the", "weighted", "deviation", "of", "the", "given", "timepoints", "from", "their", "mean", "time", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L571-L618
[ "def", "calc_mean_time_deviation", "(", "timepoints", ",", "weights", ",", "mean_time", "=", "None", ")", ":", "timepoints", "=", "numpy", ".", "array", "(", "timepoints", ")", "weights", "=", "numpy", ".", "array", "(", "weights", ")", "validtools", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
evaluationtable
Return a table containing the results of the given evaluation criteria for the given |Node| objects. First, we define two nodes with different simulation and observation data (see function |prepare_arrays| for some explanations): >>> from hydpy import pub, Node, nan >>> pub.timegrids = '01.01.2000...
hydpy/auxs/statstools.py
def evaluationtable(nodes, criteria, nodenames=None, critnames=None, skip_nan=False): """Return a table containing the results of the given evaluation criteria for the given |Node| objects. First, we define two nodes with different simulation and observation data (see function |prep...
def evaluationtable(nodes, criteria, nodenames=None, critnames=None, skip_nan=False): """Return a table containing the results of the given evaluation criteria for the given |Node| objects. First, we define two nodes with different simulation and observation data (see function |prep...
[ "Return", "a", "table", "containing", "the", "results", "of", "the", "given", "evaluation", "criteria", "for", "the", "given", "|Node|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/statstools.py#L623-L708
[ "def", "evaluationtable", "(", "nodes", ",", "criteria", ",", "nodenames", "=", "None", ",", "critnames", "=", "None", ",", "skip_nan", "=", "False", ")", ":", "if", "nodenames", ":", "if", "len", "(", "nodes", ")", "!=", "len", "(", "nodenames", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IUH.set_primary_parameters
Set all primary parameters at once.
hydpy/auxs/iuhtools.py
def set_primary_parameters(self, **kwargs): """Set all primary parameters at once.""" given = sorted(kwargs.keys()) required = sorted(self._PRIMARY_PARAMETERS) if given == required: for (key, value) in kwargs.items(): setattr(self, key, value) else: ...
def set_primary_parameters(self, **kwargs): """Set all primary parameters at once.""" given = sorted(kwargs.keys()) required = sorted(self._PRIMARY_PARAMETERS) if given == required: for (key, value) in kwargs.items(): setattr(self, key, value) else: ...
[ "Set", "all", "primary", "parameters", "at", "once", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L148-L164
[ "def", "set_primary_parameters", "(", "self", ",", "*", "*", "kwargs", ")", ":", "given", "=", "sorted", "(", "kwargs", ".", "keys", "(", ")", ")", "required", "=", "sorted", "(", "self", ".", "_PRIMARY_PARAMETERS", ")", "if", "given", "==", "required", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IUH.primary_parameters_complete
True/False flag that indicates wheter the values of all primary parameters are defined or not.
hydpy/auxs/iuhtools.py
def primary_parameters_complete(self): """True/False flag that indicates wheter the values of all primary parameters are defined or not.""" for primpar in self._PRIMARY_PARAMETERS.values(): if primpar.__get__(self) is None: return False return True
def primary_parameters_complete(self): """True/False flag that indicates wheter the values of all primary parameters are defined or not.""" for primpar in self._PRIMARY_PARAMETERS.values(): if primpar.__get__(self) is None: return False return True
[ "True", "/", "False", "flag", "that", "indicates", "wheter", "the", "values", "of", "all", "primary", "parameters", "are", "defined", "or", "not", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L167-L173
[ "def", "primary_parameters_complete", "(", "self", ")", ":", "for", "primpar", "in", "self", ".", "_PRIMARY_PARAMETERS", ".", "values", "(", ")", ":", "if", "primpar", ".", "__get__", "(", "self", ")", "is", "None", ":", "return", "False", "return", "True"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IUH.update
Delete the coefficients of the pure MA model and also all MA and AR coefficients of the ARMA model. Also calculate or delete the values of all secondary iuh parameters, depending on the completeness of the values of the primary parameters.
hydpy/auxs/iuhtools.py
def update(self): """Delete the coefficients of the pure MA model and also all MA and AR coefficients of the ARMA model. Also calculate or delete the values of all secondary iuh parameters, depending on the completeness of the values of the primary parameters. """ del se...
def update(self): """Delete the coefficients of the pure MA model and also all MA and AR coefficients of the ARMA model. Also calculate or delete the values of all secondary iuh parameters, depending on the completeness of the values of the primary parameters. """ del se...
[ "Delete", "the", "coefficients", "of", "the", "pure", "MA", "model", "and", "also", "all", "MA", "and", "AR", "coefficients", "of", "the", "ARMA", "model", ".", "Also", "calculate", "or", "delete", "the", "values", "of", "all", "secondary", "iuh", "paramet...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L179-L192
[ "def", "update", "(", "self", ")", ":", "del", "self", ".", "ma", ".", "coefs", "del", "self", ".", "arma", ".", "ma_coefs", "del", "self", ".", "arma", ".", "ar_coefs", "if", "self", ".", "primary_parameters_complete", ":", "self", ".", "calc_secondary_...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IUH.delay_response_series
A tuple of two numpy arrays, which hold the time delays and the associated iuh values respectively.
hydpy/auxs/iuhtools.py
def delay_response_series(self): """A tuple of two numpy arrays, which hold the time delays and the associated iuh values respectively.""" delays = [] responses = [] sum_responses = 0. for t in itertools.count(self.dt_response/2., self.dt_response): delays.app...
def delay_response_series(self): """A tuple of two numpy arrays, which hold the time delays and the associated iuh values respectively.""" delays = [] responses = [] sum_responses = 0. for t in itertools.count(self.dt_response/2., self.dt_response): delays.app...
[ "A", "tuple", "of", "two", "numpy", "arrays", "which", "hold", "the", "time", "delays", "and", "the", "associated", "iuh", "values", "respectively", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L195-L208
[ "def", "delay_response_series", "(", "self", ")", ":", "delays", "=", "[", "]", "responses", "=", "[", "]", "sum_responses", "=", "0.", "for", "t", "in", "itertools", ".", "count", "(", "self", ".", "dt_response", "/", "2.", ",", "self", ".", "dt_respo...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IUH.plot
Plot the instanteneous unit hydrograph. The optional argument allows for defining a threshold of the cumulative sum uf the hydrograph, used to adjust the largest value of the x-axis. It must be a value between zero and one.
hydpy/auxs/iuhtools.py
def plot(self, threshold=None, **kwargs): """Plot the instanteneous unit hydrograph. The optional argument allows for defining a threshold of the cumulative sum uf the hydrograph, used to adjust the largest value of the x-axis. It must be a value between zero and one. """ ...
def plot(self, threshold=None, **kwargs): """Plot the instanteneous unit hydrograph. The optional argument allows for defining a threshold of the cumulative sum uf the hydrograph, used to adjust the largest value of the x-axis. It must be a value between zero and one. """ ...
[ "Plot", "the", "instanteneous", "unit", "hydrograph", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L210-L225
[ "def", "plot", "(", "self", ",", "threshold", "=", "None", ",", "*", "*", "kwargs", ")", ":", "delays", ",", "responses", "=", "self", ".", "delay_response_series", "pyplot", ".", "plot", "(", "delays", ",", "responses", ",", "*", "*", "kwargs", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IUH.moment1
The first time delay weighted statistical moment of the instantaneous unit hydrograph.
hydpy/auxs/iuhtools.py
def moment1(self): """The first time delay weighted statistical moment of the instantaneous unit hydrograph.""" delays, response = self.delay_response_series return statstools.calc_mean_time(delays, response)
def moment1(self): """The first time delay weighted statistical moment of the instantaneous unit hydrograph.""" delays, response = self.delay_response_series return statstools.calc_mean_time(delays, response)
[ "The", "first", "time", "delay", "weighted", "statistical", "moment", "of", "the", "instantaneous", "unit", "hydrograph", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L228-L232
[ "def", "moment1", "(", "self", ")", ":", "delays", ",", "response", "=", "self", ".", "delay_response_series", "return", "statstools", ".", "calc_mean_time", "(", "delays", ",", "response", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IUH.moment2
The second time delay weighted statistical momens of the instantaneous unit hydrograph.
hydpy/auxs/iuhtools.py
def moment2(self): """The second time delay weighted statistical momens of the instantaneous unit hydrograph.""" moment1 = self.moment1 delays, response = self.delay_response_series return statstools.calc_mean_time_deviation( delays, response, moment1)
def moment2(self): """The second time delay weighted statistical momens of the instantaneous unit hydrograph.""" moment1 = self.moment1 delays, response = self.delay_response_series return statstools.calc_mean_time_deviation( delays, response, moment1)
[ "The", "second", "time", "delay", "weighted", "statistical", "momens", "of", "the", "instantaneous", "unit", "hydrograph", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L235-L241
[ "def", "moment2", "(", "self", ")", ":", "moment1", "=", "self", ".", "moment1", "delays", ",", "response", "=", "self", ".", "delay_response_series", "return", "statstools", ".", "calc_mean_time_deviation", "(", "delays", ",", "response", ",", "moment1", ")" ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
TranslationDiffusionEquation.calc_secondary_parameters
Determine the values of the secondary parameters `a` and `b`.
hydpy/auxs/iuhtools.py
def calc_secondary_parameters(self): """Determine the values of the secondary parameters `a` and `b`.""" self.a = self.x/(2.*self.d**.5) self.b = self.u/(2.*self.d**.5)
def calc_secondary_parameters(self): """Determine the values of the secondary parameters `a` and `b`.""" self.a = self.x/(2.*self.d**.5) self.b = self.u/(2.*self.d**.5)
[ "Determine", "the", "values", "of", "the", "secondary", "parameters", "a", "and", "b", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L402-L405
[ "def", "calc_secondary_parameters", "(", "self", ")", ":", "self", ".", "a", "=", "self", ".", "x", "/", "(", "2.", "*", "self", ".", "d", "**", ".5", ")", "self", ".", "b", "=", "self", ".", "u", "/", "(", "2.", "*", "self", ".", "d", "**", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
LinearStorageCascade.calc_secondary_parameters
Determine the value of the secondary parameter `c`.
hydpy/auxs/iuhtools.py
def calc_secondary_parameters(self): """Determine the value of the secondary parameter `c`.""" self.c = 1./(self.k*special.gamma(self.n))
def calc_secondary_parameters(self): """Determine the value of the secondary parameter `c`.""" self.c = 1./(self.k*special.gamma(self.n))
[ "Determine", "the", "value", "of", "the", "secondary", "parameter", "c", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/iuhtools.py#L449-L451
[ "def", "calc_secondary_parameters", "(", "self", ")", ":", "self", ".", "c", "=", "1.", "/", "(", "self", ".", "k", "*", "special", ".", "gamma", "(", "self", ".", "n", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
WATS.trim
Trim values in accordance with :math:`WAeS \\leq PWMax \\cdot WATS`, or at least in accordance with if :math:`WATS \\geq 0`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(7) >>> pwmax(2.0) >>> states.waes = -1., 0., 1., -1., 5., 10., 20. >...
hydpy/models/lland/lland_states.py
def trim(self, lower=None, upper=None): """Trim values in accordance with :math:`WAeS \\leq PWMax \\cdot WATS`, or at least in accordance with if :math:`WATS \\geq 0`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(7) >>> pwmax(2.0) >>> sta...
def trim(self, lower=None, upper=None): """Trim values in accordance with :math:`WAeS \\leq PWMax \\cdot WATS`, or at least in accordance with if :math:`WATS \\geq 0`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(7) >>> pwmax(2.0) >>> sta...
[ "Trim", "values", "in", "accordance", "with", ":", "math", ":", "WAeS", "\\\\", "leq", "PWMax", "\\\\", "cdot", "WATS", "or", "at", "least", "in", "accordance", "with", "if", ":", "math", ":", "WATS", "\\\\", "geq", "0", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_states.py#L37-L55
[ "def", "trim", "(", "self", ",", "lower", "=", "None", ",", "upper", "=", "None", ")", ":", "pwmax", "=", "self", ".", "subseqs", ".", "seqs", ".", "model", ".", "parameters", ".", "control", ".", "pwmax", "waes", "=", "self", ".", "subseqs", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
WAeS.trim
Trim values in accordance with :math:`WAeS \\leq PWMax \\cdot WATS`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(7) >>> pwmax(2.) >>> states.wats = 0., 0., 0., 5., 5., 5., 5. >>> states.waes(-1., 0., 1., -1., 5., 10., 20.) >>> states.wae...
hydpy/models/lland/lland_states.py
def trim(self, lower=None, upper=None): """Trim values in accordance with :math:`WAeS \\leq PWMax \\cdot WATS`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(7) >>> pwmax(2.) >>> states.wats = 0., 0., 0., 5., 5., 5., 5. >>> states.waes(-1....
def trim(self, lower=None, upper=None): """Trim values in accordance with :math:`WAeS \\leq PWMax \\cdot WATS`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(7) >>> pwmax(2.) >>> states.wats = 0., 0., 0., 5., 5., 5., 5. >>> states.waes(-1....
[ "Trim", "values", "in", "accordance", "with", ":", "math", ":", "WAeS", "\\\\", "leq", "PWMax", "\\\\", "cdot", "WATS", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_states.py#L64-L80
[ "def", "trim", "(", "self", ",", "lower", "=", "None", ",", "upper", "=", "None", ")", ":", "pwmax", "=", "self", ".", "subseqs", ".", "seqs", ".", "model", ".", "parameters", ".", "control", ".", "pwmax", "wats", "=", "self", ".", "subseqs", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
BoWa.trim
Trim values in accordance with :math:`BoWa \\leq NFk`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(5) >>> nfk(200.) >>> states.bowa(-100.,0., 100., 200., 300.) >>> states.bowa bowa(0.0, 0.0, 100.0, 200.0, 200.0)
hydpy/models/lland/lland_states.py
def trim(self, lower=None, upper=None): """Trim values in accordance with :math:`BoWa \\leq NFk`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(5) >>> nfk(200.) >>> states.bowa(-100.,0., 100., 200., 300.) >>> states.bowa bowa(0.0, ...
def trim(self, lower=None, upper=None): """Trim values in accordance with :math:`BoWa \\leq NFk`. >>> from hydpy.models.lland import * >>> parameterstep('1d') >>> nhru(5) >>> nfk(200.) >>> states.bowa(-100.,0., 100., 200., 300.) >>> states.bowa bowa(0.0, ...
[ "Trim", "values", "in", "accordance", "with", ":", "math", ":", "BoWa", "\\\\", "leq", "NFk", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_states.py#L88-L101
[ "def", "trim", "(", "self", ",", "lower", "=", "None", ",", "upper", "=", "None", ")", ":", "if", "upper", "is", "None", ":", "upper", "=", "self", ".", "subseqs", ".", "seqs", ".", "model", ".", "parameters", ".", "control", ".", "nfk", "lland_seq...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
OpeningHoursEditView.post
Clean the data and save opening hours in the database. Old opening hours are purged before new ones are saved.
openinghours/views_edit.py
def post(self, request, pk): """ Clean the data and save opening hours in the database. Old opening hours are purged before new ones are saved. """ location = self.get_object() # open days, disabled widget data won't make it into request.POST present_prefixes = [x.split('...
def post(self, request, pk): """ Clean the data and save opening hours in the database. Old opening hours are purged before new ones are saved. """ location = self.get_object() # open days, disabled widget data won't make it into request.POST present_prefixes = [x.split('...
[ "Clean", "the", "data", "and", "save", "opening", "hours", "in", "the", "database", ".", "Old", "opening", "hours", "are", "purged", "before", "new", "ones", "are", "saved", "." ]
arteria/django-openinghours
python
https://github.com/arteria/django-openinghours/blob/6bad47509a14d65a3a5a08777455f4cc8b4961fa/openinghours/views_edit.py#L28-L53
[ "def", "post", "(", "self", ",", "request", ",", "pk", ")", ":", "location", "=", "self", ".", "get_object", "(", ")", "# open days, disabled widget data won't make it into request.POST", "present_prefixes", "=", "[", "x", ".", "split", "(", "'-'", ")", "[", "...
6bad47509a14d65a3a5a08777455f4cc8b4961fa
train
OpeningHoursEditView.get
Initialize the editing form 1. Build opening_hours, a lookup dictionary to populate the form slots: keys are day numbers, values are lists of opening hours for that day. 2. Build days, a list of days with 2 slot forms each. 3. Build form initials for the 2 slots padding/tr...
openinghours/views_edit.py
def get(self, request, pk): """ Initialize the editing form 1. Build opening_hours, a lookup dictionary to populate the form slots: keys are day numbers, values are lists of opening hours for that day. 2. Build days, a list of days with 2 slot forms each. 3. Build ...
def get(self, request, pk): """ Initialize the editing form 1. Build opening_hours, a lookup dictionary to populate the form slots: keys are day numbers, values are lists of opening hours for that day. 2. Build days, a list of days with 2 slot forms each. 3. Build ...
[ "Initialize", "the", "editing", "form" ]
arteria/django-openinghours
python
https://github.com/arteria/django-openinghours/blob/6bad47509a14d65a3a5a08777455f4cc8b4961fa/openinghours/views_edit.py#L55-L98
[ "def", "get", "(", "self", ",", "request", ",", "pk", ")", ":", "location", "=", "self", ".", "get_object", "(", ")", "two_sets", "=", "False", "closed", "=", "None", "opening_hours", "=", "{", "}", "for", "o", "in", "OpeningHours", ".", "objects", "...
6bad47509a14d65a3a5a08777455f4cc8b4961fa
train
calc_qjoints_v1
Apply the routing equation. Required derived parameters: |NmbSegments| |C1| |C2| |C3| Updated state sequence: |QJoints| Basic equation: :math:`Q_{space+1,time+1} = c1 \\cdot Q_{space,time+1} + c2 \\cdot Q_{space,time} + c3 \\cdot Q_{space+1,time}` ...
hydpy/models/hstream/hstream_model.py
def calc_qjoints_v1(self): """Apply the routing equation. Required derived parameters: |NmbSegments| |C1| |C2| |C3| Updated state sequence: |QJoints| Basic equation: :math:`Q_{space+1,time+1} = c1 \\cdot Q_{space,time+1} + c2 \\cdot Q_{space,time} + ...
def calc_qjoints_v1(self): """Apply the routing equation. Required derived parameters: |NmbSegments| |C1| |C2| |C3| Updated state sequence: |QJoints| Basic equation: :math:`Q_{space+1,time+1} = c1 \\cdot Q_{space,time+1} + c2 \\cdot Q_{space,time} + ...
[ "Apply", "the", "routing", "equation", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_model.py#L10-L104
[ "def", "calc_qjoints_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "new", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_new", "old", "=", "self", ".", "sequences", ".", "states", "....
1bc6a82cf30786521d86b36e27900c6717d3348d
train
pick_q_v1
Assign the actual value of the inlet sequence to the upper joint of the subreach upstream.
hydpy/models/hstream/hstream_model.py
def pick_q_v1(self): """Assign the actual value of the inlet sequence to the upper joint of the subreach upstream.""" inl = self.sequences.inlets.fastaccess new = self.sequences.states.fastaccess_new new.qjoints[0] = 0. for idx in range(inl.len_q): new.qjoints[0] += inl.q[idx][0]
def pick_q_v1(self): """Assign the actual value of the inlet sequence to the upper joint of the subreach upstream.""" inl = self.sequences.inlets.fastaccess new = self.sequences.states.fastaccess_new new.qjoints[0] = 0. for idx in range(inl.len_q): new.qjoints[0] += inl.q[idx][0]
[ "Assign", "the", "actual", "value", "of", "the", "inlet", "sequence", "to", "the", "upper", "joint", "of", "the", "subreach", "upstream", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_model.py#L107-L114
[ "def", "pick_q_v1", "(", "self", ")", ":", "inl", "=", "self", ".", "sequences", ".", "inlets", ".", "fastaccess", "new", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_new", "new", ".", "qjoints", "[", "0", "]", "=", "0.", "for", "id...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
pass_q_v1
Assing the actual value of the lower joint of of the subreach downstream to the outlet sequence.
hydpy/models/hstream/hstream_model.py
def pass_q_v1(self): """Assing the actual value of the lower joint of of the subreach downstream to the outlet sequence.""" der = self.parameters.derived.fastaccess new = self.sequences.states.fastaccess_new out = self.sequences.outlets.fastaccess out.q[0] += new.qjoints[der.nmbsegments]
def pass_q_v1(self): """Assing the actual value of the lower joint of of the subreach downstream to the outlet sequence.""" der = self.parameters.derived.fastaccess new = self.sequences.states.fastaccess_new out = self.sequences.outlets.fastaccess out.q[0] += new.qjoints[der.nmbsegments]
[ "Assing", "the", "actual", "value", "of", "the", "lower", "joint", "of", "of", "the", "subreach", "downstream", "to", "the", "outlet", "sequence", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_model.py#L117-L123
[ "def", "pass_q_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "new", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_new", "out", "=", "self", ".", "sequences", ".", "outlets", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
_detect_encoding
Return the default system encoding. If data is passed, try to decode the data with the default system encoding or from a short list of encoding types to test. Args: data - list of lists Returns: enc - system encoding
gtabview/dataio.py
def _detect_encoding(data=None): """Return the default system encoding. If data is passed, try to decode the data with the default system encoding or from a short list of encoding types to test. Args: data - list of lists Returns: enc - system encoding """ import locale ...
def _detect_encoding(data=None): """Return the default system encoding. If data is passed, try to decode the data with the default system encoding or from a short list of encoding types to test. Args: data - list of lists Returns: enc - system encoding """ import locale ...
[ "Return", "the", "default", "system", "encoding", ".", "If", "data", "is", "passed", "try", "to", "decode", "the", "data", "with", "the", "default", "system", "encoding", "or", "from", "a", "short", "list", "of", "encoding", "types", "to", "test", "." ]
TabViewer/gtabview
python
https://github.com/TabViewer/gtabview/blob/14ba391f0b225a1bf32d52b640a47b580f8b1b28/gtabview/dataio.py#L12-L37
[ "def", "_detect_encoding", "(", "data", "=", "None", ")", ":", "import", "locale", "enc_list", "=", "[", "'utf-8'", ",", "'latin-1'", ",", "'iso8859-1'", ",", "'iso8859-2'", ",", "'utf-16'", ",", "'cp720'", "]", "code", "=", "locale", ".", "getpreferredencod...
14ba391f0b225a1bf32d52b640a47b580f8b1b28
train
parameterstep
Define a parameter time step size within a parameter control file. Argument: * timestep(|Period|): Time step size. Function parameterstep should usually be be applied in a line immediately behind the model import. Defining the step size of time dependent parameters is a prerequisite to access a...
hydpy/core/importtools.py
def parameterstep(timestep=None): """Define a parameter time step size within a parameter control file. Argument: * timestep(|Period|): Time step size. Function parameterstep should usually be be applied in a line immediately behind the model import. Defining the step size of time dependent...
def parameterstep(timestep=None): """Define a parameter time step size within a parameter control file. Argument: * timestep(|Period|): Time step size. Function parameterstep should usually be be applied in a line immediately behind the model import. Defining the step size of time dependent...
[ "Define", "a", "parameter", "time", "step", "size", "within", "a", "parameter", "control", "file", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/importtools.py#L25-L92
[ "def", "parameterstep", "(", "timestep", "=", "None", ")", ":", "if", "timestep", "is", "not", "None", ":", "parametertools", ".", "Parameter", ".", "parameterstep", "(", "timestep", ")", "namespace", "=", "inspect", ".", "currentframe", "(", ")", ".", "f_...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
reverse_model_wildcard_import
Clear the local namespace from a model wildcard import. Calling this method should remove the critical imports into the local namespace due the last wildcard import of a certain application model. It is thought for securing the successive preperation of different types of models via wildcard imports. ...
hydpy/core/importtools.py
def reverse_model_wildcard_import(): """Clear the local namespace from a model wildcard import. Calling this method should remove the critical imports into the local namespace due the last wildcard import of a certain application model. It is thought for securing the successive preperation of different...
def reverse_model_wildcard_import(): """Clear the local namespace from a model wildcard import. Calling this method should remove the critical imports into the local namespace due the last wildcard import of a certain application model. It is thought for securing the successive preperation of different...
[ "Clear", "the", "local", "namespace", "from", "a", "model", "wildcard", "import", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/importtools.py#L95-L162
[ "def", "reverse_model_wildcard_import", "(", ")", ":", "namespace", "=", "inspect", ".", "currentframe", "(", ")", ".", "f_back", ".", "f_locals", "model", "=", "namespace", ".", "get", "(", "'model'", ")", "if", "model", "is", "not", "None", ":", "for", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
prepare_model
Prepare and return the model of the given module. In usual HydPy projects, each hydrological model instance is prepared in an individual control file. This allows for "polluting" the namespace with different model attributes. There is no danger of name conflicts, as long as no other (wildcard) import...
hydpy/core/importtools.py
def prepare_model(module: Union[types.ModuleType, str], timestep: PeriodABC.ConstrArg = None): """Prepare and return the model of the given module. In usual HydPy projects, each hydrological model instance is prepared in an individual control file. This allows for "polluting" the nam...
def prepare_model(module: Union[types.ModuleType, str], timestep: PeriodABC.ConstrArg = None): """Prepare and return the model of the given module. In usual HydPy projects, each hydrological model instance is prepared in an individual control file. This allows for "polluting" the nam...
[ "Prepare", "and", "return", "the", "model", "of", "the", "given", "module", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/importtools.py#L165-L221
[ "def", "prepare_model", "(", "module", ":", "Union", "[", "types", ".", "ModuleType", ",", "str", "]", ",", "timestep", ":", "PeriodABC", ".", "ConstrArg", "=", "None", ")", ":", "if", "timestep", "is", "not", "None", ":", "parametertools", ".", "Paramet...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
simulationstep
Define a simulation time step size for testing purposes within a parameter control file. Using |simulationstep| only affects the values of time dependent parameters, when `pub.timegrids.stepsize` is not defined. It thus has no influence on usual hydpy simulations at all. Use it just to check your...
hydpy/core/importtools.py
def simulationstep(timestep): """ Define a simulation time step size for testing purposes within a parameter control file. Using |simulationstep| only affects the values of time dependent parameters, when `pub.timegrids.stepsize` is not defined. It thus has no influence on usual hydpy simulations ...
def simulationstep(timestep): """ Define a simulation time step size for testing purposes within a parameter control file. Using |simulationstep| only affects the values of time dependent parameters, when `pub.timegrids.stepsize` is not defined. It thus has no influence on usual hydpy simulations ...
[ "Define", "a", "simulation", "time", "step", "size", "for", "testing", "purposes", "within", "a", "parameter", "control", "file", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/importtools.py#L224-L258
[ "def", "simulationstep", "(", "timestep", ")", ":", "if", "hydpy", ".", "pub", ".", "options", ".", "warnsimulationstep", ":", "warnings", ".", "warn", "(", "'Note that the applied function `simulationstep` is intended for '", "'testing purposes only. When doing a HydPy simu...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
controlcheck
Define the corresponding control file within a condition file. Function |controlcheck| serves similar purposes as function |parameterstep|. It is the reason why one can interactively access the state and/or the log sequences within condition files as `land_dill.py` of the example project `LahnH`. It ...
hydpy/core/importtools.py
def controlcheck(controldir='default', projectdir=None, controlfile=None): """Define the corresponding control file within a condition file. Function |controlcheck| serves similar purposes as function |parameterstep|. It is the reason why one can interactively access the state and/or the log sequences...
def controlcheck(controldir='default', projectdir=None, controlfile=None): """Define the corresponding control file within a condition file. Function |controlcheck| serves similar purposes as function |parameterstep|. It is the reason why one can interactively access the state and/or the log sequences...
[ "Define", "the", "corresponding", "control", "file", "within", "a", "condition", "file", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/importtools.py#L261-L357
[ "def", "controlcheck", "(", "controldir", "=", "'default'", ",", "projectdir", "=", "None", ",", "controlfile", "=", "None", ")", ":", "namespace", "=", "inspect", ".", "currentframe", "(", ")", ".", "f_back", ".", "f_locals", "model", "=", "namespace", "....
1bc6a82cf30786521d86b36e27900c6717d3348d
train
RelSoilArea.update
Update |RelSoilArea| based on |Area|, |ZoneArea|, and |ZoneType|. >>> from hydpy.models.hland import * >>> parameterstep('1d') >>> nmbzones(4) >>> zonetype(FIELD, FOREST, GLACIER, ILAKE) >>> area(100.0) >>> zonearea(10.0, 20.0, 30.0, 40.0) >>> derived.relsoilarea...
hydpy/models/hland/hland_derived.py
def update(self): """Update |RelSoilArea| based on |Area|, |ZoneArea|, and |ZoneType|. >>> from hydpy.models.hland import * >>> parameterstep('1d') >>> nmbzones(4) >>> zonetype(FIELD, FOREST, GLACIER, ILAKE) >>> area(100.0) >>> zonearea(10.0, 20.0, 30.0, 40.0) ...
def update(self): """Update |RelSoilArea| based on |Area|, |ZoneArea|, and |ZoneType|. >>> from hydpy.models.hland import * >>> parameterstep('1d') >>> nmbzones(4) >>> zonetype(FIELD, FOREST, GLACIER, ILAKE) >>> area(100.0) >>> zonearea(10.0, 20.0, 30.0, 40.0) ...
[ "Update", "|RelSoilArea|", "based", "on", "|Area|", "|ZoneArea|", "and", "|ZoneType|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_derived.py#L19-L36
[ "def", "update", "(", "self", ")", ":", "con", "=", "self", ".", "subpars", ".", "pars", ".", "control", "temp", "=", "con", ".", "zonearea", ".", "values", ".", "copy", "(", ")", "temp", "[", "con", ".", "zonetype", ".", "values", "==", "GLACIER",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
TTM.update
Update |TTM| based on :math:`TTM = TT+DTTM`. >>> from hydpy.models.hland import * >>> parameterstep('1d') >>> nmbzones(1) >>> zonetype(FIELD) >>> tt(1.0) >>> dttm(-2.0) >>> derived.ttm.update() >>> derived.ttm ttm(-1.0)
hydpy/models/hland/hland_derived.py
def update(self): """Update |TTM| based on :math:`TTM = TT+DTTM`. >>> from hydpy.models.hland import * >>> parameterstep('1d') >>> nmbzones(1) >>> zonetype(FIELD) >>> tt(1.0) >>> dttm(-2.0) >>> derived.ttm.update() >>> derived.ttm ttm(-1.0...
def update(self): """Update |TTM| based on :math:`TTM = TT+DTTM`. >>> from hydpy.models.hland import * >>> parameterstep('1d') >>> nmbzones(1) >>> zonetype(FIELD) >>> tt(1.0) >>> dttm(-2.0) >>> derived.ttm.update() >>> derived.ttm ttm(-1.0...
[ "Update", "|TTM|", "based", "on", ":", "math", ":", "TTM", "=", "TT", "+", "DTTM", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_derived.py#L117-L131
[ "def", "update", "(", "self", ")", ":", "con", "=", "self", ".", "subpars", ".", "pars", ".", "control", "self", "(", "con", ".", "tt", "+", "con", ".", "dttm", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
UH.update
Update |UH| based on |MaxBaz|. .. note:: This method also updates the shape of log sequence |QUH|. |MaxBaz| determines the end point of the triangle. A value of |MaxBaz| being not larger than the simulation step size is identical with applying no unit hydrograph at all: ...
hydpy/models/hland/hland_derived.py
def update(self): """Update |UH| based on |MaxBaz|. .. note:: This method also updates the shape of log sequence |QUH|. |MaxBaz| determines the end point of the triangle. A value of |MaxBaz| being not larger than the simulation step size is identical with applying...
def update(self): """Update |UH| based on |MaxBaz|. .. note:: This method also updates the shape of log sequence |QUH|. |MaxBaz| determines the end point of the triangle. A value of |MaxBaz| being not larger than the simulation step size is identical with applying...
[ "Update", "|UH|", "based", "on", "|MaxBaz|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hland/hland_derived.py#L168-L277
[ "def", "update", "(", "self", ")", ":", "maxbaz", "=", "self", ".", "subpars", ".", "pars", ".", "control", ".", "maxbaz", ".", "value", "quh", "=", "self", ".", "subpars", ".", "pars", ".", "model", ".", "sequences", ".", "logs", ".", "quh", "# De...
1bc6a82cf30786521d86b36e27900c6717d3348d