LOWTRAN7 atmospheric absportion extinction model. Updated by Michael Hirsch to be platform independent and easily accessible from Python.
The main LOWTRAN program has been made accessible from Python by using direct memory transfers instead of the cumbersome and error-prone process of writing/reading text files.
The LOWFIL
program in reference/lowtran7.10.f was not connected as I had previously implemented my own filter function directly in Python.
The LOWSCAN
spectral sampling (scanning) program in reference/lowtran7.13.f was not connected as I had no need for coarser spectral resolution.
Python API Author: | Michael Hirsch |
---|---|
License: | MIT |
Contents
python setup.py develop
python DemoLowtran.py -a 0 12.5 25
should generate the plot shown above on your screen.
This is not necessary for normal users:
cd bin cmake .. make ./testlowtran
should generate this text output.
LOWTRAN7 User manual -- you may refer to this to understand what parameters I've set to default. Currently I don't have any aerosols enabled for example, though it's trivial to add.
Right now a lot of configuration features aren't implemented, please request those you want.
(this is handled automatically by setup.py, noted here for debugging)
Yes, even though you're using a 64-bit compiler:
f2py --compiler=mingw32 -m lowtran7 -c lowtran7.f
Tested on Windows with MinGW.
Normal users don't need to do this. I suggest that you instead use Cygwin or Windows Subsytem for Linux:
cd bin cmake -G "MinGW Makefiles" .. make ./testlowtran