Package ucar.nc2.iosp.gempak
Class GempakStation
- java.lang.Object
-
- ucar.nc2.iosp.gempak.GempakStation
-
- All Implemented Interfaces:
Comparable<ucar.unidata.geoloc.Station>,ucar.unidata.geoloc.EarthLocation,ucar.unidata.geoloc.Station
public class GempakStation extends Object implements ucar.unidata.geoloc.Station
Class to hold GEMPAK station information
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOUNCOUN identifierstatic StringSELVSELV identifierstatic StringSLATSLAT identifierstatic StringSLONSLON identifierstatic StringSPRISPRI identifierstatic StringSTATSTAT identifierstatic StringSTD2STD2 identifierstatic StringSTIDSTID identifierstatic StringSTNMSTNM identifierstatic StringSWFOSWFO identifierstatic StringWFO2WFO2 identifier
-
Constructor Summary
Constructors Constructor Description GempakStation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ucar.unidata.geoloc.Station o)Compare this to anotherdoublegetAltitude()Get the altitude in meters; missing = NaN.StringgetCOUN()Get the COUNStringgetDescription()Get the Station descriptionintgetIndex()Get the row or column index for this stationdoublegetLatitude()Get the latitude in decimal degrees northucar.unidata.geoloc.LatLonPointgetLatLon()Get the lat/lon locationdoublegetLongitude()Get the longitude in decimal degrees eastStringgetName()Get the Station name.intgetNobs()intgetSELV()Get the SELVintgetSLAT()Get the SLATintgetSLON()Get the SLONintgetSPRI()Get the SPRIStringgetSTAT()Get the STATStringgetSTD2()Get the STD2StringgetSTID()Get the STIDintgetSTNM()Get the STNMStringgetSWFO()Get the SWFOStringgetWFO2()Get the WFO2StringgetWmoId()Get the WMO Station ID as a stringbooleanisMissing()Are either lat or lon missing?voidsetCOUN(String value)Set the COUNvoidsetDescription(String desc)Set the station descriptionvoidsetIndex(int rowOrCol)Set the row or column index for this stationvoidsetSELV(int value)Set the SELVvoidsetSLAT(int value)Set the SLATvoidsetSLON(int value)Set the SLONvoidsetSPRI(int value)Set the SPRIvoidsetSTAT(String value)Set the STATvoidsetSTD2(String value)Set the STD2voidsetSTID(String value)Set the STIDvoidsetSTNM(int value)Set the STNMvoidsetSWFO(String value)Set the SWFOvoidsetWFO2(String value)Set the WFO2StringtoString()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()
- Specified by:
getNobsin interfaceucar.unidata.geoloc.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:
getLatitudein interfaceucar.unidata.geoloc.EarthLocation- Returns:
- the latitude
-
getLongitude
public double getLongitude()
Get the longitude in decimal degrees east- Specified by:
getLongitudein interfaceucar.unidata.geoloc.EarthLocation- Returns:
- the longitude
-
getAltitude
public double getAltitude()
Get the altitude in meters; missing = NaN.- Specified by:
getAltitudein interfaceucar.unidata.geoloc.EarthLocation- Returns:
- the altitude
-
getName
public String getName()
Get the Station name. Must be unique within the collection- Specified by:
getNamein interfaceucar.unidata.geoloc.Station- Returns:
- the station id
-
getDescription
public String getDescription()
Get the Station description- Specified by:
getDescriptionin interfaceucar.unidata.geoloc.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:
getWmoIdin interfaceucar.unidata.geoloc.Station- Returns:
- the WMO id
-
compareTo
public int compareTo(ucar.unidata.geoloc.Station o)
Compare this to another- Specified by:
compareToin interfaceComparable<ucar.unidata.geoloc.Station>- Parameters:
o- other object- Returns:
- comparison on nam
-
isMissing
public boolean isMissing()
Are either lat or lon missing?- Specified by:
isMissingin interfaceucar.unidata.geoloc.EarthLocation- Returns:
- true if lat or lon is missing
-
getLatLon
public ucar.unidata.geoloc.LatLonPoint getLatLon()
Get the lat/lon location- Specified by:
getLatLonin interfaceucar.unidata.geoloc.EarthLocation- 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
-
-