Skip to content

Basic Python library for parsing data formats supplied by the Australian Bureau of Meteorology.

License

Notifications You must be signed in to change notification settings

amacd31/bom_data_parser

Repository files navigation

BoM data parser

Basic library for parsing data formats supplied by the Australian Bureau of Meteorology.

For the most part this library provides a wrapper around Pandas read methods. This saves effort when trying to get the arguments right when accessing some semi-standard formats available from the Bureau of Meteorology.

Dependencies

Requires Python 2.7, 3.4 or greater (mostly tested with Python 2.7 on Linux), numpy, pandas, beautifulsoup4, and lxml.

Test suite status when run with Python 2.7, 3.4 and 3.5 using travis-ci:

https://secure.travis-ci.org/amacd31/bom_data_parser.png?branch=master

Usage

After importing bom_data_parser the read methods can be called passing in a filename. The read methods return a tuple where the first element is a pandas.DataFrame containing the data and the second element is a dictionary of additional meta-data read from the file. The second element may be None where no additional meta-data exists.

import bom_data_parser as bdp
dataframe, attributes = bdp.read_hrs_csv('410730_daily_ts.csv')

Supported formats

Notes

The API is still under development so method names will probably change in the future.

About

Basic Python library for parsing data formats supplied by the Australian Bureau of Meteorology.

Resources

License

Stars

Watchers

Forks

Packages

No packages published