https://github.com/space-physics/lwpc
SPAWAR LWPC longwave propagation code v.2.1
https://github.com/space-physics/lwpc
geoscience longwave propagation simulation
Last synced: 4 months ago
JSON representation
SPAWAR LWPC longwave propagation code v.2.1
- Host: GitHub
- URL: https://github.com/space-physics/lwpc
- Owner: space-physics
- License: mit
- Created: 2018-10-11T17:19:02.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T05:35:42.000Z (over 4 years ago)
- Last Synced: 2025-02-07T04:34:29.677Z (12 months ago)
- Topics: geoscience, longwave, propagation, simulation
- Language: Fortran
- Size: 7 MB
- Stars: 11
- Watchers: 4
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# LWPC v.2.1
SPAWAR LWPC Longwave Propagation Code v.2.1 was
[described](http://www.spawar.navy.mil/sti/publications/pubs/td/3030/td3030.pdf),
[validated](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2010JA016248),
and
[used](https://journals.ametsoc.org/doi/full/10.1175/JTECH-D-11-00174.1)
by numerous authors.
Here we present a Python interface to the original Fortran code.
Minimum edits to source to compile on modern (non-Watcom) Fortran compilers such as Gfortan.
## Build
```sh
cmake -B build
cmake --build build
```
## Run
```sh
./lwpc
```
the file `output/lwpm.lwf` is created with the simulation output, the console says "Normal run complete" and stderr is 0.
### Examples
Several example inputs are provided:
```sh
./lwpc ../gcpath
./lwpc ../lwpm
./lwpc ../jammer
./lwpc ../bearings
./lwpc ../lwflds
```
## Read output
```sh
./scan
../output lwpc.lwf
```
will create text file "scan.log" that will help confirm the simulation was run correctly.