public final class GridIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
current_index_version
used to check versions of already created indexes.
|
java.lang.String |
filename |
Constructor and Description |
---|
GridIndex(java.lang.String filename)
Constructor for creating an Index from the Grid file.
|
Modifier and Type | Method and Description |
---|---|
void |
addGlobalAttribute(java.lang.String name,
java.lang.String value)
adds a GlobalAttribute to the index.
|
void |
addGridRecord(GridRecord gr)
adds a GridRecord to the index.
|
void |
addHorizCoordSys(GridDefRecord gds)
adds a GridDefRecord to the index.
|
void |
finish()
compares GDS for duplicates
|
java.util.Map<java.lang.String,java.lang.String> |
getGlobalAttributes()
GlobalAttributes of index.
|
int |
getGridCount()
Get the count of GridRecords
|
java.util.List<GridRecord> |
getGridRecords()
Grib records of index, one for each parameter.
|
java.util.List<GridDefRecord> |
getHorizCoordSys()
GridDefs of the index.
|
public static final java.lang.String current_index_version
public final java.lang.String filename
public GridIndex(java.lang.String filename)
filename
- name of data file, for debuggingpublic final java.util.Map<java.lang.String,java.lang.String> getGlobalAttributes()
public final java.util.List<GridRecord> getGridRecords()
public final java.util.List<GridDefRecord> getHorizCoordSys()
public final void addGridRecord(GridRecord gr)
gr
- GridRecordpublic final void addHorizCoordSys(GridDefRecord gds)
gds
- GdsRecordpublic final void addGlobalAttribute(java.lang.String name, java.lang.String value)
name
- GlobalAttributevalue
- Stringpublic int getGridCount()
public void finish()