|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grid.GridIndex
public final class GridIndex
An "in memory" index for 2D grid files. Has list of GridRecord (Parameter), GridDefRecord (GDS) and attributes.
Field Summary | |
---|---|
static String |
current_index_version
used to check versions of already created indexes. |
String |
filename
|
Constructor Summary | |
---|---|
GridIndex(String filename)
Constructor for creating an Index from the Grid file. |
Method Summary | |
---|---|
void |
addGlobalAttribute(String name,
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 |
Map<String,String> |
getGlobalAttributes()
GlobalAttributes of index. |
int |
getGridCount()
Get the count of GridRecords |
List<GridRecord> |
getGridRecords()
Grib records of index, one for each parameter. |
List<GridDefRecord> |
getHorizCoordSys()
GridDefs of the index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String current_index_version
public final String filename
Constructor Detail |
---|
public GridIndex(String filename)
filename
- name of data file, for debuggingMethod Detail |
---|
public final Map<String,String> getGlobalAttributes()
public final List<GridRecord> getGridRecords()
public final List<GridDefRecord> getHorizCoordSys()
public final void addGridRecord(GridRecord gr)
gr
- GridRecordpublic final void addHorizCoordSys(GridDefRecord gds)
gds
- GdsRecordpublic final void addGlobalAttribute(String name, String value)
name
- GlobalAttributevalue
- Stringpublic int getGridCount()
public void finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |