RAVE
Lib.rave_wmo_flatfile.rave_wmo_flatfile Class Reference

Used to parse the WMO provided flatfile containing all synop stations. More...

Inheritance diagram for Lib.rave_wmo_flatfile.rave_wmo_flatfile:

Public Member Functions

 __init__ (self)
 
 parse (self, filename)
 Parses the file.
 

Protected Member Functions

 _gps_to_decimal (self, dd, mm, ss)
 Converts the gps coordinate (degree, minute, seconds) to a decimal coordinate.
 
 _parse_row (self, ids, row)
 The internal parsing function.
 

Detailed Description

Used to parse the WMO provided flatfile containing all synop stations.

Member Function Documentation

◆ _gps_to_decimal()

Lib.rave_wmo_flatfile.rave_wmo_flatfile._gps_to_decimal ( self,
dd,
mm,
ss )
protected

Converts the gps coordinate (degree, minute, seconds) to a decimal coordinate.

Parameters
dd- the degrees
mm- the minutes
ss- the seconds (and an eventual identifier saying if we are on N(orth), S(outh), W(est), E(ast)
Returns
the decimal coordinate

◆ _parse_row()

Lib.rave_wmo_flatfile.rave_wmo_flatfile._parse_row ( self,
ids,
row )
protected

The internal parsing function.

Parameters
ids- a list with all the column names in same order as data @row the row we are going to tokenize
Returns
a wmo_station instance

◆ parse()

Lib.rave_wmo_flatfile.rave_wmo_flatfile.parse ( self,
filename )

Parses the file.

Parameters
filename- the name of the file to parse
Returns
a list of wmo_stations

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