Index of /tcl/ftparchive/sorted/databases/pamf

      Name                   Last modified     Size  Description

[DIR] Parent Directory 29-Jan-99 12:24 - [   ] README 01-Nov-95 13:46 1k

SDB example using the Prince Albert Model Forest (PAMF) datasets.

This directory contains a simple succesion model.  The directory
contains:

pamf.tcl		A script to load files into a SDB cursor
pamf.inv 		The inventory file to be loaded
normal.yld		A set of yield curves
multispp.rul		Additional attributes stored in a relational table

nat_succ.dat		A state table of succession rules in HSG format.
regnsucc.dat		A state table of post-harvest rules in HSG format.
mk_rule.tcl		A script to convert succession rules to SDB format.
succession.tcl		The output of the succession rule conversion script.

To load the model start the sdbtcl program and enter
  'source pamf.tcl'

This will load all of the databases and define the correct fields
for automatic volume calculation.

Once the model is set up the age of the inventory can be advanced by 
changing the 'date' variable, e.g.:  
    set pamf(date) 2010

To apply the natural succession rules use a calculate command:
     pamf calculate $NaturalSuccession
or better yet, use a select command so that records that undergo a
transition become the selected set:
     pamf select and $NaturalSuccession


At any time in the simulation you can generate queries using the 
'summary' command:
    pamf summary CODE SITE AREA Volume


To build HSI models use the 'define' command to create an
expression, or the 'join' command to apply a suitability matrix.