iwfm.calibΒΆ
Classes, methods and functions for interactions between IWFM model calibration.
Modules
|
Return the Bias between measured (targets) and simulated (predictions) values. |
Typer subapp for IWFM calibration utilities. |
|
Read a PEST .smp file, IWFM groundwater hydrograph file, and IWFM groundwater.dat file, and print a text file with the RMSE and bias of each well and of all observations. |
|
|
Return two lists. |
|
Convert diversion shortages from IWFM Stream Budget to the SMP file format for use by PEST. |
|
Replace each node's observation columns with their row-wise average. |
|
Transfer parameter values from pilot points to model nodes from fac2reali.f90 by M Tonkin. |
|
Find the index of the value in the first column of the array that is closest to the given value. |
|
Return the hydrograph file name. |
|
Unpack control variables from file_dict for one hydrograph type. |
|
Return hydrograph names. |
|
Read an observation sample bore (smp) file, and return a list of observation sites and a list of observation data as [site_id, days since start, date as datetime object]. |
|
Get simulated hydrograph values and return as a list of lists with row=timestep, 1st col=dates and remaining cols=sites, dates as datetime objects, everything else as numpy arrays of floats. |
|
Calculate vertical head differences and write them to a sample bore (smp) file. |
|
Read the file with paired locations for calculation of vertical head differences and the observation ID of the head difference. |
|
Compare lists of sites and return the sites from each list that are not in the other list. |
|
Interpolate per-layer nodal values to the point (x, y) using inverse distance weighting over the nodes of the element containing the point. |
|
Return the simulated value that corresponds to the observation date. |
|
Interpolate model output to match the times and locations of calibration observations and put them into a PEST-compatible smp-formatted output file. |
|
Extract the simulation time from SimulationMessages.out and write to a file as the number of seconds to execute the model. |
|
Perform spatial interpolation using kriging factors from grid A to grid B. |
|
Read an IWFM Budget-format output file and log-transform the values. |
|
Read a PEST SMP-format file, log-transform the observation values, and write to a SMP-format file. |
|
Return observation bore sample info for sites in sim_sites. |
|
Implement krige function to create new parameter values. |
Read parameter values for model from an IWFM overwrite file and write them to an IWFM Groundwater file. |
|
|
Read a PEST .res file, and print a text file with the RMSE and bias of each observation site. |
Use inverse-distance weighting to calculate factors to translate parameter values from pilot points to model nodes, and write to a file for use by PEST. |
|
|
Convert the ppk2fac file to the fac2fac file. |
Read an IWFM Groundwater file and return the number of nodes, the scaling factors, and the parameter values. |
|
|
Read observation well information from the Groundwater.dat file and return a dictionary of groundwater hydrograph info and gwhyd_sim columns. |
|
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. |
|
Subroutine read_settings reads the settings.fig file located in the current directory. |
|
Read pilot point parameters and write to IWFM Overwrite.dat file. |
|
Read a PEST .smp file, IWFM groundwater hydrograph file, and IWFM groundwater.dat file, and print a text file with the RMSE and bias of each well and of all observations. |
|
Return the RMSE between measured (targets) and simulated (predictions) values. |
|
Set up the matrix to transform cartesian coordinates to coordinates accounting for angles and anisotropy (from setrot() by C. |
|
Select simulated values at sites with observed values, and return an array of simulated values for these sites and a corresponding list of dates for the simulated values. |
|
Calculate the simulated value for a given date from a simulated hydrograph. |
Calculate simulated equivalents for observations and difference between them. |
|
|
Process text lines from a sample bore (smp) file (smp_list) into observation data sets of [site_id, datetime object, observed value]. |
|
Read groundwater parameters from SimulationMessages.out file, replace parameters in template groundwater.dat file, and write to a new groundwater.dat file. |
|
Read an smp file and average the observations values for each observation ID. |
Read an smp file and reformat. |
|
|
Read observed values smp file into list of lists obs. |
|
Convert stream-groundwater flows from IWFM Stream Budget to the SMP file format for use by PEST. |
|
Write smp and ins file lines for one observation. |
|
Read a file of paired observation well locations for groundwater head differences and a file of head observations. |
|
Take a list of observation IDs and filename obs_file, and write them to an output files (default output file name missing.tmp). |
|
Receive a list of parameters and write them to an IWFM-2015 overwrite file. |
|
Write simulated and observed values for one observation well to a text file. |
|
Write the RMSE and Bias values plus well info (name,x,y,layer) for all observation wells to a text file. |