7-Day SELES Course Day 6

From SELESwiki

Jump to: navigation, search

Back to Course Index

Model Configuration Language (.sel files)

General

  • Declarative: defines structural configuration
  • Each block (subsection) can appear in any order
  • Case insensitive

Dynamic Model (.sel files)

  • Specifies landscape events to include
  • Links variables in landscape events to global variables and rasters
  • Sets up output of raster layers
  • First line: Seles Model

Setting Time Unit

  • Set “meaning” of a single time unit and a meta-unit

Examples:

  • Time Units: Day Year 365.25 136525
  • Time Units: Year Century 100 250

Including Landscape Events

  • Example:
Landscape Events:
Succession.lse
Logging.lse DEBUG
Fire.lse OFF

Global Constants and Variables

  • Can be single values, vectors, arrays
  • Initial state can be specified directly or read from a text file
  • Single-value variables automatically show on user interface

Example:

Global Constants:
CellWidth = 100
HaPerCell = (CellWidth*CellWidth)/10000
MaxStandAge = 540

Global Constants and Variables

Example:

Global Variables:
usePatchSizeDist = FALSE
GreenupYears = Expr
REAConstraints= ".\REAConstraints.txt“
NRL = 24700, 8500, 5300
HarvestProfile[NumSppCodes]=
ApplyPlanting = TRUE OFF

Variable-View 1-to-Many Mapping

Image:8-6.gif

Image:9-6.gif

Variable-View Mappings

Example:

Variable-Input View Maps:
BEC = Bec
Elevation
ITG = initialITG
Variable-Output View Maps:
ITG = ITG

Variable-View Mappings

  • Input views must exist
  • If output views do not exist, they will be created
  • A layer variable should appear only once in a map

Variable-View Mappings

Image:12-6.gif

Output View Bounds

  • Bounds need to optimize memory and for display
  • Default: bounds of input view
  • Layer values are signed

Example:

Output Model Bounds:
Age: MaxStandAge
VolPerCell: MaxVolPerHa * HaPerCell + 1
SusceptibilityIndex: 0, 100


Output View Refresh Frequency

  • Currently: can only specify for all views
  • Can change on user interface

Example:

Output Frequency: 365.25

Output View Save Frequency

  • ViewName Frequency BaseFilename Type
  • Actual filename: apped to base filename #Run.#Seq where Run is the simulation run number and Seq is the sequence number

Example:

Output Model Frequency:
HSI Freq: 365.25 Filename: “.\cell\HSI" Type: GRASS COMPRESSED
ITG Freq: ReportRate Filename: “.\gisData\ITG.asc" Type: ARC ASCII

Legends

  • Define vectors of labels

Example:

Legends:
SppLegend = “.\cats\spp”
SoilTypes = “soilType.txt”
MgmtType = {1:CC, 2:VR}

Macros

  • Define vectors of expressions

Example:

Macros:
testMacro = macro1.txt

A note on constants

  • Can appear in input files
Personal tools