README 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. TTB - TM Test Bench
  2. ===================
  3. DESCRIPTION
  4. Tools to test TM5 runs while working on the code.
  5. USAGE
  6. (0) The script:
  7. ttb/bin/ttb_compare.py
  8. let you compare two hdf or netCDF files. It can be called from the
  9. command line:
  10. ttb_compare.py file1 file2
  11. or as a module inside other python script:
  12. import ttb_compare
  13. try:
  14. ttb_compare.df_files(r1.restart, r2.restart)
  15. except:
  16. print "\n FAILED"
  17. else:
  18. print "\n SUCCESS"
  19. (1) Typical usage of TTB is:
  20. bin/ttb rc/ttb.rc
  21. The 'ttb' script is able to setup and submit one or more TM runs,
  22. and afterwards check the output of the run(s) on differences.
  23. Setup of the runs is defined through a rcfile, see 'rc/ttb.rc'
  24. for inspiration.
  25. (2) A more general TM5 class (rctm5) is also available. It is an extension
  26. of the RcFile class available in rc.py, which add TM5 dedicated derived
  27. attributes, and methods. See header for tips.
  28. HISTORY
  29. 2010, Arjo Segers
  30. 2011, Philippe Le Sager for 'rctm5' class, a simplified version of the one
  31. found in the 'obsolete' subdir.