RAVE
|
The parser of the fm12 synop data. More...
Public Member Functions | |
__init__ (self) | |
parse (self, filename) | |
Parses the file. | |
Public Attributes | |
int | SECTION1_PARTS = idx + 1 |
int | SECTION3_PARTS = idx + 1 |
Static Public Attributes | |
dict | SECTION1_PARTS |
dict | SECTION3_PARTS |
Protected Member Functions | |
_extract_blocks (self, groups) | |
_parse_data (self, groups, filename) | |
First step of the parsing. | |
_parse_base_info (self, base_id, filename) | |
Extracts the base information about this file. | |
_parse_block (self, base_id, block) | |
Parses one block of data (between AAXX/BBXX/OOXX and next AAXX/BBXX/OOXX. | |
_parse_obs (self, baseinfo, id, data) | |
Parses one observation. | |
_parse_aaxx_obs (self, baseinfo, yyggi, data) | |
Parses an aaxx obs. | |
_create_sections_from_obs (self, tokens) | |
Creates sections from the tokens in an observation. | |
_parse_section1_1 (self, obs, token) | |
Handles group 1 in section 1. | |
_parse_section1_2 (self, obs, token) | |
Handles group 2 in section 1. | |
_parse_section1_3 (self, obs, token) | |
Handles group 3 in section 1. | |
_parse_section1_4 (self, obs, token) | |
Handles group 4 in section 1. | |
_parse_section1_5 (self, obs, token) | |
Handles group 5 in section 1. | |
_parse_section1_6 (self, obs, token) | |
Handles group 6 in section 1. | |
_parse_section1_7 (self, obs, token) | |
Not used. | |
_parse_section1_8 (self, obs, token) | |
Not used. | |
_parse_section1_9 (self, obs, token) | |
Not used. | |
_fill_obs_with_section1 (self, obs, section1) | |
Processes section 1 of the observation and sets the relevant information in the obs. | |
_parse_section3_0 (self, obs, token) | |
Not used. | |
_parse_section3_1 (self, obs, token) | |
Handles group 1 in section 3. | |
_parse_section3_2 (self, obs, token) | |
Handles group 2 in section 3. | |
_parse_section3_3 (self, obs, token) | |
Not used. | |
_parse_section3_4 (self, obs, token) | |
Not used. | |
_parse_section3_5 (self, obs, token) | |
Not used. | |
_parse_section3_6 (self, obs, token) | |
Not used. | |
_parse_section3_7 (self, obs, token) | |
Not used | |
_parse_section3_8 (self, obs, token) | |
_parse_section3_9 (self, obs, token) | |
Not used. | |
_fill_obs_with_section3 (self, obs, section3) | |
Fills the observation with information from section 3. | |
The parser of the fm12 synop data.
|
protected |
Creates sections from the tokens in an observation.
The tokens should not include the station identifier and first 111 group (iihVV)
tokens | - the token list |
|
protected |
Processes section 1 of the observation and sets the relevant information in the obs.
obs | - the observation to get data filled in |
section1 | - the section 1 groups |
|
protected |
Fills the observation with information from section 3.
obs | - the observation to be filles |
section3 | a tokenized list of the groups in section 3 |
|
protected |
Parses an aaxx obs.
baseinfo | - the base info |
yyggi | - (yy)day of month, (gg)hour of day, (i)wind type indicator |
|
protected |
Extracts the base information about this file.
|
protected |
Parses one block of data (between AAXX/BBXX/OOXX and next AAXX/BBXX/OOXX.
base_id | the base info |
blcok | the block to parse |
|
protected |
First step of the parsing.
|
protected |
Parses one observation.
Currently, only AAXX (SYNOP) are handled
baseinfo | - the base info |
id | - the identifier for this obs |
data | - the obs data to be parsed |
|
protected |
Handles group 1 in section 1.
obs | - the obs to fill with information |
token | - in the format 1sTTT (Temperature) |
|
protected |
Handles group 2 in section 1.
obs | - the obs to fill with information |
token | - in the format 2sTTT (Dewpoint) |
|
protected |
Handles group 3 in section 1.
obs | - the obs to fill with information |
token | - in the format 3PPPP (Station pressure in 0.1 mb ) |
|
protected |
Handles group 4 in section 1.
obs | - the obs to fill with information |
token | - in the format 4PPPP (Sea level pressure in 0.1 mb ) |
|
protected |
Handles group 5 in section 1.
obs | - the obs to fill with information |
token | - in the format 5appp (Pressure tendency over 3 hours) |
|
protected |
Handles group 6 in section 1.
obs | - the obs to fill with information |
token | - in the format 6RRRt (Liquid precipitation) |
|
protected |
Not used.
|
protected |
Not used.
|
protected |
Not used.
|
protected |
Not used.
|
protected |
Handles group 1 in section 3.
obs | - the obs to fill with information |
token | - in the format 1sTTT (Maximum temperature over previous 24 hours) |
|
protected |
Handles group 2 in section 3.
obs | - the obs to fill with information |
token | - in the format 2sTTT (Minimum temperature over previous 24 hours) |
|
protected |
Not used.
|
protected |
Not used.
|
protected |
Not used.
|
protected |
Not used.
|
protected |
Not used
|
protected |
Not used.
Lib.rave_fm12.fm12_parser.parse | ( | self, | |
filename ) |
Parses the file.
filename | the file containing the fm12 formatted data |
|
static |
|
static |