net.sourceforge.jgrib.examples
Class JgribDemoAFWA

java.lang.Object
  extended by net.sourceforge.jgrib.examples.JgribDemoAFWA

public class JgribDemoAFWA
extends java.lang.Object

This class demonstrates several ways to use the Jgrib package.
The purpose of this demo program is to help new users of the Jgrib package get familiar with some of the aspects of the package.

Since:
1.2
Author:
Peter Gylling
email: Peg@frv.dk, Richard D. Gonzalez - heavily modified to work with new changes (AFWA stands for Air Force Weather Agency - I modified JGrib specifically to be able to read GRIB files produced by AFWA) This demo demonstrates three things: 1. Listing records in the order they appear in the file - useful for getting record number for extracting single records 2. Listing short names from the parameter table to see what types are in the GRIB file. 3. Sorting and extracting records using the methods in the GribFile class This dumps a lot of text to the screen - you may want to pipe the output to a file, or set the properties of you window to have a large buffer size.

Constructor Summary
JgribDemoAFWA()
           
 
Method Summary
static void compareCoords(GribFile gribFile)
           
static void main(java.lang.String[] args)
          Dump of meta data
 void usage(java.lang.String className)
          Dumps usage of the class, if called without arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JgribDemoAFWA

public JgribDemoAFWA()
Method Detail

usage

public void usage(java.lang.String className)
Dumps usage of the class, if called without arguments

Parameters:
className -

main

public static void main(java.lang.String[] args)
Dump of meta data

Parameters:
args - Filename of gribfile to read

compareCoords

public static void compareCoords(GribFile gribFile)
Parameters:
gribFile -