visad/src/main/java/ucar/nc2/iosp/gempak/GempakFileReader.java
public static void main(String[] args) throws IOException {
    if (args.length == 0) {
      System.out.println("need to supply a GEMPAK grid file name");
      System.exit(1);
    }

    GempakFileReader gfr = getInstance(getFile(args[0]), true);
    gfr.printFileLabel();
    gfr.printKeys();
    gfr.printHeaders();
    gfr.printParts();

  }
public static void main(String[] args) throws IOException {
    if (args.length == 0) {
      System.out.println("need to supply a GEMPAK grid file name");
      System.exit(1);
    }

    GempakFileReader gfr = getInstance(getFile(args[0]), true);
    gfr.printFileLabel();
    gfr.printKeys();
    gfr.printHeaders();
    gfr.printParts();

  }
public static void main ( String [ ] args ) throws IOException { if ( args . length == 0 ) { System . out . println ( "need to supply a GEMPAK grid file name" ) ; System . exit ( 1 ) ; } GempakFileReader gfr = getInstance ( getFile ( args [ 0 ] ) , true ) ; gfr . printFileLabel ( ) ; gfr . printKeys ( ) ; gfr . printHeaders ( ) ; gfr . printParts ( ) ; }
Run the program

@param args filename
@throws IOException problem reading the file
Run the program