eoas-ubc / eoas_tlef

developing jupyter courseware for eoas 2020
BSD 3-Clause "New" or "Revised" License
4 stars 6 forks source link

voila dashboards for EOSC 340 #40

Open phaustin opened 4 years ago

phaustin commented 4 years ago
phaustin commented 4 years ago

The following is working for me on windows:

  1. open a wsl2 ubuntu shell in terminal
  2. git clone https://github.com/phaustin/modtran
  3. git checkout -b cmake origin/cmake
  4. cd modtran/reference
  5. sudo apt-get install gfortran cmake make
  6. mkdir build
  7. cd build
  8. cmake ..
  9. make install

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.

phaustin commented 3 years ago

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

hari-ushankar commented 3 years ago

Modtran dashboard code: https://github.com/hari-ushankar/modtran-dash/tree/add_features

phaustin commented 3 years ago

libradtran docker container: https://github.com/phaustin/isofit_docker

phaustin commented 3 years ago

How to run a docker container from python:

https://docker-py.readthedocs.io/en/stable/containers.html

example:

https://github.com/svx/actions-words-really-matter