IGRA2 Downloader/Extractor

This work by Reto Stauffer (2019) is licensed under the Gnu General Public License v2 (GPLv2). If you improve and/or extend the code it would be great to send me a message and the extensions such that I can include the changes in the original repository.Repository is available on https://github.com/retostauffer/PyIGRA..

Features of the PyIGRA Script

Features of the tool:

search for available stations in the IGRA2 data set

download and extract the data set

specify output variables and output format

write data into an ASCII file

The tool is written in python2 and requires the following modules:

logging

ConfigParser

Install software (Linux; example for Ubuntu)

Usage

The package places two executables in your bin folder wherefore
the PyIGRA tool can be accessed anywhere on your system. To download
the data the station ID has to be known. PyIGRA_search provides
a handy alternative to search for a station bei either the station ID
or the station name. PyIGRA_search simply parses the IGRA station
list and returns possible matches on stdout. Example:

Usage: PyIGRA [options]
Options:
-h, --help show this help message and exit
-l LIMIT, --limit=LIMIT
Test/development option. Will only print the first
-l/--limit entries
-k, --keep Boolean flag, default is False. If set to True the
downloaded files will be kept
-i STATION_ID, --id=STATION_ID
Station identifier which should be processed.
-o OUTPUTFILE, --output=OUTPUTFILE
Filename. If set the output will be saved in this
file. If not set stdout is used.
-p PARAMETERS, --parameters=PARAMETERS
Comma separated list of strings which specify the
parameters which should be printed. If not set, the
ones from the config (or default config) will be used.