ucar.nc2.iosp.grads
Class GradsAttribute

java.lang.Object
  extended by ucar.nc2.iosp.grads.GradsAttribute

public class GradsAttribute
extends Object

Hold information about GrADS attributes

Author:
Don Murray - CU/CIRES

Field Summary
static String BYTE
          Grads Btye identifier
static String FLOAT32
          GrADS Float32 identifier
static String FLOAT64
          GrADS Float64 identifier
static String GLOBAL
          the global identifier
static String INT16
          GrADS Int16 identifier
static String INT32
          GrADS Int32 identifier
static String STRING
          Grads String identifier
static String UINT16
          GrADS UInt16 identifier
static String UINT32
          GrADS UInt32 identifier
 
Constructor Summary
GradsAttribute(String vName, String aType, String aName, String aValue)
          Create a GradsAttribute
 
Method Summary
 String getName()
           
 String getType()
           
 String getValue()
           
 String getVariable()
          Get the variable this is associated with
static GradsAttribute parseAttribute(String attrSpec)
          Parse an attribute spec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

GradsAttribute

public GradsAttribute(String vName,
                      String aType,
                      String aName,
                      String aValue)
Create a GradsAttribute

Parameters:
vName - the variable
aType - the attribute type
aName - the attribute name
aValue - the attribute value
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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.