|
||||||||||
| 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 | |
|---|---|
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(java.io.File grib,
java.io.File gbx,
java.lang.String gbxName,
ucar.unidata.io.RandomAccessFile raf,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index. |
GridIndex |
extendGribIndex(java.io.File grib,
java.io.File gbx,
java.lang.String gribName,
java.lang.String gbxName,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index. |
boolean |
extendGribIndex(java.lang.String gbxName,
ucar.unidata.io.RandomAccessFile inputRaf,
long rafLastModified,
java.io.DataOutputStream out)
extend a Grib file index |
static void |
main(java.lang.String[] args)
creates a Grib2 index for given Grib2 file. |
boolean |
rawGridIndex(java.lang.String gbxName,
java.util.List<Grib2WriteIndex.RawRecord> recordList,
java.util.Map<java.lang.String,GribGDSVariablesIF> gdsMap)
makes a raw representation of GridIndex |
void |
setDebug(boolean flag)
|
void |
setVerbose(boolean flag)
|
GridIndex |
writeGribIndex(java.io.File grib,
java.lang.String gbxName,
ucar.unidata.io.RandomAccessFile raf,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index. |
GridIndex |
writeGribIndex(java.io.File grib,
java.lang.String gribName,
java.lang.String gbxName,
boolean makeIndex)
create a Grib file index; optionally create an in-memory index. |
boolean |
writeGribIndex(ucar.unidata.io.RandomAccessFile inputRaf,
long rafLastModified,
java.io.DataOutputStream out)
Write a Grib file index. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int indexRafBufferSize
| Constructor Detail |
|---|
public Grib2WriteIndex()
| Method Detail |
|---|
public final GridIndex writeGribIndex(java.io.File grib,
java.lang.String gribName,
java.lang.String gbxName,
boolean makeIndex)
throws java.io.IOException
grib - as a FilegribName - as a StringgbxName - as a StringmakeIndex - make an in-memory index if true
java.io.IOException - on gbx write
public final GridIndex writeGribIndex(java.io.File grib,
java.lang.String gbxName,
ucar.unidata.io.RandomAccessFile raf,
boolean makeIndex)
throws java.io.IOException
grib - as a FilegbxName - as a Stringraf - RandomAccessFilemakeIndex - make an in-memory index if true
java.io.IOException - on gbx write
public final boolean writeGribIndex(ucar.unidata.io.RandomAccessFile inputRaf,
long rafLastModified,
java.io.DataOutputStream out)
throws java.io.IOException
inputRaf - GRIB file rafrafLastModified - of the rafout - where to write
java.io.IOException - on gbx write
public final GridIndex extendGribIndex(java.io.File grib,
java.io.File gbx,
java.lang.String gribName,
java.lang.String gbxName,
boolean makeIndex)
throws java.io.IOException
grib - as a Filegbx - as a FilegribName - as a StringgbxName - as a StringmakeIndex - make an in-memory index if true
java.io.IOException - on gbx write
public final GridIndex extendGribIndex(java.io.File grib,
java.io.File gbx,
java.lang.String gbxName,
ucar.unidata.io.RandomAccessFile raf,
boolean makeIndex)
throws java.io.IOException
grib - as a Filegbx - as a FilegbxName - as a Stringraf - RandomAccessFilemakeIndex - make an in-memory index if true
java.io.IOException - on gbx write
public final boolean extendGribIndex(java.lang.String gbxName,
ucar.unidata.io.RandomAccessFile inputRaf,
long rafLastModified,
java.io.DataOutputStream out)
throws java.io.IOException
gbxName - a GridIndex is used to extend/create a new GridIndexinputRaf - GRIB file rafrafLastModified - of the rafout - where to write
java.io.IOException - on gbx write
public boolean rawGridIndex(java.lang.String gbxName,
java.util.List<Grib2WriteIndex.RawRecord> recordList,
java.util.Map<java.lang.String,GribGDSVariablesIF> gdsMap)
throws java.io.IOException
gbxName - StringrecordList - ListgdsMap - Map
java.io.IOException - on oldIndex readpublic void setDebug(boolean flag)
public void setVerbose(boolean flag)
public static void main(java.lang.String[] args)
throws java.io.IOException
args - 2 if Grib file and index file name given
java.io.IOException - on gbx write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||