3. adrasolib

Download and install

Download the latest version as gzipped tarball and (for Linux) untar and install as root:

tar -xvzf adrasolib<-x.y.z-yyyy-mm-dd>.tar.gz
cd adrasolib<-x.y.z-yyy-mm-dd>
sudo python setup.py install

Now the module can be used in python scripts by

import adrasolib

The module has never been tested with Windows, but it should work.

Retrieves and displays meteorological radiosonde data

(rudimentary support for soundings from the University of Wyoming http://weather.uwyo.edu/cgi-bin/sounding )

It can both be used as a library and as a stand alone program

./adrasolib.py [statnr [fromtime] ]
eg. ./adrasolib.py 11010 03

The radiosonde from Linz-Hoersching (11010) with a start time between 03UTC and 03+6 = 09UTC is retrieved and plot to a file in the directory ~/rasograph/ .

The html-stripping script of http://www.aaronsw.com/2002/html2text/ must be in the same directory.

This program is available under the license GNU GPL 3.0. http://www.gnu.org/licenses/gpl-3.0

adrasolib.VERSION = '0.1.1-2013-04-10'

Module version

adrasolib.WYOMINGRASOREGIONS = set(['europe', 'seasia', 'samer', 'africa', 'ant', 'nz', 'pac', 'mideast', 'np', 'naconf'])

List of regions

adrasolib.getrasowyoming(statnr, region, year, month, fromddhh, toddhh)[source]

Get Raso-data from the University of Wyoming http://weather.uwyo.edu/cgi-bin/sounding and convert them into a list of text data that can be processed further. with help of modul adhtml2text that is derived from http://www.aaronsw.com/2002/html2text/

statnr .. stationnumber as a string
region .. an element of WYOMINGRASOREGIONS
year .. as string
month .. as string
fromddhh .. like ‘3100’
toddhh .. like ‘3112’

Converts html-stripped raso-text data in the University of Wyoming format from input-list “rasodata” to numpy 2-D data arrays that can be processed further.

adrasolib.plot_raso_simple(graphpath, rasodata)[source]

Plots a simple temperature and dew point difference plot versus pressur and safes the graphic to “graphpath” from the parsed Wyoming-Raso-Data in “rasodata”