Class GridParameter

  • Direct Known Subclasses:
    GempakParameter

    public class GridParameter
    extends Object
    Class which represents a grid parameter. A parameter consists of a number that can be used to look up in a table, a name( ie Temperature), a description( ie Temperature at 2 meters), and Units( ie K ).
    • Field Detail

      • number

        protected int number
      • description

        protected String description
      • cf_name

        protected String cf_name
    • Constructor Detail

      • GridParameter

        public GridParameter()
      • GridParameter

        public GridParameter​(int number,
                             String name,
                             String description,
                             String unit)
      • GridParameter

        public GridParameter​(int center,
                             int subcenter,
                             int version,
                             int number)
    • Method Detail

      • getNumber

        public final int getNumber()
      • getName

        public final String getName()
      • getDescription

        public final String getDescription()
        description of parameter.
        Returns:
        description
      • getUnit

        public final String getUnit()
        unit of parameter.
        Returns:
        unit
      • getCFname

        public String getCFname()
      • setNumber

        public final void setNumber​(int number)
        sets number of parameter.
        Parameters:
        number - of parameter
      • setName

        public final void setName​(String name)
        sets name of parameter.
        Parameters:
        name - of parameter
      • setDescription

        public final void setDescription​(String description)
        sets description of parameter.
        Parameters:
        description - of parameter
      • setUnit

        public final void setUnit​(String unit)
        sets unit of parameter.
        Parameters:
        unit - of parameter
      • toString

        public String toString()
        Return a String representation of this object
        Overrides:
        toString in class Object
        Returns:
        a String representation of this object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object