Package ucar.nc2.iosp.gempak
Class GempakStation
- java.lang.Object
-
- ucar.nc2.iosp.gempak.GempakStation
-
- All Implemented Interfaces:
Comparable<Station>
,EarthLocation
,Station
public class GempakStation extends Object implements Station
Class to hold GEMPAK station information
-
-
Field Summary
Fields Modifier and Type Field Description static String
COUN
COUN identifierstatic String
SELV
SELV identifierstatic String
SLAT
SLAT identifierstatic String
SLON
SLON identifierstatic String
SPRI
SPRI identifierstatic String
STAT
STAT identifierstatic String
STD2
STD2 identifierstatic String
STID
STID identifierstatic String
STNM
STNM identifierstatic String
SWFO
SWFO identifierstatic String
WFO2
WFO2 identifier
-
Constructor Summary
Constructors Constructor Description GempakStation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Station o)
Compare this to anotherdouble
getAltitude()
Get the altitude in meters; missing = NaN.String
getCOUN()
Get the COUNString
getDescription()
Get the Station descriptionint
getIndex()
Get the row or column index for this stationdouble
getLatitude()
Get the latitude in decimal degrees northLatLonPoint
getLatLon()
Get the lat/lon locationdouble
getLongitude()
Get the longitude in decimal degrees eastString
getName()
Get the Station name.int
getNobs()
get Number of obs at this stationint
getSELV()
Get the SELVint
getSLAT()
Get the SLATint
getSLON()
Get the SLONint
getSPRI()
Get the SPRIString
getSTAT()
Get the STATString
getSTD2()
Get the STD2String
getSTID()
Get the STIDint
getSTNM()
Get the STNMString
getSWFO()
Get the SWFOString
getWFO2()
Get the WFO2String
getWmoId()
Get the WMO Station ID as a stringboolean
isMissing()
Are either lat or lon missing?void
setCOUN(String value)
Set the COUNvoid
setDescription(String desc)
Set the station descriptionvoid
setIndex(int rowOrCol)
Set the row or column index for this stationvoid
setSELV(int value)
Set the SELVvoid
setSLAT(int value)
Set the SLATvoid
setSLON(int value)
Set the SLONvoid
setSPRI(int value)
Set the SPRIvoid
setSTAT(String value)
Set the STATvoid
setSTD2(String value)
Set the STD2void
setSTID(String value)
Set the STIDvoid
setSTNM(int value)
Set the STNMvoid
setSWFO(String value)
Set the SWFOvoid
setWFO2(String value)
Set the WFO2String
toString()
Return a String representation of this
-
-
-
Field Detail
-
STID
public static final String STID
STID identifier- See Also:
- Constant Field Values
-
STNM
public static final String STNM
STNM identifier- See Also:
- Constant Field Values
-
SLAT
public static final String SLAT
SLAT identifier- See Also:
- Constant Field Values
-
SLON
public static final String SLON
SLON identifier- See Also:
- Constant Field Values
-
SELV
public static final String SELV
SELV identifier- See Also:
- Constant Field Values
-
STAT
public static final String STAT
STAT identifier- See Also:
- Constant Field Values
-
COUN
public static final String COUN
COUN identifier- See Also:
- Constant Field Values
-
STD2
public static final String STD2
STD2 identifier- See Also:
- Constant Field Values
-
SPRI
public static final String SPRI
SPRI identifier- See Also:
- Constant Field Values
-
SWFO
public static final String SWFO
SWFO identifier- See Also:
- Constant Field Values
-
WFO2
public static final String WFO2
WFO2 identifier- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public String toString()
Return a String representation of this
-
getNobs
public int getNobs()
Description copied from interface:Station
get Number of obs at this station
-
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 interfaceEarthLocation
- Returns:
- the latitude
-
getLongitude
public double getLongitude()
Get the longitude in decimal degrees east- Specified by:
getLongitude
in interfaceEarthLocation
- Returns:
- the longitude
-
getAltitude
public double getAltitude()
Get the altitude in meters; missing = NaN.- Specified by:
getAltitude
in interfaceEarthLocation
- Returns:
- the altitude
-
getName
public String getName()
Get the Station name. Must be unique within the collection
-
getDescription
public String getDescription()
Get the Station description- Specified by:
getDescription
in interfaceStation
- 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
-
compareTo
public int compareTo(Station o)
Compare this to another- Specified by:
compareTo
in interfaceComparable<Station>
- Parameters:
o
- other object- Returns:
- comparison on nam
-
isMissing
public boolean isMissing()
Are either lat or lon missing?- Specified by:
isMissing
in interfaceEarthLocation
- Returns:
- true if lat or lon is missing
-
getLatLon
public LatLonPoint getLatLon()
Get the lat/lon location- Specified by:
getLatLon
in interfaceEarthLocation
- Returns:
- lat/lon location
-
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
-
-