public class Float32AttributeAdapter extends FloatAttributeAdapter
Attribute.FLOAT32
attribute to the VisAD data-import context.
Instances are immutable.
Constructor and Description |
---|
Float32AttributeAdapter(String name,
dods.dap.Attribute attr)
Constructs from a name and an appropriate attribute.
|
Modifier and Type | Method and Description |
---|---|
protected float |
floatValue(String spec)
Returns the numeric value corresponding to a floating-point
string specification.
|
number, visadSet
data, getAttributeName, getRealType
attributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarName
public Float32AttributeAdapter(String name, dods.dap.Attribute attr) throws VisADException
name
- The name of the attribute.attr
- The attribute. Must have the appropriate type.VisADException
- VisAD failure. Probably the attribute has an
inappropriate type.protected float floatValue(String spec)
floatValue
in class FloatAttributeAdapter
spec
- A floating-point string specification.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.