MET Online Tutorial for METv2.0
Compilation: Test Scripts
Running Test Scripts
Once the MET package has been built successfully, users are strongly encouraged to run the sample test scripts provided. The scripts/ subdirectory contains a test script for each of the tools in MET. The test_all.sh script will run the other test 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.
If you disabled the compilation of any of the MET tools by setting a DISABLE flag in the Makefile, the corresponding 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. METv2.0/out), organized by the names of the MET tools. Return to the top-level METv2.0 directory and list the output directories with the following commands:
-
cd ..
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. Unless otherwise indicated, all future commands listed should be run from the top-level METv2.0 directory. Please run the following set of commands to set up some directories for use in this tutorial:
-
mkdir tutorial
mkdir tutorial/config
mkdir tutorial/out
mkdir tutorial/out/gen_poly_mask
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/wavelet_stat
mkdir tutorial/out/stat_analysis
mkdir tutorial/out/mode
mkdir tutorial/out/mode_analysis

