dpest.utils.relparmax#

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

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

RELPARMAX specifies the maximum relative parameter change allowed during optimization. This function allows you to set RELPARMAX to any positive float value.

Required Arguments:#

  • pst_path (str):

    Path to the .pst file to modify

  • new_value (float):

    New value for RELPARMAX (must be greater than 0)

Returns:#

  • None

Example:#

Set RELPARMAX to 0.2:

from dpest.utils import relparmax

relparmax("PEST_CONTROL.pst", 0.2)