Package ucar.nc2.iosp.bufr
Class DataDescriptor
- java.lang.Object
-
- ucar.nc2.iosp.bufr.DataDescriptor
-
public class DataDescriptor extends Object
Essentially a TableB entry, modified by any relevent TableC operators. TableD has been expanded. Replication gets made into nested DataDescriptors, which we map to Structures (fixed replication) or Sequences (deferred replication). Most of the processing is done by DataDescriptorTreeConstructor.convert(). Here we encapsulate the final result, ready to map to the CDM.- Since:
- Apr 5, 2008
-
-
Constructor Summary
Constructors Constructor Description DataDescriptor(short fxy, BufrTableLookup lookup)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
convert(long raw)
static float
convert(long raw, int scale, int refVal, int bitWidth)
boolean
equals2(Object o)
int
getBitWidth()
String
getDesc()
short
getFxy()
String
getFxyName()
String
getName()
int
getRefVal()
int
getScale()
String
getSource()
List<DataDescriptor>
getSubKeys()
int
getTotalBits()
int
getType()
String
getUnits()
int
hashCode2()
static boolean
isCodeTableUnit(String unitString)
Test if the unit string indicates that we are dealing with data associated with a code tablestatic boolean
isFlagTableUnit(String unitString)
Test if the unit string indicates that we are dealing with data associated with a flag tablestatic boolean
isInternationalAlphabetUnit(String unitString)
Test if unit string indicates that the data are 7-bit coded characters following the International Reference Alphabet (formally known as the International Alphabet No.5 (IA5)) Recommendation/International Standard from the International Telegraph and Telephone Consultative Committee (CCITT) https://www.itu.int/rec/T-REC-T.50/enboolean
isLocal()
boolean
isLocalOverride()
boolean
isVarLength()
String
toString()
-
-
-
Constructor Detail
-
DataDescriptor
public DataDescriptor(short fxy, BufrTableLookup lookup)
-
-
Method Detail
-
isInternationalAlphabetUnit
public static boolean isInternationalAlphabetUnit(String unitString)
Test if unit string indicates that the data are 7-bit coded characters following the International Reference Alphabet (formally known as the International Alphabet No.5 (IA5)) Recommendation/International Standard from the International Telegraph and Telephone Consultative Committee (CCITT) https://www.itu.int/rec/T-REC-T.50/en- Parameters:
unitString
- unit- Returns:
- If true, treat the data as 7-bit coded International Reference Alphabet Characters
-
isCodeTableUnit
public static boolean isCodeTableUnit(String unitString)
Test if the unit string indicates that we are dealing with data associated with a code table- Parameters:
unitString
- unit- Returns:
- If true, the unit indicates we are working with data associated with a code table
-
isFlagTableUnit
public static boolean isFlagTableUnit(String unitString)
Test if the unit string indicates that we are dealing with data associated with a flag table- Parameters:
unitString
- unit- Returns:
- If true, the unit indicates we are working with data associated with a flag table
-
getSubKeys
public List<DataDescriptor> getSubKeys()
-
isLocal
public boolean isLocal()
-
isLocalOverride
public boolean isLocalOverride()
-
getFxyName
public String getFxyName()
-
getFxy
public short getFxy()
-
getName
public String getName()
-
getSource
public String getSource()
-
getType
public int getType()
-
getScale
public int getScale()
-
getRefVal
public int getRefVal()
-
getUnits
public String getUnits()
-
getDesc
public String getDesc()
-
convert
public float convert(long raw)
-
convert
public static float convert(long raw, int scale, int refVal, int bitWidth)
-
getBitWidth
public int getBitWidth()
-
getTotalBits
public int getTotalBits()
-
isVarLength
public boolean isVarLength()
-
equals2
public boolean equals2(Object o)
-
hashCode2
public int hashCode2()
-
-