|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.bufr.BufrData
public final class BufrData
A class that represents a BufrData, one field in an dataset. There can be more then one observation in a BufrData. Space allocation is not done until type of data is known.
| Constructor Summary | |
|---|---|
BufrData(ucar.bufr.Descriptor des)
Constructor for creating BufrData. |
|
| Method Summary | |
|---|---|
float[] |
getFloatData()
float data of BufrData if available. |
java.lang.String |
getKey()
FXY key of this bufrdata. |
long[] |
getLongData()
long data of BufrData if available. |
java.lang.String |
getName()
name of this BufrData. |
java.lang.String[] |
getStringData()
String data of BufrData if available. |
java.lang.String |
getUnits()
units of this BufrData. |
int |
getVarCount()
number of times variable is repeated in this obs. |
void |
incrementVarCount()
keeps track of variable count. |
boolean |
isNumeric()
is this BufrData numeric?. |
void |
setAllocation(int size)
allocates space for String or float block. |
void |
setAllocationLong(int size)
allocates space for long block. |
void |
setData(float[] floatData)
Replaces data for float block. |
void |
setValue(float value)
sets one float in float block. |
void |
setValue(long value)
sets one long in long block. |
void |
setValue(java.lang.String value)
sets one String in String block. |
void |
shrinkData()
shrinks data in String or float block to varCount * size. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufrData(ucar.bufr.Descriptor des)
des - | Method Detail |
|---|
public final java.lang.String getKey()
public final java.lang.String getName()
public final java.lang.String getUnits()
public final boolean isNumeric()
public final void setValue(java.lang.String value)
value - public final void setValue(float value)
value - public final void setValue(long value)
value - public final java.lang.String[] getStringData()
public final float[] getFloatData()
public final long[] getLongData()
public final void setAllocation(int size)
size - public final void setAllocationLong(int size)
size - public final void setData(float[] floatData)
floatData - public final void shrinkData()
public final void incrementVarCount()
public final int getVarCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||