dpest.utils.phiratsuf#

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

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

PHIRATSUF specifies the objective function reduction ratio threshold for accepting a lambda adjustment during optimization. This function allows you to set PHIRATSUF to any float value between 0 and 1 (e.g., 0.3, 0.5, 1.0).

Required Arguments:#

  • pst_path (str):

    Path to the .pst file to modify

  • new_value (float):

    New value for PHIRATSUF (must be between 0.0 and 1.0)

Returns:#

  • None

Example:#

Set PHIRATSUF to 0.3

from dpest.utils import phiratsuf

phiratsuf("PEST_CONTROL.pst", 0.3)