ucar.nc2.iosp.gempak
Class GempakStation

java.lang.Object
  extended by 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

Author:
Don Murray

Field Summary
static String COUN
          COUN identifier
static String SELV
          SELV identifier
static String SLAT
          SLAT identifier
static String SLON
          SLON identifier
static String SPRI
          SPRI identifier
static String STAT
          STAT identifier
static String STD2
          STD2 identifier
static String STID
          STID identifier
static String STNM
          STNM identifier
static String SWFO
          SWFO identifier
static String WFO2
          WFO2 identifier
 
Constructor Summary
GempakStation()
          Create a new GEMPAK station
 
Method Summary
 int compareTo(Station o)
          Compare this to another
 double getAltitude()
          Get the altitude in meters; missing = NaN.
 String getCOUN()
          Get the COUN
 String getDescription()
          Get the Station description
 int getIndex()
          Get the row or column index for this station
 double getLatitude()
          Get the latitude in decimal degrees north
 LatLonPoint getLatLon()
          Get the lat/lon location
 double getLongitude()
          Get the longitude in decimal degrees east
 String getName()
          Get the Station name.
 int getSELV()
          Get the SELV
 int getSLAT()
          Get the SLAT
 int getSLON()
          Get the SLON
 int getSPRI()
          Get the SPRI
 String getSTAT()
          Get the STAT
 String getSTD2()
          Get the STD2
 String getSTID()
          Get the STID
 int getSTNM()
          Get the STNM
 String getSWFO()
          Get the SWFO
 String getWFO2()
          Get the WFO2
 String getWmoId()
          Get the WMO Station ID as a string
 boolean isMissing()
          Are either lat or lon missing?
 void setCOUN(String value)
          Set the COUN
 void setDescription(String desc)
          Set the station description
 void setIndex(int rowOrCol)
          Set the row or column index for this station
 void setSELV(int value)
          Set the SELV
 void setSLAT(int value)
          Set the SLAT
 void setSLON(int value)
          Set the SLON
 void setSPRI(int value)
          Set the SPRI
 void setSTAT(String value)
          Set the STAT
 void setSTD2(String value)
          Set the STD2
 void setSTID(String value)
          Set the STID
 void setSTNM(int value)
          Set the STNM
 void setSWFO(String value)
          Set the SWFO
 void setWFO2(String value)
          Set the WFO2
 String toString()
          Return a String representation of this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

GempakStation

public GempakStation()
Create a new GEMPAK station

Method Detail

toString

public String toString()
Return a String representation of this

Overrides:
toString in class Object
Returns:
a String representation of this

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

getLatLon

public LatLonPoint getLatLon()
Get the lat/lon location

Specified by:
getLatLon in interface 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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.