MET Online Tutorial for METv1.1
Compilation: Test Scripts
Running Test Scripts
Once the MET package has been built successfully, the user is strongly encouraged to run the sample test scripts provided. The scripts/ subdirectory contains a test script for each of the eight tools in MET. The test_all.sh script will run the other eight scripts in the proper order. To run the test scripts, execute the following commands:-
cd scripts
./test_all.sh >& test_all.log&
tail -f test_all.log
To exit the tail command, type CNTL-C.
Most of the steps in the test scripts will only take a couple of minutes each to run. However, the PB2NC step will likely take several minutes.
Running PB2NC
Users who encounter runtime errors from PB2NC should refer to the PB2NC Tool:General tutorial page for a description of how to run the cwordsh utility. You may need to run the cwordsh utility to reblock the input PREPBUFR file used by the test_pb2nc.sh script.
For users who chose not to compile PB2NC by setting the DISABLE_PB2NC flag, the PB2NC test script will fail.
Test Script Output
Examine the contents of the test_all.log file. Look for the following message which indicates that the test script completed:
*** Finished Testing the Model Evaluation Tools Project ***
The output from this test script is written to the out/ subdirectory (e.g. METv1.1/out), organized by the names of the MET tools. List the output directories with the following command:
-
ls ../out/*
Congratulations!
You have now successfully compiled and run MET!
Tutorial Setup
Throughout the remainder of this tutorial, we'll look at running each of the MET tools in greater detail using the sample data provided with the MET tarball. All future commands listed should be run from the top-level METv1.1 directory. Please run the following set of commands to set up some directories for use in this tutorial:
-
cd ..
mkdir tutorial
mkdir tutorial/config
mkdir tutorial/out
mkdir tutorial/out/pb2nc
mkdir tutorial/out/ascii2nc
mkdir tutorial/out/point_stat
mkdir tutorial/out/pcp_combine
mkdir tutorial/out/grid_stat
mkdir tutorial/out/vsdb_analysis
mkdir tutorial/out/mode
mkdir tutorial/out/mode_analysis

