Skip to content

Defining and Generating Calibration Plots and Statistics

This page follows EFDC+ Explorer's calibration tool from "here is a file of measurements" to a folder of plot images, extracted series, and an error statistics report. It covers the workflow as a whole. Each comparison type also has its own page in this section, and the plot windows' controls are described in Time Series Plots.

The workflow has four stages, and all of them are saved with the model: a model reopened months later generates the same plots from the same button.

DEFINE EXTRACT PLOT REPORT
stations → pair observed → one chart per → error statistics
(grid + dialog) with model group, styled table (HTM/TXT)
output by a layout file
─────────── ─────────── ─────────── ───────────
EFDC.EE EE_*.OUT *.cts/.ccp/… calib*_stats.htm
→ #calib_export\*.dat → #calib_plots\*.png → #calib_stats\

A station is the unit of definition: a location, a parameter, a layer, and a file of observations. A group is the unit of plotting: stations sharing a group number land on one chart page. A comparison type decides which dialog defines it, which window plots it, and which layout file styles it.

The comparison type drives everything: the station list, the define dialog, the plot window, the layout file extension, and the report name. Each define dialog's title starts with Model Calibration:.

Code Comparison Define dialog Layout Report file
TS Time Series Comparison Time Series Comparisons .cts calibTS_stats
CP Correlation Plot Time Series Comparisons (shared) .ccp calibCP_stats
VP Vertical Profile Comparison Vertical Profile Comparisons .cvp calibVP_stats
HF High Frequency Comparison High Frequency Comparisons .chf calibHF_stats
FX Flux (Transect) Comparison Flux Line Time Series Comparisons .cfx calibFX_stats
CR Cruise Cruise Plot Comparisons .crl line / .crp profile calibCR_stats, calibCRP_stats

Two pairs share a definition but not a presentation:

  • Correlation reuses the time series stations. There is no separate correlation station list: ticking Correlation plots the time series stations as modeled-vs-observed scatter, with its own .ccp layout. In Auto Generate it produces plots only; the extraction and the report come from the time series run.
  • Cruise plots in two windows. The same cruise stations draw a line plot over time and a profile plot. One comparison type, two layouts, two reports.

Everything hangs off the Output node of the Model Control tree:

Node Right-click item Opens
A calibration type Define Calibration Series That type's define dialog
A calibration type Calculate Error Statistics The Error Statistics Report for that type
A calibration type The plot items The plot window for the whole type, paged by group
A calibration type Auto Generate Data, Plots & Statistics Auto Generate Options, with that type ticked
Output Auto Generate Data, Plots & Statistics Auto Generate Options, with every type offered
A station on the 2DH map The plot item A plot of that one station

The plot items appear once a type has stations: View Time-Series Plots and View Correlation Plots for time series, View Time-Series Plots for high frequency and flux, View Vertical Profile Plots for vertical profiles, and View Cruise Line Plots and View Cruise Profile Plots for cruises.

The define dialog is also the hub: its Time-Series Plots, Correlation Plots, and Error Statistics buttons open the same windows without closing the dialog, which is how a station list is refined.

The lower half of each define dialog has one row per station:

Column Meaning
Name Station label; it goes into the plot title and the output file names
X (m), Y (m) Location in model coordinates; EE finds the cell. Moving a station clears its cell and its loaded model result
Layer Layer selector, see Layer options
H (m) The depth or elevation that the fixed-depth and fixed-elevation layer options use
Param Parameter and class to compare
Data File The observation file
Filter Signed hours: positive for a moving average, negative for an FFT low-pass filter, 0 for none
Group Stations sharing a number plot on one page
Use Unticked stations are skipped by plots, exports, and statistics alike

The toolbar copies and pastes a column, inserts a row (a copy of the selected row above it, or a new row at the end when none is selected), deletes rows, imports and exports a station list, and shows station information. Import and export use the same station format as EFDC.EE, so a station set can be carried between models.

Double-clicking a row opens Station Information, where you set what the grid cannot show: the parameter group, class, and unit options; SEDZLJ, toxics, water quality, sediment diagenesis, irradiance, and DO-derived options (including the anoxic-volume DO cutoff); ice inclusion; the flux line and its multiplier (flux comparisons); and the filter type as a drop-down rather than a sign.

The Layer value is a selector, not only a layer number:

