Observation Output Verification tools to compare 2 different versions of obsproc runs.
compare_config.py: setting base path and network-specific rulescompare_utils.py: utilities shared by both scriptscomp2dirs.py: compare 2 directoriescomp2prepbs.py: compare 2 PREPBUFR files
mode=exp: compare 2 different experimentsmode=date: compare 2 different dates
Load Python first:
module load pythonRun examples:
python comp2dirs.py gfs --date1 20260313 --hh 00 --mode exp
python comp2dirs.py gdas --date1 20260312 --date2 20260313 --hh 00 --mode date
python comp2prepbs.py rap_p --date1 20260313 --hh 06 --tm 00 --mode expNOTE for CDAS: special treatment for CDAS due to the fact that user exp
is saved mostly on ptmp instead of stmp due to time restrictions.
This have to be set in compare_config.py by removing commment # for test_base.
For para/prod tests, keep it commented!
Install required packages (if not already installed):
tabulatematplotlibpandas
pip install <package>Load modules:
module load pythonSupported networks:
gdasgfscdasnamraprap_erap_purmartma
Before running comparison scripts, set the paths for BASE_COMROOT and BASE_SMTP.
comp2dir.pycopm2prepb.py
- Compare two directories, print differences and relative differences on screen, and save data into a CSV file. Also lists differences and counts of
bufr_d,*nr, and status files.
python comp2dir.sh <network> <yyyymmdd> [HH]- Compare two PREPBUFR files, calculate differences, and print directories and production time on screen and into a CSV file.
python comp2prepb.sh <network> <yyyymmdd> [HH]