Skip to content

Commit

Permalink
Merge pull request #475 from ua-snap/DA_workflow
Browse files Browse the repository at this point in the history
The branch is named DA_workflow, but the code implements a basic sensitivity analysis.

This branch introduces a new Python module and class (Sensitivity, SensitivityDriver) which help carry out a sensitivity analysis workflow. Additionally there is a Jupyter notebook that demonstrates the usage of the new code.

This also introduces a bunch of changes (additions) to the param_util.py script that improve the Python API.
  • Loading branch information
tobeycarman authored Nov 29, 2021
2 parents 584e117 + 8be71fb commit d09ec14
Show file tree
Hide file tree
Showing 14 changed files with 7,432 additions and 13 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ RUN python --version
RUN pip install -U pip pipenv
RUN pip install matplotlib numpy pandas bokeh netCDF4 commentjson
RUN pip install ipython
RUN pip install jupyter
RUN pip install lhsmdu
COPY --chown=develop:develop special_configurations/jupyter_notebook_config.py /home/develop/.jupyter/jupyter_notebook_config.py

#RUN pip install gdal ## Doesn't work...
#RUN pip install GDAL ## Doesn't work...
# docker build --target dvmdostem-build --tag dvmdostem-build:0.0.1 .
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ services:
tty: true
build: .
image: dvmdostem-run:0.0.1
ports:
- "8888:8888"
volumes:
- sourcecode:/work
- inputcatalog:/data/input-catalog
Expand Down
8 changes: 8 additions & 0 deletions docker-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# This script will install the docker.
# Note: The installation could take a while, please be patient.

docker build --target cpp-dev --tag cpp-dev:0.0.1 .
docker build --target dvmdostem-build --tag dvmdostem-build:0.0.1 .
docker build --target dvmdostem-run --tag dvmdostem-run:0.0.1 .
docker build --tag dvmdostem-mapping-support:0.0.1 -f Dockerfile-mapping-support .
6 changes: 3 additions & 3 deletions parameters/cmt_calparbgc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@
// soil calibrated parameters
0.750000 // micbnup: parameter for soil microbial immobilization -8.06e-05of N
0.091946 // kdcrawc: raw-material (litter) C decompositin rates at reference condition was 0.068946
0.0230919 // kdcsoma was 0.094519
0.020800 // kdcsompr was 0.009000
0.000005 // kdcsomcr was 0.000005
0.0230919 // kdcsoma: was 0.094519
0.020800 // kdcsompr: was 0.009000
0.000005 // kdcsomcr: was 0.000005
//===========================================================
// CMT06 // Wet Sedge Tundra // Calibrated for Toolik area.
//Decid Sedges Grasses Forbs Lichens Feather Sphag PFT7 PFT8 PFT9 // pftnames
Expand Down
Loading

0 comments on commit d09ec14

Please sign in to comment.