Package ucar.nc2.iosp.grads
Class GradsAttribute
- java.lang.Object
-
- ucar.nc2.iosp.grads.GradsAttribute
-
public class GradsAttribute extends Object
Hold information about GrADS attributes
-
-
Field Summary
Fields Modifier and Type Field Description static String
BYTE
Grads Btye identifierstatic String
FLOAT32
GrADS Float32 identifierstatic String
FLOAT64
GrADS Float64 identifierstatic String
GLOBAL
the global identifierstatic String
INT16
GrADS Int16 identifierstatic String
INT32
GrADS Int32 identifierstatic String
STRING
Grads String identifierstatic String
UINT16
GrADS UInt16 identifierstatic String
UINT32
GrADS UInt32 identifier
-
Constructor Summary
Constructors Constructor Description GradsAttribute(String vName, String aType, String aName, String aValue)
Create a GradsAttribute
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getType()
String
getValue()
String
getVariable()
Get the variable this is associated withstatic GradsAttribute
parseAttribute(String attrSpec)
Parse an attribute spec
-
-
-
Field Detail
-
GLOBAL
public static final String GLOBAL
the global identifier- See Also:
- Constant Field Values
-
STRING
public static final String STRING
Grads String identifier- See Also:
- Constant Field Values
-
BYTE
public static final String BYTE
Grads Btye identifier- See Also:
- Constant Field Values
-
INT16
public static final String INT16
GrADS Int16 identifier- See Also:
- Constant Field Values
-
UINT16
public static final String UINT16
GrADS UInt16 identifier- See Also:
- Constant Field Values
-
INT32
public static final String INT32
GrADS Int32 identifier- See Also:
- Constant Field Values
-
UINT32
public static final String UINT32
GrADS UInt32 identifier- See Also:
- Constant Field Values
-
FLOAT32
public static final String FLOAT32
GrADS Float32 identifier- See Also:
- Constant Field Values
-
FLOAT64
public static final String FLOAT64
GrADS Float64 identifier- See Also:
- Constant Field Values
-
-
Method Detail
-
parseAttribute
public static GradsAttribute parseAttribute(String attrSpec)
Parse an attribute spec- Parameters:
attrSpec
- the attribute spec (e.g. @ precip String units mm/day)- Returns:
- the associated attribute
-
getVariable
public String getVariable()
Get the variable this is associated with- Returns:
- the variable name or GLOBAL
-
getType
public String getType()
- Returns:
- the type
-
getName
public String getName()
- Returns:
- the attrName
-
getValue
public String getValue()
- Returns:
- the attrValue
-
-