If you're a python and pip user, you can install the current development version with:
sudo pip install git+https://github.com/coeusite/abura.git
or install it locally with:
pip install --user git+https://github.com/coeusite/abura.git
To upgrade the parser:
pip install --user --force-reinstall --upgrade git+https://github.com/coeusite/abura.git
This module depends on:
- wget
Using the module should be pretty straightforward. Here's an example:
from abura import Abura_IGRA2
# IGRA2 Downloader
downloader = Abura_IGRA2('IGRA2')
downloader.run(
stations = ['CHM00056294']) # ChengDu
# IGRA2 Derived Downloader
downloader = Abura_IGRA2('IGRA2 DRVD')
downloader.run(
stations = ['CHM00056294']) # ChengDu
from abura import Abura_ISD
# ISD Downloader
downloader = Abura_ISD('ISD')
downloader.run(
stations = ['562940-99999'], # ChengDu
years = [2013, 2014, 2015, 2016, 2017])
# ISD Lite Downloader
downloader = Abura_ISD('ISD LITE')
downloader.run(
stations = ['562940-99999'], # ChengDu
years = [2013, 2014, 2015, 2016, 2017])
# GSOD Downloader
downloader = Abura_ISD('GSOD')
downloader.run(
stations = ['562940-99999'], # ChengDu
years = [2013, 2014, 2015, 2016, 2017])
You can find the files under './data/'. You can use it to download ISD, ISD Lite, GSOD, IGRA2 or IGRA2 Derived data from NOAA.
Testing scripts have not been implemented yet.
- auto retry infinitely when 530 error occurs (Maximum number of connections exceeded).
For further questions, please open an issue or contact CoeusITE ([email protected])