Layer Meaning
> 0 That layer number
0 Depth-averaged
-1 Min / Average / Max (three series)
-2 Fixed depth, set in H
-3 Fixed elevation, set in H
-4 Withdrawal/return boundary condition layer weighting

A stack of fixed-depth rows at one location (the same X and Y, Layer -2, H stepping 0, 1, 2 … m) is the usual way to build a depth-resolved time series comparison out of time series stations.

Group numbers decide pagination and layout lookup: a saved layout keeps one section per group number. Right-clicking the Group column offers Renumber Groups (1, 2, 3 … down the grid, closing gaps, keeping shared groups together) and Reset Groups to One per Station. Both warn first when the model loads saved layouts, because a group whose number changes opens with whatever layout was saved under its new number.

Grouping doesn't apply to vertical profile and cruise comparisons, which always put one station on each plot. The filter is ignored by correlation, vertical profile, and cruise comparisons.

EE reads observation files tolerantly (see also Data Format B-6). Comment lines start with *, $, or !, and $ lines may carry directives:

Directive Effect
$BaseDate= / $Base_Date= The date the file's day numbers count from (date part only)
$NoData= Value treated as missing
$DataColumns= Values per row
$TimeFormat= A fixed-width date and time format for the time field at the start of each row
$DataRows= Row count; also turns off the block headers described below

Data rows are split on whitespace or commas, and the time is read in one of four forms:

  • a fixed-width field, when the file sets $TimeFormat=
  • a date and a time as two fields, the second containing a colon
  • a single date field containing / or two -
  • otherwise, a decimal day number from the file's base date

Times are always converted to the series' own base date, not the file's.

A line of <count> <name> starts a block of count rows and names the series, but only when what follows the count is not a number and the file does not set $DataRows=. Otherwise an exported day number of 1 would look exactly like a block header.

Everything above is saved in the model's EFDC.EE file: one block per station, plus the time options, the generate options, the error statistics choices, the five output folders, and the layout file paths.

Layout paths are stored relative to the EFDC.EE folder where possible, so a model copied together with its layouts still finds them.

The Time Options and General Options above the grid govern how the modeled series is produced and how it is matched to the observations.

Control Effect
Start / Stop (days) The comparison window, in model days; the date boxes mirror them
Entire Model / Entire Data Series Ignore the window on one side or the other
Julian Date Offset (days) Days added to the observed times to put them on the model clock
Time Tolerance (minutes) How far apart a model point and a data point may be and still pair
Split Time Series, Time Interval (days) Cut the comparison into successive windows of that many days, one plot each
Model Results Label / Data Label Series names in titles and legends
Reload Model Output Re-read the output from disk instead of reusing what is in memory
Automatically Export ASCII Model Extraction Write the paired series to .dat files as they are built
Combine Model and Data One .dat per station holding both columns, instead of separate files
Use Existing Model Extractions Read the modeled series back from previously written .dat files, and never open the model output at all

EE extracts the modeled series from the model output files (EE_WS.OUT, EE_VEL.OUT, EE_WC.OUT, EE_WQ.OUT, …) at each station's cell and layer, reads the observations from the station's data file, and interpolates the two onto a common time base before pairing them.

Use Existing Model Extractions is the offline path. It is the one case where a model with extractions but no output still generates, so Auto Generate skips its "no model output" check when it is ticked. Because the exported file names carry the same suffix the plots do, a run that writes extractions and a later run that reads them back agree on the name.

A plot window's styling (axes, series colors, titles, window size) is worth keeping. Save Layout in the plot window writes a layout file; the define dialog and Auto Generate name the file each type loads when it exists.

  • One file per comparison type, one section per group number.
  • The define dialog shows a missing layout path on a pink background, and so does Auto Generate, so a path that has gone stale is visible before anything is generated.
  • Layout options choose what a layout brings with it: data settings, titles, and Y-axes. Auto Generate applies the options saved with the model.
  • Titles that were generated (not typed) are regenerated for each station, so one layout serves a whole station list without stamping the first station's name on every page.

Open the plot window from the define dialog or the tree, page through the groups, adjust, and use the window's own export. This is the loop for building a layout.

Auto Generate Options is the batch path. Its Calibration tab ticks which types to generate (a type with no stations is disabled), names each type's layout file, and sets:

