|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.bufr.Index
public final class Index
An "in memory" index for Bufr files. May be constructed by scanning the file with BufrInput, or by reading a "Bufr File Index" that was created by BufrIndexer. This has all the information in it needed to construct a netcdf object. see IndexFormat.txt .
| Nested Class Summary | |
|---|---|
class |
Index.BufrObs
class to represent each observation in the index. |
static class |
Index.coordinate
class to represent a coordinate of a point (station) in the index. |
static class |
Index.parameter
class to represent a Parameter in the index. |
| Field Summary | |
|---|---|
static java.lang.String |
current_index_version
used to check versions of already created indexes. |
| Constructor Summary | |
|---|---|
Index()
Constructor for creating an Index from the Bufr file. |
|
| Method Summary | |
|---|---|
void |
addGlobalAttribute(java.lang.String name,
java.lang.String value)
adds a GlobalAttribute to the index. |
void |
addObservation(java.lang.String name,
java.lang.String ISOdate,
int dim,
float latitude,
float longitude,
int altitude,
long DDSoffset,
long obsOffset,
int bitPos,
int bitBuf)
adds a Observation to the index. |
void |
addParameter(java.lang.String key,
int dimension,
boolean isNumeric,
java.lang.String name,
java.lang.String units)
adds a Parameter to the index. |
void |
finish()
Sort the index information for quick access. |
Index.BufrObs |
getBufrObs(java.lang.String name,
java.lang.String ISOdate,
int dim,
long DDSoffset,
long obsOffset,
int bitPos,
int bitBuf)
|
java.util.HashMap |
getCoordinates()
coordinates of the locations. |
java.util.HashMap |
getGlobalAttributes()
GlobalAttributes of index. |
java.util.ArrayList |
getLocations()
locations in this dataset. |
int |
getNumberObs()
numberObs in this dataset. |
java.util.HashMap |
getObservations()
observations of index, one ArrayList for each location. |
java.util.HashMap |
getObsLocations()
locations in this observation time. |
java.util.ArrayList |
getObsTimes()
observation times in this dataset. |
java.util.ArrayList |
getParameters()
Parameters of index. |
static void |
main(java.lang.String[] args)
main. |
boolean |
open(java.lang.String reference)
open Bufr Index file for scanning. |
boolean |
open(java.lang.String reference,
java.io.InputStream ios)
open Bufr 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 reference)
throws java.io.IOException
reference - URL or local filename of Bufr Index file
java.io.IOException
public final boolean open(java.lang.String reference,
java.io.InputStream ios)
throws java.io.IOException
reference - URL or local filename of Bufr Index fileios - input stream
java.io.IOExceptionpublic final void finish()
public final java.util.HashMap getGlobalAttributes()
public final int getNumberObs()
public final java.util.ArrayList getLocations()
public final java.util.HashMap getObservations()
public final java.util.ArrayList getObsTimes()
public final java.util.HashMap getObsLocations()
public final java.util.HashMap getCoordinates()
public final java.util.ArrayList getParameters()
public final void addObservation(java.lang.String name,
java.lang.String ISOdate,
int dim,
float latitude,
float longitude,
int altitude,
long DDSoffset,
long obsOffset,
int bitPos,
int bitBuf)
name - ISOdate - dim - latitude - longitude - altitude - DDSoffset - obsOffset - bitPos - bitBuf -
public final void addGlobalAttribute(java.lang.String name,
java.lang.String value)
name - GlobalAttributevalue - String
public Index.BufrObs getBufrObs(java.lang.String name,
java.lang.String ISOdate,
int dim,
long DDSoffset,
long obsOffset,
int bitPos,
int bitBuf)
public final void addParameter(java.lang.String key,
int dimension,
boolean isNumeric,
java.lang.String name,
java.lang.String units)
key - dimension - isNumeric - name - units -
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 | ||||||||