pyemu.Pst

class pyemu.Pst(filename, load=True, resfile=None)

All things PEST(++) control file

Parameters:
  • filename (str) – the name of the control file

  • load (bool, optional) – flag to load the control file. Default is True

  • resfile (str, optional) – corresponding residual file. If None, a residual file with the control file base name is sought. Default is None

Note

This class is the primary mechanism for dealing with PEST control files. Support is provided for constructing new control files as well as manipulating existing control files.

Example:

pst = pyemu.Pst("my.pst")
pst.control_data.noptmax = -1
pst.write("my_new.pst")