ucar.grib.grib2
Class Grib2Indexer

java.lang.Object
  extended by ucar.grib.grib2.Grib2Indexer
Direct Known Subclasses:
Grib2IndexExtender

Deprecated.

public class Grib2Indexer
extends java.lang.Object

Creates an index for a given Grib file. see IndexFormat.txt


Constructor Summary
Grib2Indexer()
          Deprecated.  
 
Method Summary
static void main(java.lang.String[] args)
          Deprecated. creates a Grib2 index for given Grib2 file.
 void printGDS(Grib2GridDefinitionSection gds, java.io.PrintStream ps)
          Deprecated. prints out a products GDS.
 Index writeFileIndex(ucar.unidata.io.RandomAccessFile inputRaf, java.io.PrintStream ps, boolean makeIndex)
          Deprecated. Write a Grib file index; optionally create an in-memory index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2Indexer

public Grib2Indexer()
Deprecated. 
Method Detail

writeFileIndex

public final Index writeFileIndex(ucar.unidata.io.RandomAccessFile inputRaf,
                                  java.io.PrintStream ps,
                                  boolean makeIndex)
                           throws java.io.IOException
Deprecated. 
Write a Grib file index; optionally create an in-memory index.

Parameters:
inputRaf - GRIB file raf
ps - write output to here
makeIndex - make an in-memory index if true
Returns:
Index if makeIndex is true, else null
Throws:
java.io.IOException

printGDS

public void printGDS(Grib2GridDefinitionSection gds,
                     java.io.PrintStream ps)
Deprecated. 
prints out a products GDS.

Parameters:
gds -
ps - printStream used to write Index

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Deprecated. 
creates a Grib2 index for given Grib2 file.

Parameters:
args - 2 if Grib file and index file name given
Throws:
java.io.IOException