public class Grib2WriteIndex extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
Grib2WriteIndex.CompareKeyDescend |
static class |
Grib2WriteIndex.pdsLogType |
class |
Grib2WriteIndex.RawRecord
light weight record representation for extendIndex
|
| Modifier and Type | Field and Description |
|---|---|
static int |
indexRafBufferSize
use to improve performance in Grib file
|
| Constructor and Description |
|---|
Grib2WriteIndex() |
| 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
|
static void |
main(String[] args)
creates a Grib2 index for given Grib2 file.
|
boolean |
rawGridIndex(String gbxName,
List<Grib2WriteIndex.RawRecord> recordList,
Map<String,GribGDSVariablesIF> gdsMap)
makes a raw representation of GridIndex
|
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 Grib file index; optionally create an in-memory index.
|
boolean |
writeGribIndex(RandomAccessFile inputRaf,
long rafLastModified,
DataOutputStream out)
Write a Grib file index.
|
public static int indexRafBufferSize
public final GridIndex writeGribIndex(File grib, String gribName, String gbxName, boolean makeIndex) throws IOException
grib - as a FilegribName - as a StringgbxName - as a StringmakeIndex - make an in-memory index if trueIOException - on gbx writepublic final GridIndex writeGribIndex(File grib, String gbxName, RandomAccessFile raf, boolean makeIndex) throws IOException
grib - as a FilegbxName - as a Stringraf - RandomAccessFilemakeIndex - make an in-memory index if trueIOException - on gbx writepublic final boolean writeGribIndex(RandomAccessFile inputRaf, long rafLastModified, DataOutputStream out) throws IOException
inputRaf - GRIB file rafrafLastModified - of the rafout - where to writeIOException - on gbx writepublic 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 - on 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 boolean rawGridIndex(String gbxName, List<Grib2WriteIndex.RawRecord> recordList, Map<String,GribGDSVariablesIF> gdsMap) throws IOException
gbxName - StringrecordList - ListgdsMap - MapIOException - on oldIndex readpublic 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 gbx writeCopyright © 1999–2013 UCAR/Unidata. All rights reserved.