PyMetOffice  0.4
Pythonic access to UK Met Office DataPoint API
Public Member Functions | Private Attributes | List of all members
pymetoffice.observation.Observation Class Reference

A convenient wrapper for a single observation. More...

Inheritance diagram for pymetoffice.observation.Observation:

Public Member Functions

def __init__
 
def addDay
 The 'day' value is part of a set of observations but can be useful in a single observation.
 
def __lt__
 Enable sorting of lists of Observation objects.
 
def __repr__
 This provides a fairly sensible text representation.
 
def __str__
 

Private Attributes

 _data
 

Detailed Description

A convenient wrapper for a single observation.

Definition at line 102 of file observation.py.

Constructor & Destructor Documentation

def pymetoffice.observation.Observation.__init__ (   self,
  decoder,
  repData 
)
Parameters
decoderis a decoder obtained from the _makeDecoder method.
repDatais a DOM Element object with tag 'Rep'

Definition at line 107 of file observation.py.

Member Function Documentation

def pymetoffice.observation.Observation.__lt__ (   self,
  other 
)

Enable sorting of lists of Observation objects.

Definition at line 125 of file observation.py.

def pymetoffice.observation.Observation.__repr__ (   self)

This provides a fairly sensible text representation.

Mostly useful for debugging.

Definition at line 129 of file observation.py.

def pymetoffice.observation.Observation.addDay (   self,
  day 
)

The 'day' value is part of a set of observations but can be useful in a single observation.

Definition at line 122 of file observation.py.


The documentation for this class was generated from the following file: