You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,11 @@
9
9
10
10
# Lowtran in Python
11
11
12
-
LOWTRAN7 atmospheric absorption extinction model. Updated by Michael
13
-
Hirsch to be platform independent and easily accessible from Python.
12
+
LOWTRAN7 atmospheric absorption extinction model.
13
+
Updated by Michael Hirsch to be platform independent and easily accessible from Python.
14
14
15
-
The main LOWTRAN program has been made accessible from Python by using
16
-
direct memory transfers instead of the cumbersome and error-prone
17
-
process of writing/reading text files. xarray.Dataset high-performance
18
-
N-D array data is passed out, with all appropriate metadata.
15
+
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.
16
+
`xarray.Dataset` high-performance, simple N-D array data is passed out, with appropriate metadata.
19
17
20
18
21
19
## Gallery
@@ -26,7 +24,9 @@ See below for how to make these examples.
26
24
27
25
## Install
28
26
29
-
1. You need a Fortran compiler. If you don't have one, here is how to install Gfortran:
27
+
1. A Fortran compiler such as `gfortran` is needed.
28
+
We use `f2py` (part of `numpy`) to seamlessly use the Fortran Lowtran library from Python.
29
+
If you don't have one, here is how to install Gfortran:
30
30
31
31
* Linux: `apt install gfortran`
32
32
* Mac: `brew install gcc`
@@ -78,21 +78,25 @@ Right now a lot of configuration features aren't implemented, please request tho
78
78
### Fortran (optional)
79
79
80
80
This is not necessary for normal users:
81
+
```sh
82
+
cd bin
83
+
cmake ..
84
+
cmake --build .
85
+
ctest -V
86
+
```
81
87
82
-
cd bin
83
-
cmake ..
84
-
make
85
-
make test
86
-
87
-
should generate [this text output](https://gist.github.com/drhirsch/89ef2060d8f15b0a60914d13a61e33ab).
88
+
should generate
89
+
[this text output](https://gist.github.com/drhirsch/89ef2060d8f15b0a60914d13a61e33ab).
88
90
89
91
### Windows f2py
90
92
91
93
(this is handled automatically by `setup.py`, noted here for debugging)
92
94
93
-
Yes, even though you're [using a 64-bit compiler](https://scivision.co/f2py-running-fortran-code-in-python-on-windows/):
94
-
95
-
f2py --compiler=mingw32 -m lowtran7 -c lowtran7.f
95
+
Yes, even though you're
96
+
[using a 64-bit compiler](https://scivision.co/f2py-running-fortran-code-in-python-on-windows/):
0 commit comments