dpest.utils.facorig#

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

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

FACORIG specifies the minimum fraction of the original parameter value that can be used during optimization. This function allows you to set FACORIG to any float value between 0.0 and 1.0 (inclusive).

Required Arguments:#

  • pst_path (str):

    Path to the .pst file to modify

  • new_value (float):

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

Returns:#

  • None

Example:#

Set FACORIG to 01:

from dpest.utils import facorig

facorig("PEST_CONTROL.pst", 0.1)