| REGRID Tutorial : Run pregrid
  cd to pregrid directory: 
                
                cd pregrid ls -l
 and you should see this: 
               drwxr-xr-x   3 
                mesouser users     8192 Dec 23 12:30 Doc/-rwxr-xr-x   1 mesouser users      912 
                Nov 11  2002 Makefile*
 -rw-r--r--   1 mesouser users     1732 
                Dec  3 13:47 README_ERA40
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 era/
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 grib.misc/
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 navysst/
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 ncep.grib/
 drwxr-xr-x   3 mesouser users     8192 
                Dec 23 12:30 nise/
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 nnrp/
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 on84/
 -rwxr-xr-x   1 mesouser users    14876 
                Sep 27  2001 pregrid.csh*
 -rwxr-xr-x   1 mesouser users     5079 
                Dec  3 13:47 pregrid_era40_int.csh*
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 toga/
 drwxr-xr-x   2 mesouser users     8192 
                Dec 23 12:30 util/
 
 Edit pregrid.csh
                
                - This is a cshell script that is put together to handle several 
                  types of input data to pregrid. - For the SOC case, the only variable you need 
                  to be concerned with is the DataDir variable, 
                  as this points to the location of your input file (if you 
                  specify this variable wrong, you will get the error "set: 
                  No match." during run time). All the other variables 
                  have been set up for the SOC case already.
 - Note that the input data for the SOC case is the NCEP ON84.
 - Do check the parameters defined in the deck against what is 
                  described in the Notes 
                  (Chapter 15).
 - Also click on the example pregrid.csh 
                  to see highlighted parameters that need to be considered and 
                  changed if you start to configure your own case, and use data 
                  other than in the default script. For example, if your input 
                  data is GRIB format, don't forget to select the right Vtables.
 
 Type the following to run pregrid: 
                
                pregrid.csh >& log &  If you are successful, you should find these additional files 
                generated in the pregrid directory: 
               -rw-r--r--   
                1 mesouser users   2678508 Mar 17 17:57 ON84:1993-03-13_00 
                -rw-r--r--   1 mesouser users   2678508 Mar 
                17 17:57 ON84:1993-03-13_12
 -rw-r--r--   1 mesouser users   2678508 Mar 
                17 17:57 ON84:1993-03-14_00
 -rw-r--r--   1 mesouser users     
                42516 Mar 17 17:57 ON84_SNOW:1993-03-13_00
 -rw-r--r--   1 mesouser users     
                42516 Mar 17 17:57 ON84_SNOW:1993-03-13_12
 -rw-r--r--   1 mesouser users     
                42516 Mar 17 17:57 ON84_SNOW:1993-03-14_00
 -rw-r--r--   1 mesouser users     
                42516 Mar 17 17:57 ON84_SST:1993-03-13_00
 -rw-r--r--   1 mesouser users     
                42516 Mar 17 17:57 ON84_SST:1993-03-13_12
 -rw-r--r--   1 mesouser users     
                42516 Mar 17 17:57 ON84_SST:1993-03-14_00
 -rw-r--r--   1 mesouser users     
                10974 Mar 17 17:57 log
 where log 
                is a log file of all print statements generated by pregrid program, 
                and files beginning with a prefix (such as ON84, SNOW and SST) 
                and a time stamp are binary output from pregrid in the intermediate 
                format. If you don't see these files, it would mean your pregrid 
                job has failed. In this case, check your script to see if you 
                have made any mistakes (such as where the input data file, NCEP_ON84.9303, 
                is located), or look in log file to find any clues. 
               Near the end of the log file, you should see the following line 
                if the job is finished correctly: 
                
                Normal 
                  termination of program PREGRID_ON84  
               View intermediate files:
                
                -There is a utility available for plotting the intermediated 
                  files, it is called plotfmt- cd to util
 - make utility by typing (you need NCAR Graphics to use 
                  this utility)
 make 
                  plotfmt
 - run utility by typing
 plotfmt 
                  intermediate-file
 eg.  
                  plotfmt ../ON84_SST:1993-03-13_00
 - view output with NCAR Graphics
 idt 
                  gmeta
 If everything checks out, then your attempt to run pregrid was 
                a successful one. You can now move to the next stage of the REGRID 
                program: regridder.
 
 
                
 |