MHYDAS Installation

From OpenFLUID

Jump to: navigation, search

Contents

Digital representation of catchments (Geo-MHYDAS)

Linux

Ubuntu

The archive of Geo-MHYDAS contains:
- README (this document) which explain the procedure
- src : source codes and uninstall-seg-doc ( removing help documentation script)
- doc : quick tutorial, help documentation in html and pdf format.
- license : GPL license file


1- Install GRASS GIS Software (if not already installed) The GRASS version must be superior or equal to 6.3. This procedure will explain how to install grass 6.4.1 on Ubuntu 10.04 Lucid Lynx.
Add repository

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install grass

To get more informations about GRASS GIS Software, go to [1]/

2- Install Geo-MHYDAS sources
By default, the sources directory is $HOME. The following procedure will be explained for this directory, if you want to change it, don't forget to modify the path.
In your $HOME directory, create a geomhydas directory:

mkdir ~/geomhydas

Copy src into ~/geomhydas directory

cp ./src ~/geomhydas

Be sure that you have the right to execute these scripts (use chmod)

chmod a+x -R ~/geomhydas


3- Modify .profile files that allows GRASS to see these scripts
Adding this line to ~/.profile file

PATH=$PATH:$HOME/geomhydas

You need to restart your X server.

4- Install Geo-MHYDAS help documentation
Copy Geo-MHYDAS_help (be careful, you will be root user !). In the Geo-MHYDAS package, go to doc/html directory and copy all files into /usr/share/doc/grass-doc/html

Now, html help documentation can be called in grass by :

g.manual m.*

This will launch your web browser with the desired html page.

Surface fluxes modelling (MHYDAS)


The MHYDAS modules are packages of OpenFLUID simulation functions. Note that some packages requires other packages to work (e.g. mhydas-hydrosurf functions package requires standard functions package)
Prerequisite: The OpenFLUID software MUST be installed before installation of the MHYDAS model (see OpenFLUID installation instructions).

Linux

Ubuntu

Install openfluid-functions-mhydas-* functions, running the following command from the directory where the .deb mhydas packages are located:

dpkg -i openfluid-functions-mhydas*

RedHat/Fedora

TODO

Other

TODO

Windows

Unpack the openfluid-functions-x.xx_win32.zip file into a temporay directory (eg c:\User\...\Download\);

Inside this new directory, copy and merge the lib and share directories (eg c:\User\...\Download\openfluid-functions-x.xxwin32\lib and c:\User\...\Download\openfluid-functions-x.xxwin32\share) into the default OpenFLUID installation directory (eg C:\OpenFLUID-x.xx\).

You can launch OpenFLUID with the graphical interface (OpenFLUID-builder) by clicking in the start Menu, all Programs, OpenFLUID-x.xx, and the OpenFLUID-builder icon
Or you can launch OpenFLUID with the command line (OpenFLUID-engine) with a command invit (Start Menu, all Programs, accessories, command invit); run the following command to have the help of openfluid:

openfluid-engine --help

If you want to install OpenFLUID simulation functions (the .dllmpi files) into another directories than the default directory (eg : c:\users\...\my_directory_function),
you have to add this directory into the openfluid-engine searched path, using the -p command line option like in this example:

openfluid-engine -p c:\users\...\my_directory_function  


MacOSX

TODO

Personal tools