Open phaustin opened 4 years ago
The following is working for me on windows:
git clone https://github.com/phaustin/modtran
git checkout -b cmake origin/cmake
modtran/reference
cmake ..
This should leave you with two binaries in reference/bin: mktape
-- compiled from mktape5.f is supposed to read values from the command line and produce an output file that can be used as the input
for testmodtran. To see what the mktape output looks like, take a look at the some of the sample output files like; this one from voila-eoas --those initial rows are a printout of the input file that modtran ran to produce that output.
The objective is to figure out how all this works, but putting the right inputs into mktape and getting a duplication of the modtran website results when we run modtran on the mktape output.
April 12:
1) new functions to read a libradtran sounding, operate on it (double CO2, 2Xwaterr vapor) , write it out and run uvspec on new sounding 2) write a script that reproduces all the modtran cases in the new uvspec format, and use those in dashboard instead of modtran output 3) call uvspec from within ap using the subprocess module to run the docker container 4) pass all dashboard parameters to the app, modify the soundings, select height, up/down etc. and then call uvspec
Modtran dashboard code: https://github.com/hari-ushankar/modtran-dash/tree/add_features
libradtran docker container: https://github.com/phaustin/isofit_docker
How to run a docker container from python:
https://docker-py.readthedocs.io/en/stable/containers.html
example: