Linkages
For post-processing model results, right mouse click to Linkages to adjust the setting of the model as Figure 1.
The EFDC Model Linkages tab provides the user with access to three sub-tabs: ; EFDC+ Explorer Linkage; Legacy Output; and Show as Figure 2. Each of which is described in detail in the next sections.
EFDC+ Explorer Linkage
Section titled “EFDC+ Explorer Linkage”The EFDC Model Linkages tab is shown in Figure 1.
- In the EFDC+ Explorer Linkage sub-tab, check Link EFDC Results to EFDC+ Explorer checkbox in order to post-process model results (Figure 1).
- The Linkage Output Frequency is used to determine how often EFDC will write the output. This is then multiplied by the Output Interval to determine how often various model results will be written. For example, if the Linkage Output Frequency is 60 minutes, then an Output interval of 6 will lead to model results being written every 6 hours for that parameter.
- Which data to output is selected in the Primary Model Results Linkage Options frame, with the sub-item checkboxes, such as Velocities, Water Column. Water Surface must be turned on for EFDC+ Explorer to post-process any of the model results as shown in Figure 1.
- If simulating water quality with the full sediment diagenesis option turned on, EFDC+ Explorer can display the spatial and temporal sediment fluxes and concentrations if the user enables the Sediment Diagenesis checkbox. Because the sediment processes are slow, as compared to water column processes, the user has the option to output the diagenesis data at a slower frequency as described above.
- If simulating sediment transport with the maximum number of bed layers > 1, EFDC+ can write the sediment bed properties by layer. Given that the sediment bed dynamics are generally slow relative to the water column dynamics, the user may want to set the sediment bed layer data output interval to a number greater than 1. For example, if the user is writing the water column data every hour but the user only wants the sediment bed date every day, the user would specify an output interval of 24 to tell EFDC+ to output the sediment data only every 24th water column snapshot.
- The user may also manually adjust the output interval for the Rooted Plant & Epiphyte Model when applicable.
- High-Frequency Dates are described under Model Analysis.
Legacy Output
Section titled “Legacy Output”The EFDC Generated Time Series frame is shown in Figure 1. It is not recommended to be used as EFDC+ Explorer generates its own time series, but the option is available to users.
WASP Linkage
Section titled “WASP Linkage”The Water Quality Analysis Simulation Program (WASP) is a platform that helps users interpret and predict water quality responses to natural phenomena. From EEMS10.4, the WASP Linkage has been developed, which allows the creation of a hydrodynamic linkage file (*.HYD) from EFDC models. The hydrodynamic linkage file contains transport information such as segments volume, water depth, and velocity, and is used as an input file to the WASP water quality model.
From the Model Control form, go to the Timing/Linkage tab, as shown in Figure 1. RMC on Linkages sub-tab, the EFDC Model Linkages form will be displayed as shown in Figure 2. Go to the WASP Linkage tab, select the WASP 7/8 radial button under Linkage to Water Quality Models frame. Type in a value, in this case 10, for Number of Minutes to Average per Linkage Step box to set the output frequency of the linkage file. The WASP linkage output will be saved per 10 minutes. Click OK button to save the setting.
Detailed guidance on how to create the linkage file and run WASP is provided here.
NetCDF Output
Section titled “NetCDF Output”According to the Unidata website the Network Common Data Form (NetCDF) software was originally intended to create, access, and share array-oriented data in a form that is self-describing and portable. These deal with a variety of data types that encompass single-point observations, time series, regularly-spaced grids, and satellite or radar images.
The NetCDF software functions as an input/output (I/O) library that can be accessed from many scientific data processing and GIS software packages and different programming languages, such as C, FORTRAN, Fortran 90, C++, Java, Perl, Python, MATLAB, and other languages for which a NetCDF library is available. A NetCDF library stores and retrieves data in self-describing, machine-independent datasets, which are described on the Unidata website. The NetCDF user guide provides details on how NetCDF datasets can contain multidimensional, named variables (of various types that include integers, reals, characters, bytes, etc.), and each variable may be accompanied by ancillary data, such as units of measure or descriptive text. The interface includes a method for appending data to existing NetCDF datasets in prescribed ways, functionality that is not unlike a (fixed length) record structure. However, the NetCDF library also allows direct-access storage and retrieval of data by variable name and index and therefore is useful only for disk-resident (or memory-resident) datasets. You can learn about NetCDF compression here.
NetCDF is designed to:
• Facilitate the use of common datasets by distinct applications.
• Permit datasets to be transported between or shared by dissimilar computers transparently, that is, without translation.
• Reduce the programming effort usually spent interpreting formats.
• Reduce errors arising from misinterpreting data and ancillary data.
• Facilitate using the output from one application as input to another.
• Establish an interface standard that simplifies the design of new software for accessing geoscience data.
There is now an unstructured (or flexible mesh) model data format for NetCDF called UGRID. From the EEMS10.4 version, DSI enhanced the NetCDF capabilities of the EFDC+ Explorer Modeling System (EEMS), so that it is able to handle the UGRID format. Although UGRID is designed for unstructured grids, the advantage for EFDC+ and structured grids is that it writes output for only the active grid cells, rather than the full I,J grid required by web map services for displaying environmental data such as ncWMS. Furthermore, the structure of the output variables is clearly defined, along with the variable name and units. This allows users to easily process EFDC+ output using third-party software. UGRID is also based on the CF Metadata Conventions, but this approach currently assumes that the horizontal topology should be determined from the cell index of the EFDC+ grid rather than the I,J indices of the structured grid. The UGRID approach adds conventions to specify the topology for unstructured (e.g., triangular) grids.
UGRID also provides powerful new capabilities for display on third-party web tools, some of which are listed here. This will provide an enhanced user experience when accessing real-time models using a WebGIS application.
EFDC+ can currently write the native output in NetCDF-CF format for Windows and Linux. EFDC+ Explorer (the pre-and post-processor for EFDC+) can also convert the binary files output by EFDC+ (*.OUT) to netCDF.nc files, including the derived water quality parameters. EFDC+ currently exports 44 parameters to NetCDF format. This allows EFDC+ output to be read and displayed on web servers. It should be noted that while the display order of some dimensions (i.e. TIME, KC, CELL) in *.nc output files exported from EFDC+ Explorer may differ from that obtained directly from EFDC+, the values of variables are not impacted and retrieved correctly with reference to their descriptive data.
EFDC+ exports the NetCDF files at the same interval that it produces the model linkages files, which is set in the tab for Timing and Linkage | Linkage | NetCDF.
The main configuration for NetCDF output is in the EFDC+ Explorer Linkage | NetCDF tabs as shown in Figure 1. Here the user can turn on netCDF output by checking the Output to NetCDF checkbox. The user may select the level at which the NetCDF data is compressed with the Deflate Level setting. This can range from 1, no compression, to 9 for maximum compression, but is recommended by Unidata to be set to 2 for the best balance between file size and speed.
The user may also select to Rotate Velocity. If this option is checked, the velocity field is rotated to true east and true north and if not checked then there is no rotation to true east and true north.
Then, the user can select which parameters they want to output from the water column or the sediment bed by checking the box in Output Parameters frame. Users can select more detailed components when writing to a NetCDF file. Some options for the sediment bed are not yet enabled and will be added to EE in future releases.
In the File Creation frame, the user is given the option of EFDC+ generating a Single File, or *Multiple Daily Files.*The Multiple Daily Files option provides one netCDF file for each day (24 hours) of model output. NetCDF files (.nc files) are placed in the #output folder along with the EFDC output. The snapshots for the NetCDF files are determined by the setting for the interval for the EE linkage file. The user can change the snapshot interval by changing the EE linkage options. It is recommended that the linkage frequency should be 10 minutes or more for correct display in ArcGIS tools. After setting these options, the user should save their model and run EFDC+, which will then export the NetCDF .nc files to the #output folder. With release of EEMS11.3, EFDC+ writes the LPT NetCDF output to a separate .nc file. The output frequency for the drifters in NetCDF is based on the LPT output frequency.
Displaying NetCDF Output
Section titled “Displaying NetCDF Output”There are a number of options available to the user for displaying netCDF output, such as using ArcGIS, or using web-based tools such as ncWMS. Some of these are outlined here to help the user to become familiar with these tools.
1) Convert to Text
Section titled “1) Convert to Text”To convert the .nc file to a text file, the user can download the ncdump.exe tool and follow step-by-step instructions in Unidata.
2) Using ArcMap
Section titled “2) Using ArcMap”A detailed guidance video for visualizing NetCDF output using ArcMap has been prepared by DSI and made available here: https://www.youtube.com/watch?v=vgT7dN4UK44
The basic steps involve selecting the ArcToolbox > Multidimensional Tools > Make NetCDF Feature Layer.
3) Using NCWMS
Section titled “3) Using NCWMS”ncWMS is a Web Map Service for geospatial data that are stored in CF-compliant NetCDF files. The intention is to create a WMS that requires minimal configuration: the source data files should already contain most of the necessary metadata. ncWMS is developed and maintained by the Reading e-Science Centre at the University of Reading, UK. The latest version is 1.3, released in August 2014.
ncWMS is implemented in Java as a web application. To install ncWMS you simply place the WAR (Web ARchive) file in your application server of choice (e.g. Tomcat).
ncWMS relies heavily on the Java NetCDF interface from Unidata. This library does a lot of the work of metadata and data extraction. In particular the GridDatatype class is frequently used to provide a high-level interface to gridded geospatial NetCDF files. The library will also read from NetCDF files on HTTP servers and from OPeNDAP servers. From http://godiva.reading.ac.uk/ncWMS2/Godiva3.html
ncWMS loads native netCDF files and displays them on a web browser. Making the output the same as EE10 would require further adjustment to the tool. For the purposes of this demonstration, the basic display of the output is shown in the next section.
4) Using Ocean Data View
Section titled “4) Using Ocean Data View”Ocean Data View (ODV) is a software package for the interactive exploration, analysis, and visualization of oceanographic and other geo-referenced profile, time-series, trajectory, or sequence data.
ODV supports the netCDF format and lets you explore and visualize CF, COARDS, GDT, and CDC-compliant netCDF datasets. This works with netCDF files on your local machine as well as with remote netCDF files served by an OPeNDAP server.
5) Using Python script
Section titled “5) Using Python script”Python script can be used to read the netCDF output of the model. For example, a model with 1000 horizontal grids, and 5 layers, and the model simulated with 1-hour output frequency for 10 days. So each day will have 25-time steps → there are 1000*5*(24*10 + 1) = 1,205,000 lines totally. In which of the total lines there are lines with NaN values (dry cells), they should be removed. The User can contact us to get the script.
Examples of Model Output
Section titled “Examples of Model Output”To demonstrate the netCDF output is consistent with the data viewed in EE, a number of comparisons have been made for different models. Examples of an output from the West Lake WQ model in EE, ArcGIS, and ncWMS are shown in Figure 3, Figure 4 and Figure 5 respectively. Note that the West Lake model may be downloaded from the EE website.
Array Out
Section titled “Array Out”From the Model Control form, navigate to the Timing/Linkage tab, as shown in Figure 1. Right-click the Linkages sub-tab; the EFDC+ Model Linkages form will be displayed. Select the Array Out tab, as shown in Figure 2.
Enable the Write EE_Array.out Linkage File (Optional) checkbox. Once this option is selected, the checkboxes in the Output Parameters section become available. You can then choose the parameters that EFDC+ will write to the output file (EE_ARRAYS.OUT) in the #output folder after the model simulation finishes.
For example, the available output parameters for Thermal quantities include:
- Solar radiation: RADTOP, RADBOT
- Long wave solar radiation heat flux: HBLW
- Latent heat flux: HBCV
- Sensible heat flux: HBEV
Click OK to close the form. The model is now configured and ready for execution with the appropriate EFDC+ executable.
Once the model run is complete, the output model in the EE_Array.out file can be visualized in EE using a variety of display options. Available viewing includes 2DH, time series, vertical profiles, 2DV, and longitudinal profiles. Examples are provided in Figures 3 to 6.
During the execution of a model, EE supports the configuration of the run screen to display specific parameter information for a specific cell. This is configured in the Show tab under EFDC Model Linkages as shown in Figure 1. Users can select the parameter of interest from the drop-down menu and choose a specific cell by indicating the cell indices L, I, and J. When L the index has been changed the corresponding I and J indices are updated automatically. Users can also choose the preferred interval to display this result in the Print Interval field.
An example of the command window for EFDC+ is shown in Figure 2 below. A description of the parameters displayed in the EFDC+ command window is provided in Table 1. Figure 3 shows the model run time report that is displayed when the simulation is successfully completed. Table 1 also includes descriptions of the various times that EFDC+ reports.
Table 1. Parameters displayed in the Run Time Command Window.
| Parameter | Description |
|---|---|
| TIME IN DAYS | time for model simulation (Julian Days) |
| TIME STEP SEC | model time step (seconds) |
| ELEV SURF CM | water surface elevation (centimeters) |
| VEL E SURF CM/S | velocity in the east direction at the water surface (centimeters/second) |
| VEL N SURF CM/S | velocity in the north direction at the water surface (centimeters/second) |
| DYE SUR PPM | dye concentration at the water surface (part per million) |
| AV SURF CM/S | depth normalized vertical turbulent eddy viscosity at the water surface (centimeters / second) (EFDC+ multiplies by depth to report) |
| AB SURF CM/S | depth normalized vertical molecular diffusivity at the water surface (centimeters / second) (EFDC+ multiplies by depth to report) |
| VEL E BOTT CM/S | velocity in the east direction at the bottom (centimeters/second) |
| VEL N BOTT CM/S | velocity in the north direction at the bottom (centimeters/second) |
| DYE BOTT PPM | dye concentration at the bottom (parts per million) |
| AV BOTT CM/S | depth normalized vertical turbulent eddy viscosity at the bottom (centimeters/second) (EFDC+ multiplies by depth to report) |
| LMIN | L index of the cell that requires the minimum timestep size |
| T HDMT ONLY | time for hydrodynamic and mass transport solution routine |
| T SSEDTOX | time for toxic sediment routine |
| T CALPUV | time for external mode solver for flow routine |
| T CONG GRAD | time for conjugate gradient routine |
| T EXPLICIT | time for EXPLICIT routine |
| T CALC AV | time for AV calculations routine |
| T CALC UVW | time for internal mode solver routine |
| T TURB QQQ | time for turbulence routine |
| T T&B SHEAR | time for T&B shear routine |
| T HEAT PRCS | time for heat process routine |
| T PART TRK | time for particle tracking routine |
| T ADV TRANSP | time for advective transport routine |
| T HORIZ DIF | time for horizontal diffusivity routine |
| T VERT DFUSN | time for vertical diffusion routine |
| WQ KINETICS | time for water quality kinetics routine |
| WQ RPEM | time for rooted plant and epiphyte routine for water quality |
| WQ DIAGEN | time for diagenesis routine for water quality |
| NOT USED | vacant for future use |
| MPI EE GATH | time for MPI EE gathering routine |
| MPI COMMUNIC | time for MPI communications routine |
| CPU USER | time for CPU USER routine |
| CPU SYSTEM | time for CPU SYSTEM routine |
| ELAPSED TIME | time elapsed for the model run |
| CPU TIME | time for CPU |
| CONGRAD | MPI communication time for conjugate gradient |
| CALPUV | MPI communication time for external mode solver for flows |
| CALUVW | MPI communication time for solving the internal mode momentum equations and continuity equation |
| CALTRN1 | MPI communication time for calculating explicitly advective transport of scalar field concentration variables (not used) |
| CALTRN2 | MPI communication time for calculating explicitly advective transport of scalar field concentration variables (not used) |
| CALCONC | MPI communication time for calculating scalar field (concentration) transport |
| CALQQ | MPI communication time for calculating transport of turbulent kinetic energy and length scale |
| BEDLOAD | MPI communication time for calculating transport Equation for bedload |
| HDMT1 | MPI communication time for calculating surface wind stresses |
| TOTGHOST | Total time of MPI communication |
| TOT_AR | MPI total time for combining values from all processes and distributing the result back to all processes (MPI All Reduce) |
| ARCONGRD | Total time of MPI All Reduce for conjugate gradient |
| ARCALSTEP | Total time of MPI All Reduce for calculating of time step |