Class GempakStation

    • Constructor Detail

      • GempakStation

        public GempakStation()
    • Method Detail

      • toString

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

        public int getNobs()
        Description copied from interface: Station
        get Number of obs at this station
        Specified by:
        getNobs in interface Station
        Returns:
        Number of obs or -1 if unknown
      • setSTID

        public void setSTID​(String value)
        Set the STID
        Parameters:
        value - new value
      • getSTID

        public String getSTID()
        Get the STID
        Returns:
        the STID value
      • setSTNM

        public void setSTNM​(int value)
        Set the STNM
        Parameters:
        value - new value
      • getSTNM

        public int getSTNM()
        Get the STNM
        Returns:
        the STNM value
      • setSTAT

        public void setSTAT​(String value)
        Set the STAT
        Parameters:
        value - new value
      • getSTAT

        public String getSTAT()
        Get the STAT
        Returns:
        the STAT value
      • setCOUN

        public void setCOUN​(String value)
        Set the COUN
        Parameters:
        value - new value
      • getCOUN

        public String getCOUN()
        Get the COUN
        Returns:
        the COUN value
      • setSTD2

        public void setSTD2​(String value)
        Set the STD2
        Parameters:
        value - new value
      • getSTD2

        public String getSTD2()
        Get the STD2
        Returns:
        the STD2 value
      • setSWFO

        public void setSWFO​(String value)
        Set the SWFO
        Parameters:
        value - new value
      • getSWFO

        public String getSWFO()
        Get the SWFO
        Returns:
        the SWFO value
      • setWFO2

        public void setWFO2​(String value)
        Set the WFO2
        Parameters:
        value - new value
      • getWFO2

        public String getWFO2()
        Get the WFO2
        Returns:
        the WFO2 value
      • setSLAT

        public void setSLAT​(int value)
        Set the SLAT
        Parameters:
        value - new value
      • getSLAT

        public int getSLAT()
        Get the SLAT
        Returns:
        the SLAT value
      • setSLON

        public void setSLON​(int value)
        Set the SLON
        Parameters:
        value - new value
      • getSLON

        public int getSLON()
        Get the SLON
        Returns:
        the SLON value
      • setSELV

        public void setSELV​(int value)
        Set the SELV
        Parameters:
        value - new value
      • getSELV

        public int getSELV()
        Get the SELV
        Returns:
        the SELV value
      • setSPRI

        public void setSPRI​(int value)
        Set the SPRI
        Parameters:
        value - new value
      • getSPRI

        public int getSPRI()
        Get the SPRI
        Returns:
        the SPRI value
      • getLatitude

        public double getLatitude()
        Get the latitude in decimal degrees north
        Specified by:
        getLatitude in interface EarthLocation
        Returns:
        the latitude
      • getLongitude

        public double getLongitude()
        Get the longitude in decimal degrees east
        Specified by:
        getLongitude in interface EarthLocation
        Returns:
        the longitude
      • getAltitude

        public double getAltitude()
        Get the altitude in meters; missing = NaN.
        Specified by:
        getAltitude in interface EarthLocation
        Returns:
        the altitude
      • getName

        public String getName()
        Get the Station name. Must be unique within the collection
        Specified by:
        getName in interface Station
        Returns:
        the station id
      • getDescription

        public String getDescription()
        Get the Station description
        Specified by:
        getDescription in interface Station
        Returns:
        station description
      • setDescription

        public void setDescription​(String desc)
        Set the station description
        Parameters:
        desc - the description
      • getWmoId

        public String getWmoId()
        Get the WMO Station ID as a string
        Specified by:
        getWmoId in interface Station
        Returns:
        the WMO id
      • compareTo

        public int compareTo​(Station o)
        Compare this to another
        Specified by:
        compareTo in interface Comparable<Station>
        Parameters:
        o - other object
        Returns:
        comparison on nam
      • isMissing

        public boolean isMissing()
        Are either lat or lon missing?
        Specified by:
        isMissing in interface EarthLocation
        Returns:
        true if lat or lon is missing
      • setIndex

        public void setIndex​(int rowOrCol)
        Set the row or column index for this station
        Parameters:
        rowOrCol - the index
      • getIndex

        public int getIndex()
        Get the row or column index for this station
        Returns:
        the index