adisalib¶
Download and install
Download
the latest version as gzipped tarball and (for Linux) untar and
install as root:
tar -xvzf adisalib-latest.tar.gz
cd adisalib<-x.y.z-yyyy-mm-dd>
sudo python setup.py install
Now the module can be used in python scripts by
import adisalib
The module has never been tested with Windows, but it should work.
ICAO Standard Atmosphere (ISA) - functions and routines
Warning
adisalib calculates ISA only up to 32000 gpm!
Note
This module makes use of the numpy library. NumPy is the fundamental package for scientific computing with Python. Make sure you have it installed. See http://www.numpy.org/ and http://sourceforge.net/projects/numpy/
Both Python 2.7 and Python >= 3.4 compatibility assured.
The core routines of the library are:
- isa_pressure(height)
- isa_density(height)
- isa_temperature(height)
- isa_height(pressure)
- isa_QNH(barometer_altitude, pressure)
- isa_QFE(barometer_altitude, arp_altitude, pressure)
- isa_densityaltitude(density)
- isa_table(h1,h2,dh)
Added are a couple of constants, variables and conversion routines (see below). A simple demo program that produces a matplotlib-graphic can be found at www.foehnwall.at/isa.html.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License. If not, see <http://www.gnu.org/licenses/gpl.html> .
-
adisalib.
c2k
(tk)¶ Converts temperature in Celsius to temperature in Kelvin
-
adisalib.
celsius2kelvin
(tc)¶ Converts temperature in Celsius to temperature in Kelvin
-
adisalib.
f2m
(foot)¶ Converts foot to meter
-
adisalib.
foot2meter
(foot)¶ Converts foot to meter
-
adisalib.
isa_QFE
(barometer_altitude, arp_altitude, pressure)¶ Returns QFE (pressure at aerodrome reference point arp) as function of:
barometer_altitude in gpmarp_altitude in gpmpressure … pressure reading at baromter_altitude in hPa
-
adisalib.
isa_QNH
(barometer_altitude, pressure)¶ Returns QNH in hPa below 3200 gpm aas numpy array
barometer_altitude in gpmpressure … barometer reading in hPa at barometer altitude as numpy array
-
adisalib.
isa_density
(hh)¶ Density in ISA below 32000 gpm
hh … altitude in gpmisa_density … density kg/m**3 at level hh
-
adisalib.
isa_densityaltitude
(density)¶ ISA-density altitude for a given air density
rho … actual air densityisa_densityaltitude … altitude where ISA-density equals rho (in gpam)
-
adisalib.
isa_height
(pressure)¶ Height in ISA below 32000 gpm as function of pressure
pp … pressure in hPaisa_height .. height in gpm
-
adisalib.
isa_pressure
(height)¶ Pressure in ISA below 32000 gpm as function of height
hh … altiude in gpmisa_pressure .. pressure at level hh in hPa
-
adisalib.
isa_table
(h1=0, h2=32000, dh=500, csv=False)¶ Prints a table with ISA-Data.
h1 and h2 … lower and upper vertical boundary in Meterdh … vertical increment in Metercsv … flag (locical)True … the output is a CSV-formatted file with a semicolon ‘;’as field separator and a dot ‘.’ as decimal separator.False … Textfile
-
adisalib.
isa_temperature
(hh)¶ Temperature of ISA-Standardatmosphere as function of altitude
z … altitude in gpmisa_temperature … ISA temperature in K
-
adisalib.
k2c
(tk)¶ Converts temperature in Kelvin to temperature in Ceslius
-
adisalib.
kelvin2celsius
(tk)¶ Converts temperature in Kelvin to temperature in Ceslius
-
adisalib.
m2f
(meter)¶ Converts meter to foot
-
adisalib.
meter2foot
(meter)¶ Converts meter to foot