|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.grib.Index
public final class Index
An "in memory" index for Grib (ver 1 or 2) files. May be constructed by scanning the file with GribInput, or by reading a "Grib File Index" that was created by GribIndexer.
This has all the info in it needed to construct a netcdf object. see IndexFormat.txt .
| Nested Class Summary | |
|---|---|
static class |
Index.GdsRecord
Deprecated. class to represent GDS in the index. |
class |
Index.GribRecord
Deprecated. class to represent each record (parameter) in the index. |
| Field Summary | |
|---|---|
static java.lang.String |
current_index_version
Deprecated. used to check versions of already created indexes. |
| Constructor Summary | |
|---|---|
Index()
Deprecated. Constructor for creating an Index from the Grib file. |
|
| Method Summary | |
|---|---|
void |
addGlobalAttribute(java.lang.String name,
java.lang.String value)
Deprecated. adds a GlobalAttribute to the index. |
void |
addGribRecord(Index.GribRecord gr)
Deprecated. adds a GribRecord to the index. |
void |
addHorizCoordSys(Index.GdsRecord gds)
Deprecated. adds a GdsRecord to the index. |
java.lang.String |
getGlobalAttribute(java.lang.String key)
Deprecated. |
java.util.Map<java.lang.String,java.lang.String> |
getGlobalAttributes()
Deprecated. GlobalAttributes of index. |
Index.GribRecord |
getGribRecord()
Deprecated. _more_ |
java.util.List<Index.GribRecord> |
getGribRecords()
Deprecated. Grib records of index, one for each parameter. |
java.util.List<Index.GdsRecord> |
getHorizCoordSys()
Deprecated. GDSs of the index. |
static void |
main(java.lang.String[] args)
Deprecated. main. |
boolean |
open(java.lang.String location)
Deprecated. open Grib Index file for scanning. |
boolean |
open(java.lang.String location,
java.io.InputStream ios)
Deprecated. open Grib Index file for scanning. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String current_index_version
| Constructor Detail |
|---|
public Index()
| Method Detail |
|---|
public final boolean open(java.lang.String location)
throws java.io.IOException
location - URL or local filename of Grib Index file
java.io.IOException
public final boolean open(java.lang.String location,
java.io.InputStream ios)
throws java.io.IOException
location - URL or local filename of Grib Index fileios - input stream
java.io.IOExceptionpublic final java.util.Map<java.lang.String,java.lang.String> getGlobalAttributes()
public final java.lang.String getGlobalAttribute(java.lang.String key)
public final java.util.List<Index.GribRecord> getGribRecords()
public final java.util.List<Index.GdsRecord> getHorizCoordSys()
public final void addGribRecord(Index.GribRecord gr)
gr - GribRecordpublic final void addHorizCoordSys(Index.GdsRecord gds)
gds - GdsRecord
public final void addGlobalAttribute(java.lang.String name,
java.lang.String value)
name - GlobalAttributevalue - Stringpublic Index.GribRecord getGribRecord()
public static void main(java.lang.String[] args)
throws java.io.IOException
args - empty
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||