Skip to content
/ abura Public

Semi-automatic downloader for IGRA2/ISD datasets

License

Notifications You must be signed in to change notification settings

coeusite/abura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semi-auto downloader for IGRA2 & ISD datasets

Installing

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

Dependency

This module depends on:

  • wget

Using

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.

Developing

Testing scripts have not been implemented yet.

Notes

  • auto retry infinitely when 530 error occurs (Maximum number of connections exceeded).

Contact

For further questions, please open an issue or contact CoeusITE ([email protected])

About

Semi-automatic downloader for IGRA2/ISD datasets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages