iwfm.calib.read_overwrite_file

iwfm.calib.read_overwrite_file(overwrite_file, nnodes, nlay, param_types, verbose=False)[source]

Open and read an IWFM-2015 overwrite file or overwrite template file, and return the number of nodes, the scaling factors, and the parameter values.

From REAL2IGSM.F90 by Matt Tonkin, with modifications by others

Parameters:
  • overwrite_file (str) – Overwrite file name

  • nnodes (int) – Number of nodes with parameter values

  • nlat (int) – Number of model layers

  • param_types (list of strs) – Parameter type codes

  • verbose (bool, default=False) – Print to screen?

Returns:

  • nwrite (int) – number of parameter lines in overwrite file

  • factors (list) – multiplication factors

  • ctimes (list of strs) – time steps in DSS format

  • parvals_d (dict) – parameter values for each node and layer

  • in_lines (list) – each item is one line from the overwrite file