ucar.bufr
Class BufrIndexer
java.lang.Object
ucar.bufr.BufrIndexer
public class BufrIndexer
- extends java.lang.Object
Creates an index of the internal contents for a given BUFR file.
BUFR files can be large, so if an Index is created, then data access can be fast by
using offsets into the file. These offsets are based on a ob or a set of
obs in the file. Using the BufrDataExtractor class and the information from the
Index fast data extraction can be accomplished.
see IndexFormat.txt
netcdf-java Common Data Model uses the Index to display information about
data location, time, and parameter names without accessing the file. The
file is not actually read until a data request is made.
|
Method Summary |
static void |
main(java.lang.String[] args)
creates a Bufr index for given Bufr file. |
static Index |
writeFileIndex(ucar.unidata.io.RandomAccessFile inputRaf,
java.io.PrintStream ps,
boolean makeIndex)
Write a Bufr file index; optionally create an in-memory index. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufrIndexer
public BufrIndexer()
writeFileIndex
public static final Index writeFileIndex(ucar.unidata.io.RandomAccessFile inputRaf,
java.io.PrintStream ps,
boolean makeIndex)
throws java.io.IOException
- Write a Bufr file index; optionally create an in-memory index.
- Parameters:
inputRaf - BUFR file rafps - write output to heremakeIndex - make an in-memory index if true
- Returns:
- Index if makeIndex is true, else null
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- creates a Bufr index for given Bufr file.
- Parameters:
args - 2 if Bufr file and index file name given
- Throws:
java.io.IOException