Visualize Verification Results
The METviewer software provides a database and display system for visualizing the statistical output generated by MET. After starting the METviewer service, a new database is created into which the MET output is loaded. Plots of the verification statistics are created by interacting with a web-based graphical interface.
SELECT THE APPROPRIATE CONTAINER INSTRUCTIONS FOR YOUR SYSTEM BELOW:
In order to visualize the MET output using the METviewer database and display system you first need to launch the METviewer container.
docker-compose up -d
The MET statistical output then needs to be loaded into the MySQL database for querying and plotting by METviewer
The METviewer GUI can then be accessed with the following URL copied and pasted into your web browser:
Note, if you are running on AWS, run the following commands to reconfigure METviewer with your current IP address and restart the web service:
docker exec -it metviewer /bin/bash
/scripts/common/reset_metv_url.ksh exit |
The METviewer GUI can then be accessed with the following URL copied and pasted into your web browser (where IPV4_public_IP is your IPV4Public IP from the AWS “Active Instances” web page):
http://IPV4_public_IP:8080/metviewer/metviewer1.jsp
The METviewer GUI can be run interactively to create verification plots on the fly. However, to get you going, two sample plots are provided. Do the following in the METviewer GUI:
-
Click the "Choose File" button and navigate on your file system to:
${PROJ_DIR}/container-dtc-nwp/components/scripts/derecho_20120629/metviewer/plot_APCP_03_ETS.xml
-
Click "OK" to load the XML to the GUI and populate all the required options.
-
Click the "Generate Plot" button on the top of the page to create the image.
Next, follow the same steps to create a plot of 2-meter temperature with this XML file:
Feel free to make changes in the METviewer GUI and use the "Generate Plot" button to make new plots.
Note: Use of METviewer with Singularity is only supported on AWS!
In order to visualize the MET output using the METviewer database and display system, you first need to build Singularity sandbox from the docker container using 'fix-perms' options. The execution of this step creates a metv4singularity directory.
singularity build --sandbox --fix-perms --force metv4singularity docker://dtcenter/nwp-container-metviewer-for-singularity:${PROJ_VERSION}
Next, start the Singularity instance as 'writable' and call it 'metv':
Then, initialize and start MariaDB and Tomcat:
Then, navigate to the scripts area and run a shell in the Singularity container:
singularity shell instance://metv
Now it is time to load the MET output into a METviewer database. As a note, the metv_load_singularity.ksh script requires two command-line arguments: 1) name of the METviewer database (e.g., mv_derecho), and 2) the ${CASE_DIR}
The METviewer GUI can then be accessed with the following URL copied and pasted into your web browser (where IPV4_public_IP is your IPV4Public IP from the AWS “Active Instances” web page):
http://IPV4_public_IP:8080/metviewer/metviewer1.jsp
The METviewer GUI can be run interactively to create verification plots on the fly. However, to get you going, two sample plots are provided. Do the following in the METviewer GUI:
-
Click the "Choose File" button and navigate on your file system to:
${PROJ_DIR}/container-dtc-nwp/components/scripts/derecho_20120629/metviewer/plot_APCP_03_ETS.xml
-
Click "OK" to load the XML to the GUI and populate all the required options.
-
Click the "Generate Plot" button on the top of the page to create the image.
Next, follow the same steps to create a plot of 2-meter temperature with this XML file:
Feel free to make changes in the METviewer GUI and use the "Generate Plot" button to make new plots.
You can also create plots via the METviewer batch plotting capability (i.e., not the METviewer GUI). A script to run the two supplied METviewer XMLs provides an example on how to create plots. Note you must be in your metviewer singularity shell to run it, as shown below:
singularity shell instance://metv
cd ${PROJ_DIR}/container-dtc-nwp/components/scripts/derecho_20120629/metviewer ./metv_plot_singularity.ksh ${CASE_DIR}
The output goes to: ${CASE_DIR}/metviewer/plots, and you can use display to view the images.