Difference between revisions of "Worldfiles"
From Rhessys
Jump to navigationJump to searchm (→Variables) |
|||
Line 157: | Line 157: | ||
| daver||map||Outputs the average integer value in map | | daver||map||Outputs the average integer value in map | ||
|- | |- | ||
− | | aver||map|| | + | | aver||map||Outputs the average float value in map |
|- | |- | ||
− | | spavg||map|| | + | | spavg||map||Output the spherical average (float) in map |
|- | |- | ||
− | | mode||map|| | + | | mode||map||Outputs the average float value in map |
|- | |- | ||
− | | area|||| | + | | area||||Outputs the area |
|- | |- | ||
− | | count||map|| | + | | count||map||Outputs the number of categories in map |
|- | |- | ||
− | | deqn||multiply, add, map|| | + | | deqn||multiply, add, map||Outputs (average integer value in map ) * multiply + add |
|- | |- | ||
− | | eqn||multiply add map|| | + | | eqn||multiply add map||Outputs (average float value in map ) * multiply + add |
|- | |- | ||
− | | dvalue||integer_value|| | + | | dvalue||integer_value||Outputs integer_value |
|- | |- | ||
− | | value||float_value|| | + | | value||float_value||Outputs float_value |
|} | |} |
Revision as of 09:29, 30 October 2009
Be warned that the grass2world parser program is not very flexible when it comes to file layout, so be careful when creating your template files. The template file is parsed based on the order in which variables occur, and all fields must be specified.
A world file consists of three parts. First, there are two dates giving the start and end time of the simulation. Second, is a list of support files, such as def files and met station information that grass2world must incorporate. The last and largest section, sets initial values for various parameters at various spacial levels. A generic template file would be layed out like so:
<start date: year month day hour> <end date: year month day hour> <number of basin defs> ..paths to basin defs <number of hillslope defs> ..paths to hillslope defs <number of zone defs> ..paths to zone defs <number of soil defs> ..paths to soils defs <number of landuse defs> ..paths to landuse defs <number of vegetation defs> ..paths to vegeation defs <number of met stations> ..paths to met stations _world <map> <extent=1> _basin <map> <extent=1> <basin variable> <function> <parameters> _hillslope <map> <extent=1> <hillslope variable> <function> <parameters> _zone <map> <extent=1> <zone variable> <function> <parameters> _patch <map> <extent=1> <patch variable> <function> <parameters> _stratum <map> <extent={integer >0}> <stratum variable> <function> <parameters>
Variables
Functions
Name | Parameters | Description |
daver | map | Outputs the average integer value in map |
aver | map | Outputs the average float value in map |
spavg | map | Output the spherical average (float) in map |
mode | map | Outputs the average float value in map |
area | Outputs the area | |
count | map | Outputs the number of categories in map |
deqn | multiply, add, map | Outputs (average integer value in map ) * multiply + add |
eqn | multiply add map | Outputs (average float value in map ) * multiply + add |
dvalue | integer_value | Outputs integer_value |
value | float_value | Outputs float_value |