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 DataDesccriptors, which we map to Structures (fixed replication) or
Sequences (deferred replication).
Most of the processing is done by DataDescriptorTreeConstructor.convert().
Here we encapsolate the final result, ready to map to the CDM.
- Since:
- Apr 5, 2008
- Author:
- caron
DataDescriptor
public DataDescriptor(short fxy,
TableLookup lookup)
getSubKeys
public List<DataDescriptor> getSubKeys()
isOkForVariable
public boolean isOkForVariable()
isLocal
public boolean isLocal()
isLocalOverride
public boolean isLocalOverride()
getFxyName
public String getFxyName()
getFxy
public short getFxy()
getName
public String getName()
getType
public int getType()
getScale
public int getScale()
getRefVal
public int getRefVal()
getUnits
public String getUnits()
convert
public float convert(long raw)
transferInfo
public static void transferInfo(List<DataDescriptor> fromList,
List<DataDescriptor> toList)
- Transfer info from the "proto message" to another message with the exact same structure.
- Parameters:
fromList
- transfer from heretoList
- to here
getBitWidth
public int getBitWidth()
getByteWidthCDM
public int getByteWidthCDM()
- Get the number of bytes the CDM datatype will take
- Returns:
- the number of bytes the CDM datatype will take
toString
public String toString()
- Overrides:
toString
in class Object
getTotalBits
public int getTotalBits()
isVarLength
public boolean isVarLength()
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.