|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grib.grib2.Grib2WriteIndex
public class Grib2WriteIndex
Creates an index for a Grib2 file in a Binary format verses the old text format.
Nested Class Summary | |
---|---|
protected class |
Grib2WriteIndex.CompareKeyDescend
|
static class |
Grib2WriteIndex.pdsLogType
|
class |
Grib2WriteIndex.RawRecord
light weight record representation for extendIndex |
Field Summary | |
---|---|
static int |
indexRafBufferSize
use to improve performance in Grib file |
Constructor Summary | |
---|---|
Grib2WriteIndex()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int indexRafBufferSize
Constructor Detail |
---|
public Grib2WriteIndex()
Method Detail |
---|
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 true
IOException
- 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 true
IOException
- on gbx writepublic final boolean writeGribIndex(RandomAccessFile inputRaf, long rafLastModified, DataOutputStream out) throws IOException
inputRaf
- GRIB file rafrafLastModified
- of the rafout
- where to write
IOException
- 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 true
IOException
- 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 true
IOException
- 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 write
IOException
- on gbx writepublic boolean rawGridIndex(String gbxName, List<Grib2WriteIndex.RawRecord> recordList, Map<String,GribGDSVariablesIF> gdsMap) throws IOException
gbxName
- StringrecordList
- ListgdsMap
- Map
IOException
- 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 given
IOException
- on gbx write
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |