public class Grib1WriteIndex extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
Grib1WriteIndex.CompareKeyDescend |
| Constructor and Description |
|---|
Grib1WriteIndex() |
| Modifier and Type | Method and Description |
|---|---|
GridIndex |
extendGribIndex(File grib,
File gbx,
String gbxName,
RandomAccessFile raf,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index.
|
GridIndex |
extendGribIndex(File grib,
File gbx,
String gribName,
String gbxName,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index.
|
boolean |
extendGribIndex(String gbxName,
RandomAccessFile inputRaf,
long rafLastModified,
DataOutputStream out)
extend a Grib file index; optionally create an in-memory index.
|
static void |
main(String[] args)
creates a Grib1 index for given Grib1 file.
|
void |
setCheckPDS(boolean flag) |
void |
setDebug(boolean flag) |
void |
setLogPDS(Grib2WriteIndex.pdsLogType flag) |
void |
setVerbose(boolean flag) |
GridIndex |
writeGribIndex(File grib,
String gbxName,
RandomAccessFile raf,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index.
|
GridIndex |
writeGribIndex(File grib,
String gribName,
String gbxName,
boolean makeIndex)
create a Grib1 file index.
|
boolean |
writeGribIndex(RandomAccessFile inputRaf,
long rafLastModified,
DataOutputStream out)
Write a Grib file index.
|
public final GridIndex writeGribIndex(File grib, String gribName, String gbxName, boolean makeIndex) throws IOException
grib - as File handlegribName - gribNamegbxName - gbxNamemakeIndex - make an in-memory index if trueIOException - on Grib readpublic final GridIndex writeGribIndex(File grib, String gbxName, RandomAccessFile raf, boolean makeIndex) throws IOException
grib - Grib filegbxName - Index nameraf - RandomAccessFilemakeIndex - make an in-memory index if trueIOException - on Grib file readpublic final boolean writeGribIndex(RandomAccessFile inputRaf, long rafLastModified, DataOutputStream out) throws IOException
inputRaf - GRIB file rafrafLastModified - longout - DataOutputStreamIOException - on Grib file readpublic final GridIndex extendGribIndex(File grib, File gbx, String gribName, String gbxName, boolean makeIndex) throws IOException
grib - as a Filegbx - as a FilegribName - as a StringgbxName - as a StringmakeIndex - make an in-memory index if trueIOException - on gbx writepublic final GridIndex extendGribIndex(File grib, File gbx, String gbxName, RandomAccessFile raf, boolean makeIndex) throws IOException
grib - as a Filegbx - as a FilegbxName - as a Stringraf - RandomAccessFilemakeIndex - make an in-memory index if trueIOException - gbx writepublic final boolean extendGribIndex(String gbxName, RandomAccessFile inputRaf, long rafLastModified, DataOutputStream out) throws IOException
gbxName - a GridIndex is used to extend/create a new GridIndexinputRaf - GRIB file rafrafLastModified - of the rafout - where to writeIOException - on gbx writepublic void setCheckPDS(boolean flag)
public void setLogPDS(Grib2WriteIndex.pdsLogType flag)
public void setDebug(boolean flag)
public void setVerbose(boolean flag)
public static void main(String[] args) throws IOException
args - 2 if Grib file and index file name givenIOException - on raf readCopyright © 1999–2014 UCAR/Unidata. All rights reserved.