Parameter

Utilities to handle reading and writing PEST files

matk.pest_io.tpl_write(pardict, f, outflnm)

Write model input file using PEST template file

Parameters:
  • pardict (dict) – Dictionary of parameter values
  • f (str or file handle) – File handle or file name of PEST template file
  • outflnm (str) – Name of model input file to be written
matk.pest_io.read_par_files(*files)

Read in one or more PEST parameter files

Parameters:
  • files (str) – Strings of file names, glob characters are supported
  • output_format (str (‘numpy_array’ or ‘recarray’)) – Format to return in
Returns:

parameter names list and numpy array of parameters or recarray of parameters