Option What it produces
Generate Defined Plots One image per group in the plots folder
Export Model Series One .dat per station in the export folder
└ Combine Model and Data Both columns in one file instead of two
Use Existing Model Extractions Read the series back instead of extracting
Report Calibration Statistics One report per type in the statistics folder
Automatically Generate Saved Plots (Saved Plots tab) The saved 2DH, 3D, 2DV, and longitudinal profile plots
Exported Image Type .png, and so on
Exported File Suffix Appended to every generated plot and extraction name, so one model's runs can be kept side by side
HTM Report File / ASCII Report File Report format

Generate reloads the model output when Reload Data & Model Results is ticked or no output is loaded yet. It refuses to run when there is no model output, unless Use Existing Model Extractions is ticked. It then generates each ticked type and reports what it wrote and where.

Two ordering details are worth knowing:

  • Correlation runs after Time Series, and the cruise profile after the cruise line, each skipping the reload the first of the pair already did.
  • The node the dialog was opened from only decides which box starts ticked. What is ticked is what gets generated.

Calibration has five output folder settings, which default to three folders under the model's folder:

Default folder Holds
#calib_plots\ Generated images, and the default home for layout files
#calib_export\ Extracted and combined .dat series, both written there and read back from there
#calib_stats\ Statistics reports

Use Default Folders puts them all back. Each folder has a three-state marker: green for the default, amber for a custom folder still inside the model's own folder, red for one outside it, which could otherwise silently write this model's results into another run's folder.

Reports opened interactively are the exception: the Error Statistics Report opened from the tree saves to #reports\calib<Type>_stats.htm by default, not to the statistics folder.

File names follow this pattern:

<Type><ID>_<Name>_<Parameter><Suffix>.<ext>
e.g. TS004_Mid-Lake_Temperature_run12.png and the matching .dat

<Type> is the comparison code (TS, CP, HF, VP, FX, CR) and <ID> is the station ID as three digits. A correlation plot's image is named CP… but its extraction TS…, because the two share one extraction.

EE can report 28 statistics:

Group Statistics
Span Starting / Ending date-time, # Pairs
Distribution Mean, Min, Max, Std Dev — observed and predicted
Bias ME (mean bias error), RME (percent bias)
Magnitude MAE, MaxAE, RMSE, RRMSE, SRMSE, CRMSE
Skill NSE, RSR, KGE, COE, IOA
Regression R², R, slope A, intercept B

By default the report shows the starting and ending date-time, the number of pairs, the data and model averages, RMSE, and NSE. The first three are always reported: their check boxes are disabled.

Statistics are computed for each station over the comparison window. Vertical profiles pair every layer of each profile rather than one layer over time, so a vertical profile row covers the whole water column, and its dates are the span of the paired profiles.

The Error Statistics Report shows the table and lets you save, print, copy, and edit it. Select Error Statistics to Report picks the columns and sets the value and date formats. The same report is used interactively (from the tree, or the define dialog's Error Statistics button) and by Auto Generate, which writes calib<Type>_stats.htm or .txt, with the plot suffix, into the statistics folder.

The report titles itself by type ("Time Series Statistics", "Vertical Profile Statistics", …).

Taylor diagrams are separate from all of the above. With a calibration time series plot active, Taylor Diagram on the main menu takes that window's series, asks you to choose the reference series, and draws the diagram in its own window, which saves its settings to its own .taylor file. Taylor diagrams are not part of Auto Generate, and they don't use the error statistics settings.

  1. A station's ID is its position when the model was loaded, not its row number. Plots follow the current row order; file names use the ID. Inserted copies duplicate it.
  2. Unticking Use removes a station from everything: plots, extractions, and statistics, not just the plot.
  3. Moving a station clears its cell and loaded result, by design. A copied-then-moved station would otherwise keep plotting the source station's cell.
  4. Renumbering groups re-keys the layout sections. Save the layouts again afterwards.
  5. The cruise line and cruise profile plots share one layout setting, and the profile layout wins when the model is opened.
  6. The suffix rides on both the plot and the extraction name, which is what lets Use Existing Model Extractions find what a previous run wrote. Change it between the two runs and the second finds nothing.
  7. A folder left at another run's path overwrites that run's output. The dialogs flag a non-default path for this reason.
  8. The Filter value carries the filter method in its sign (positive for a moving average, negative for an FFT low-pass filter) everywhere except Station Information, which shows it as a drop-down.
  9. A moving-average window shorter than the output interval yields no points, and the plot comes up empty.
  10. EFDC.EE is a UTF-16 file, and EE matches its key names exactly. If you edit it by hand, keep the encoding and the key names.