Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • hru-delin hru-delin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous invitons à y créer vos nouveaux projets.

  • hru-delin-devhru-delin-dev
  • hru-delinhru-delin
  • Wiki
  • Home

Home · Changes

Page history
Create home authored May 02, 2020 by Veyssier Julien's avatar Veyssier Julien
Hide whitespace changes
Inline Side-by-side
home.md 0 → 100644
View page @ 5e1bbf4e
[[_TOC_]]
# HRU delin next gen
HRU delin used to work with grass6 only. This version brings compatibility with grass7 (and looses compatibility with grass6).
## Differences with HRU delin v5
* Grass7 compatibility
* Parallelized process in step2, step3 and step4
* Launch scripts now accept an optional parameter to specify where to find the config file (with any name)
* Advanced progression display
* Automatic grass environment building, no more need to build a "case"
* Flexibility in config file values path (accepts relative and absolute path)
* Flexibility in user location when running launch scripts
* New launch script to run all steps
* No more system calls (to awk, grep, sed...) -> code is now portable to Windows
* Use pipes between grass tools to avoid some hard disk access (avoid writing some intermediate files)
## Install
### Dependencies
You'll need some Python3 modules to be able to run HRU delin.
* TQDM: display progress
* Pandas: read/write tabular files and perform some computations
* dbf: write dbf versions of hru.par and reach.par
On Debian/Ubuntu/Mint/... you can install those with your package manager like that:
``` bash
sudo apt install python3-pandas python3-dbf python3-tqdm
```
If you don't have administrator rights but still have pip3 installed:
``` bash
pip3 install --user pandas dbf tqdm
```
### HRU delin
Get the release archive and extract it somewhere. Then make sure the `bin` directory is in your `PATH` environment variable. Here is an example procedure:
``` bash
# go to your home directory
cd
# extract the archive (adapt the path to the archive)
tar xvf Downloads/hru-delin-v7.tar.bz2
cd hru-delin
# add bin directory to your PATH variable
echo 'export PATH='`pwd`/bin':$PATH' >> ~/.bashrc
```
That's is, now every **new** terminal will be able to run HRU delin. To check if everything is fine, open a new terminal and type
``` bash
which hru-delin_step1.sh
```
It should display something like `/home/myname/hru-delin/bin/hru-delin_step1.sh`. If not, there's something wrong.
\ No newline at end of file
Clone repository
  • Home