dpest.utils.rlambda1#

dpest.utils.rlambda1.rlambda1(pst_path, new_value)[source]#

Updates the RLAMBDA1 parameter in a PEST control (.pst) file.

The RLAMBDA1 parameter specifies the initial Marquardt lambda value for the optimization process. This function allows you to set RLAMBDA1 to any non-negative float value (e.g., 10.0, 1.0, 0.01).

Required Arguments:#

  • pst_path (str):

    Path to the .pst PEST control file whose RLAMBDA1 value you wish to update.

  • new_value (float):

    The new value for the RLAMBDA1 parameter (must be ≥ 0).

Returns:#

  • None

Example:#

Set RLAMBDA1 to 5.0:

from dpest.utils import rlambda1

pst_file_path = 'PEST_CONTROL.pst'
rlambda1(pst_file_path, 5.0)