Skip to main content

ParFlow sandtank using trame

Project description

ParFlow sandtank using trame

  • Free software: Apache Software License

Development

Create a virtual environment

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip

Build and install ParFlow if not available on your system. Please look are Linux.readme or MacM1.readme for additional system requiements.

./parflow/build-parflow.sh
./parflow/build-ecoslim.sh

Build and install the Vue components

cd vue-components
npm i
npm run build
cd -

Install the application

pip install -e .

Run the application

source ./parflow/activate.sh # Only if parflow is not already available
trame-sandtank --input ./templates/default --output ./data

Usage / testing

You will need to run the following set of command line once

# get code
git clone git@github.com:HydroFrame-ML/trame-sandtank.git
cd trame-sandtank

# create venv
python3 -m venv .venv # use 3.9 on Mac M1
source .venv/bin/activate
pip install -U pip

# create a local ParFlow + EcoSLIM
./parflow/build-parflow.sh
./parflow/build-ecoslim.sh

# install sandtank
pip install .

Then once your environment is setup, you can execute the sandtank application by running the following command lines.

# Activate venv + parflow
source .venv/bin/activate
source ./parflow/activate.sh

# Run a given template
trame-sandtank --input ./templates/default --output ./data

To use your own ParFlow + EcoSLIM just set PARFLOW_DIR and ECOSLIM_EXEC environment variables.

To try within Jupyter once you’ve installed it by pip install jupyterlab

# Activate venv + parflow
source .venv/bin/activate
source ./parflow/activate.sh

# Run a given template
jupyter-lab

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trame-sandtank-1.0.0.tar.gz (2.2 MB view hashes)

Uploaded Source

Built Distribution

trame_sandtank-1.0.0-py3-none-any.whl (2.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page