SORTIE Core C++ Documentation
Variables
Constants.h File Reference

Constant declarations. More...

Variables

const int MAX_VERSION_SIZE = 4
 Max length of version number string. More...
 
const std::string DETAILED_OUTPUT_FILE_EXT = ".xml"
 File extension for detailed output files. More...
 
const std::string ZIPPED_FILE_EXT = ".xml.gz"
 Zipped file extension. More...
 
const std::string GZIP_EXT = ".gz"
 GZIP file extension. More...
 
const std::string TARBALL_FILE_EXT = ".gz.tar"
 Zipped, tarred file extension - keep this lowercase always! More...
 
const std::string SHORT_OUTPUT_FILE_EXT = ".out"
 File extension for short output files. More...
 
const std::string TEXT_FILE_EXT = ".txt"
 File extension for text files. More...
 
const int DETAILED_OUTPUT_FILE_VERSION = 1
 File version for detailed output files. More...
 
const float QUADRAT_CELL_SIZE = 2
 Grid cell resolution for quadrat light. More...
 
const float CONVERT_TO_DEGREES = 57.29578
 Multiply radian values by this to get degrees. More...
 
const float CONVERT_TO_RADIANS = 0.0174533
 Multiply degree values by this to get radians. More...
 
const int M_SQ_PER_HA = 10000
 Number of square meters in a hectare. More...
 
const float VERY_SMALL_VALUE = 1e-5
 Small value - arbitrarily chosen - this is the smallest value that I can get to always have an effect on float precision. More...
 
const float CONVERT_IN_TO_CM = 2.54
 Multiply a value in inches by this to transform to cm. More...
 
const float CONVERT_CM_TO_IN = 0.394
 Multiply a value in cm by this to transform to inches. More...
 
const float CONVERT_LBS_TO_KG = 0.454
 Multiply a value in pounds by this to transform to kg. More...
 
const float CONVERT_KG_TO_LB = 2.20462262
 Multiply a value in kg by this to transform to lb. More...
 
const float CONVERT_KG_TO_MG = 0.001
 Multiply a value in kg by this to transform to metric tons (Mg) More...
 
const float CONVERT_G_TO_KG = 0.001
 Multiply a value in g by this to transform to kg. More...
 
const float CONVERT_MM_TO_CM = 0.1
 Multiply a value in mm by this to transform to cm. More...
 
const float CONVERT_CM_TO_MM = 10.0
 Multiply a value in cm by this to transform to mm. More...
 
const float CONVERT_MG_TO_KG = 1000
 Multiply a value in Mg by this to transform to kg. More...
 
const int MAX_SUBPLOT_NAME_SIZE = 100
 Size of subplot names. More...
 

Detailed Description

Constant declarations.

Copyright 2003 Charles D. Canham.

Author
Lora E. Murphy


Edit history:
--------------—
November 12, 2012 - Chars became strings (LEM)

Variable Documentation

◆ CONVERT_CM_TO_IN

const float CONVERT_CM_TO_IN = 0.394

Multiply a value in cm by this to transform to inches.

◆ CONVERT_CM_TO_MM

const float CONVERT_CM_TO_MM = 10.0

Multiply a value in cm by this to transform to mm.

◆ CONVERT_G_TO_KG

const float CONVERT_G_TO_KG = 0.001

Multiply a value in g by this to transform to kg.

◆ CONVERT_IN_TO_CM

const float CONVERT_IN_TO_CM = 2.54

Multiply a value in inches by this to transform to cm.

◆ CONVERT_KG_TO_LB

const float CONVERT_KG_TO_LB = 2.20462262

Multiply a value in kg by this to transform to lb.

◆ CONVERT_KG_TO_MG

const float CONVERT_KG_TO_MG = 0.001

Multiply a value in kg by this to transform to metric tons (Mg)

◆ CONVERT_LBS_TO_KG

const float CONVERT_LBS_TO_KG = 0.454

Multiply a value in pounds by this to transform to kg.

◆ CONVERT_MG_TO_KG

const float CONVERT_MG_TO_KG = 1000

Multiply a value in Mg by this to transform to kg.

◆ CONVERT_MM_TO_CM

const float CONVERT_MM_TO_CM = 0.1

Multiply a value in mm by this to transform to cm.

◆ CONVERT_TO_DEGREES

const float CONVERT_TO_DEGREES = 57.29578

Multiply radian values by this to get degrees.

◆ CONVERT_TO_RADIANS

const float CONVERT_TO_RADIANS = 0.0174533

Multiply degree values by this to get radians.

◆ DETAILED_OUTPUT_FILE_EXT

const std::string DETAILED_OUTPUT_FILE_EXT = ".xml"

File extension for detailed output files.

◆ DETAILED_OUTPUT_FILE_VERSION

const int DETAILED_OUTPUT_FILE_VERSION = 1

File version for detailed output files.

◆ GZIP_EXT

const std::string GZIP_EXT = ".gz"

GZIP file extension.

◆ M_SQ_PER_HA

const int M_SQ_PER_HA = 10000

Number of square meters in a hectare.

◆ MAX_SUBPLOT_NAME_SIZE

const int MAX_SUBPLOT_NAME_SIZE = 100

Size of subplot names.

◆ MAX_VERSION_SIZE

const int MAX_VERSION_SIZE = 4

Max length of version number string.

◆ QUADRAT_CELL_SIZE

const float QUADRAT_CELL_SIZE = 2

Grid cell resolution for quadrat light.

◆ SHORT_OUTPUT_FILE_EXT

const std::string SHORT_OUTPUT_FILE_EXT = ".out"

File extension for short output files.

◆ TARBALL_FILE_EXT

const std::string TARBALL_FILE_EXT = ".gz.tar"

Zipped, tarred file extension - keep this lowercase always!

◆ TEXT_FILE_EXT

const std::string TEXT_FILE_EXT = ".txt"

File extension for text files.

◆ VERY_SMALL_VALUE

const float VERY_SMALL_VALUE = 1e-5

Small value - arbitrarily chosen - this is the smallest value that I can get to always have an effect on float precision.

◆ ZIPPED_FILE_EXT

const std::string ZIPPED_FILE_EXT = ".xml.gz"

Zipped file extension.