Skip to content

Using GTG

Kim Whitehall edited this page Feb 15, 2015 · 21 revisions

Using GTG

Download the source code and store in a folder

There are two folders in the tarball. code/

  • mccSearch.py contains all the functions needed
  • mccSearchUI.py contains a command line wizard for running the program
  • mainProg.py contains a sample of the general workflow of the order the modules should be called.
  • mainProgTemplate.py the general workflow of the order the modules should be called in order to complete an evaluation.

GrADsScripts/

  • accuTRMM.gs
  • c3.gs
  • cloudElementVars_template
  • cloudElementVars_template2
  • cs1.gs
  • cs3.gs

How to run the GTG

Run mccSearchUI.py (python mccSearchUI.py) mccSearchUI.py is the use of GTG for the weather application of finding mesoscale convective complexes (MCCs) in When you run the command line, mccSearchUI.py, there are a number of inputs that will be required. There are the main inputs you will have to supply (as well as their variable names in the code - especially useful for editing mainProg.py or tracing the code:

  • mainDirStr : this is the working directory where you wish all the output files –images, textfiles, clipped netCDF files- to be store
  • There is an option to preprocess data. The program
  • CEoriDirName : this is the directory where the original MERG data in netCDF format is stored
  • TRMMdirName : this is the directory where the original TRMM data in netCDF format is stored
  • Start date and time in the format yyyymmddhr
  • End date and time in the format yyyymmddhr

This is a very crude program. The following assumptions are made: (1) input data are in one folder. For MERG data this is CEoriDirName and for the TRMM data this is TRMMdirName in mainProg.py. These directories cannot be the same. (2) THERE IS NO FILE CHECKING. So please ensure ALL your files are there in netCDF format. (3) THERE IS NO FILE ERROR HANDLING. Please ensure that the MERG data and the TRMM data files are correlated temporally and spatially

Clone this wiki locally