Difference between revisions of "Topmodel"

From SourceWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
 
==Introduction==
 
==Introduction==
  
Line 8: Line 7:
 
Thanks go to Keith Beven, who wrote the original TOPMODEL in Fortran, and Huidae Cho, for the C code base (originally implemented in GRASS GIS)
 
Thanks go to Keith Beven, who wrote the original TOPMODEL in Fortran, and Huidae Cho, for the C code base (originally implemented in GRASS GIS)
  
The following examples are currently available:
+
For a fully documented example, see the [[hydrology in R]] pages
  
* [[various functions, including data processing and topographic index calculation]]
 
* [[running topmodel]]
 
* [[GLUE uncertainty analysis]]
 
  
 
==Downloads==
 
==Downloads==
  
* Windows binary (experimental)
+
* [http://www.paramo.be/topmodel/topmodel_0.3.zip Windows binary (experimental)]
* Linux source package
+
* [http://www.paramo.be/topmodel/topmodel_0.3.tar.gz Linux source package]
* Universal MacOS X package (experimental)
+
* [http://www.paramo.be/topmodel/topmodel_0.3.tgz Universal MacOS X package (experimental)]
  
 
==Installation==
 
==Installation==
  
Windows
+
===Windows===
  
 
Local packages can be installed from the menu. Choose "install package(s) from local zip files" and select the downloaded topmodel_0.3.zip file.
 
Local packages can be installed from the menu. Choose "install package(s) from local zip files" and select the downloaded topmodel_0.3.zip file.
  
Linux
+
===Linux===
  
 
Use the normal procedure of installing a package in R:
 
Use the normal procedure of installing a package in R:
  
> R CMD install topmodel_0.3.tar.gz
+
  > R CMD install topmodel_0.3.tar.gz
 +
 
 
Developer tools, including gcc, must be installed.
 
Developer tools, including gcc, must be installed.
  
Mac
+
===Mac===
  
 
Go to the Package Installer (Packages and Data menu), select "Local Binary Package", click install and select the downloaded package
 
Go to the Package Installer (Packages and Data menu), select "Local Binary Package", click install and select the downloaded package
Loading
+
 
 +
==Loading==
  
 
Once in R you need to load the package before you can use it:
 
Once in R you need to load the package before you can use it:
  
> library(topmodel)
+
  > library(topmodel)
 +
 
 +
==Function overview==
 +
 
 +
For the full documentation, see the installed manpages in R

Revision as of 02:53, 5 May 2008

Introduction

The package TOPMODEL contains some functions and code snippets for hydrological data analysis with R, that may eventually make it into a properly released R package. For now, the code can be downloaded on this page and used at your own risk, without official support (although I very much welcome all feedback). The core of the package is an implementation of the venerable TOPMODEL.

Information on R, including downloads, installation and a great choice of manuals can be found on the R website. If you follow strictly the examples used below, you will be able to run TOPMODEL with a very limited R knowledge. However, R has a great potential for pre- en postprocessing of the data (including uncertainty analysis and statistics), so a more extensive knowledge of R is highly recommended!

Thanks go to Keith Beven, who wrote the original TOPMODEL in Fortran, and Huidae Cho, for the C code base (originally implemented in GRASS GIS)

For a fully documented example, see the hydrology in R pages


Downloads

Installation

Windows

Local packages can be installed from the menu. Choose "install package(s) from local zip files" and select the downloaded topmodel_0.3.zip file.

Linux

Use the normal procedure of installing a package in R:

  > R CMD install topmodel_0.3.tar.gz

Developer tools, including gcc, must be installed.

Mac

Go to the Package Installer (Packages and Data menu), select "Local Binary Package", click install and select the downloaded package

Loading

Once in R you need to load the package before you can use it:

  > library(topmodel)

Function overview

For the full documentation, see the installed manpages in R