Class GradsAttribute


  • public class GradsAttribute
    extends Object
    Hold information about GrADS attributes
    • 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