Spline#

class Spline(cutoff=0.999, kind='quadratic', t=None, **kwargs)[source]#

Spline response function with parameters: A and a factor for every t.

Parameters
  • up (bool or None, optional) – indicates whether a positive stress will cause the head to go up (True, default) or down (False), if None the head can go both ways.

  • gain_scale_factor (float, optional) – the scale factor is used to set the initial value and the bounds of the gain parameter, computed as 1 / gain_scale_factor.

  • cutoff (float, optional) – proportion after which the step function is cut off. default is 0.999. this parameter has no influence for this response function.

  • kind (string, optional) – see scipy.interpolate.interp1d. Most useful for a smooth response function are ‘quadratic’ and ‘cubic’.

  • t (list, optional) – times at which the response function is defined.

Notes

The spline response function generates a response function from factors at t = 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 and 1024 days by default. This response function is more data-driven than existing response functions and has no physical background. Therefore, it can primarily be used to compare to other more physical response functions, that probably describe the groundwater system better.

Methods#

__init__

block

Method to return the block function.

gain

get_init_parameters

Get initial parameters and bounds.

get_t

Internal method to determine the times at which to evaluate the step response, from t=0.

get_tmax

Method to get the response time for a certain cutoff.

impulse

Method to return the impulse response function.

step

Method to return the step function.

to_dict

Method to export the response function to a dictionary.

update_rfunc_settings

Internal method to set the settings of the response function.