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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for trame_sandtank-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | addb10372a2c4900a748af1e37e969a95e5b0a8c98c9e3ec094648f9fc51bc2e |
|
MD5 | a85851f5cc9dd20a260ad689937f22e0 |
|
BLAKE2b-256 | eff48f4eb0f0a897ae5da64edb6c8821e927e5480c96d2a7742322bc976a798e |