Package elisa :: Package extern :: Package metar :: Module Datatypes :: Class direction
[hide private]
[frames] | no frames]

Class direction

source code


A class representing a compass direction.

Instance Methods [hide private]
 
__init__(self, d)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
value(self)
Return the numerical direction, in degrees.
source code
 
string(self)
Return a string representation of the numerical direction.
source code
 
compass(self)
Return the compass direction, e.g., "N", "ESE", etc.).
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables [hide private]
  compass_dirs = {'E': 90.0, 'ENE': 67.5, 'ESE': 112.5, 'N': 0.0...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, d)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

compass_dirs

Value:
{'E': 90.0,
 'ENE': 67.5,
 'ESE': 112.5,
 'N': 0.0,
 'NE': 45.0,
 'NNE': 22.5,
 'NNW': 337.5,
 'NW': 315.0,
...