SORTIE-ND
Software for spatially-explicit simulation of forest dynamics

I/O

There is one main type of input file in the model - the parameter file. There are two kinds of output files - the short, or summary, output file, and the detailed output file. Detailed output files can be incorporated into parameter files to act as input.

The parameter file and the detailed output file are written in XML. The detailed output file is then compressed. Short output files are written in tab-delimited text.

XML files are plaintext files. Data within the files is tagged in a SORTIE-ND-specific way. (If you need to know more about XML, W3C has a good XML tutorial at http://www.w3schools.com/xml/default.asp.) Files written in XML can be traded between different kinds of computers with no conversions. XML is an open web standard and is widely used, which means other people have already written lots of software for dealing with it. SORTIE-ND uses a few of these third-party tools for its own XML.

File type codes

Each file has a code at the beginning that identifies the file format and version. The code has 8 digits. The first two are the major model version, the second two are the minor model version, the third two are the file type, and the fourth two are the file version. Here are the file type codes:

  • 01 - parameter file
  • 02 - tree definition file (initial densities and/or tree map in combination)
  • 03 - tree map file only
  • 04 - batch file
  • 05 - grid map file
  • 06 - detailed output file
  • 07 - detailed output timestep file