|
void | GetParameterFileData (xercesc::DOMDocument *p_oDoc) |
| Declares arrays and fills them with parameter file data. More...
|
|
void | SetupGrid () |
| Populates required grid pointers. More...
|
|
void | DoLightSetup () |
| Performs calculations required of light. More...
|
|
float | GetGLI (clTreePopulation *p_oPop, const float &fX, const float &fY) |
| Gets the GLI for a given point. More...
|
|
void | GetTreeDataMemberCodes () |
| Gets the return codes for needed tree data members. More...
|
|
float | GetLightFavorability (const int &iSpecies, const float &fGLI) |
| Calculates the light favorability for a given species and GLI. More...
|
|
float | GetLightExtinctionCoefficient (clTree *p_oTree) |
| Gets the light extinction coefficent. More...
|
|
void | AddTreeToGliFishEye (const float &fTargetX, const float &fTargetY, const float &fTargetHeight, clTree *p_oNeighbor, clPlot *p_oPlot, clTreePopulation *p_oPop, clAllometry *p_oAllom) |
| Adds one shading neighbor to the fisheye photo array for a GLI calculation. More...
|
|
void | GLIFisheyeNoCanopyIntersect (const float &fTargetX, const float &fTargetY, const float &fNeighX, const float &fNeighY, const float &fNeighCanrad, const float &fNeighHeight, const short int &iNeighSpecies, const float &fTargetHeight, const float &fDistToNearEdge, clTree *p_oNeighbor, clPlot *p_oPlot, clAllometry *p_oAllom) |
| Adds one shading neighbor to the fisheye photo array for a GLI calculation when the canopies of the two trees do not overlap. More...
|
|
void | GLIFisheyeCanopyIntersect (const float &fTargetX, const float &fTargetY, const float &fNeighX, const float &fNeighY, const float &fNeighCanrad, const float &fNeighHeight, const short int &iNeighSpecies, const float &fTargetHeight, clTree *p_oNeighbor, clPlot *p_oPlot, clAllometry *p_oAllom) |
| Adds one shading neighbor to the fisheye photo array for a GLI calculation when the canopies of the two trees overlap. More...
|
|
virtual void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
| If a descendent class has specific setup needs, it can overload this function. More...
|
|
void | PopulateGLIBrightnessArray () |
| Populates the GLI brightness array. More...
|
|
void | PopulateSailLightBrightnessArray () |
| Populates the sail brightness array. More...
|
|
float | GetDayAngle (int iJulianDay) |
| Computes day angle. More...
|
|
float | GetDeclination (float &fDayAngle) |
| Computes solar declination. More...
|
|
float | GetEccentricity (float &fDayAngle) |
| Computes solar eccentricity. More...
|
|
float | GetSunrise (float &fLatInRadians, float &fDeclination) |
| Computes sunrise. More...
|
|
float | GetCosineOfZenithAngle (float &fDeclination, float &fLatInRadians, float &fTimeNow) |
| Computes cosine of the zenith angle of the sun at a given time. More...
|
|
float | GetAltitudeAngle (float &fCosZenAng) |
| Computes altitude angle of the sun at a given time in radians. More...
|
|
float | GetAzimuthAngle (float &fDeclination, float &fLatInRadians, float &fAltInRad, float &fTimeNow) |
| Computes azimuth angle of the sun at a given time in radians in SORTIE azimuth coordinates. More...
|
|
float | GetAirmassEffect (float &fAltInDeg, float &fCosZenAng) |
| Computes the airmass effect for a given altitude angle. More...
|
|
float | GetBeamRadiation (float &fClearSkyTransCoeff, float &fAirmass, float &fEccentricity, float &fCosZenAng) |
| Computes beam radiation strength. More...
|
|
void | AssembleFileCode (int iFileType, int iFileVersion, char *cCode) |
| Creates the proper identifying filecode for an XML file. More...
|
|
|
clGrid * | mp_oSeedGrid |
| Pointer to the "Dispersed Seeds" grid created by disperse behaviors. More...
|
|
clGrid * | mp_oStormLightGrid |
| Pointer to the "Storm Light" grid created by clStormLight, if needed. More...
|
|
double ** | mp_fLightExtCoeff |
| Storm light extinction coefficients, if m_bUseStormLight is false. More...
|
|
double * | mp_fOptimumGLI |
| Optimum light level at which there is no reduction in establishment - one per behavior species. More...
|
|
double * | mp_fLowGLISlope |
| Slope of favorability dropoff below the optimum light level - one per behavior species. More...
|
|
double * | mp_fHighGLISlope |
| Slope of favorability dropoff above the optimum light level - one per behavior species. More...
|
|
double | m_fLightHeight |
| Height at which light is to be calculated, if m_bUseStormLight is false. More...
|
|
double | m_fMaxSearchDistance |
| Maximum search distance for shading neighbors, if m_bUseStormLight is false. More...
|
|
short int * | mp_iSeedGridCode |
| Data member codes for seed grid for number of seeds. More...
|
|
short int ** | mp_iDamageCodes |
| Holds return data codes for the "stm_dmg" tree data member, if m_bUseStormLight is false. More...
|
|
short int * | mp_iIndexes |
| Speeds access to arrays. More...
|
|
short int | m_iNumTotalSpecies |
| Number of species. More...
|
|
short int | m_iLightCode |
| Index for the "Light" data member of the Storm Light grid, if m_bUseStormLight is true. More...
|
|
bool | m_bUseStormLight |
| Whether or not to have this behavior calculate GLI (false) or get GLI from the Storm Light grid (true) More...
|
|
float | m_fSinMinSunAng |
| Sin of the min sun angle. More...
|
|
float | m_fAziChunkConverter |
| Reciprocal of the size of a single azimuth sky grid division, in degrees. More...
|
|
float | m_fRcpTanMinAng |
| 1/tan (m_fMinSunAngle). More...
|
|
float * | mp_fAziSlope |
| For each azimuth chunk of sky, this holds the slope of the line to the middle of the chunk. More...
|
|
bool | m_bHooked |
| Whether or not this shell object is hooked to clLightOrg. More...
|
|
bool | m_bNeedsCommonParameters |
| Whether or not this shell object requires the common light parameters held in clLightOrg such as clLightOrg::m_iLastJulDay. More...
|
|
float ** | mp_fBrightness |
| Sky brightness array. More...
|
|
float ** | mp_fPhoto |
| Simulated fisheye photo array. More...
|
|
double | m_fMinSunAngle |
| The altitude angle below which the sky is assumed to be dark. More...
|
|
double | m_fAzimuthOfNorth |
| The azimuth angle of north. More...
|
|
int | m_iNumAziAng |
| Number of azimuth angles into which the sky hemisphere is divided. More...
|
|
int | m_iNumAltAng |
| Number of altitude angles into which the sky hemisphere is divided. More...
|
|
int | m_iMinAngRow |
| Row in the brightness array corresponding to the minimum solar angle. More...
|
|
short int | m_iNumSpeciesTypeCombos |
| How many type/species combos a behavior will act on. More...
|
|
short int | m_iNumBehaviorSpecies |
| How many distinct species are in the combo list - important for filling species-specific values from parameter file. More...
|
|
short int * | mp_iWhatSpecies |
| List of distinct species - for filling species-specific values from parameter file. More...
|
|
stcSpeciesTypeCombo * | mp_whatSpeciesTypeCombos |
| Array of species/type combos that the behavior will act on. More...
|
|
short int | m_iNewTreeInts |
| The number of new tree integer data members this behavior wants to add. More...
|
|
short int | m_iNewTreeFloats |
| The number of new tree float data members this behavior wants to add. More...
|
|
short int | m_iNewTreeChars |
| The number of new tree character data members this behavior wants to add. More...
|
|
short int | m_iNewTreeBools |
| The number of new tree boolean data members this behavior wants to add. More...
|
|
short int | m_iBehaviorListNumber |
| The number of this behavior in the behavior list, to differentiate between possible multiple copies of this behavior. More...
|
|
float | m_fVersionNumber |
| Version number - this will be rounded to 2 digits after the decimal place. More...
|
|
std::string | m_sXMLRoot |
| XML root that encloses the parameters for this behavior. More...
|
|
float | m_fMinimumVersionNumber |
| Minimum version number - this behavior will run parameter data for a file marked between this number and the current version number, inclusive. More...
|
|
std::string | m_sNameString |
| If a behavior has registered a command line command with the sim manager, this allows it to be called. More...
|
|
clSimManager * | mp_oSimManager |
| Pointer to the simulation manager object. More...
|
|
int * | mp_iAllowedFileTypes |
| List of the input file types this object can handle. More...
|
|
int | m_iNumAllowedTypes |
| Number of input file types this object can handle. More...
|
|
Light Dependent Seed Survival - Version 1.1.
This behavior assesses seed survival based on light levels. The starting number of seeds is created by any disperse behavior and placed in the grid "Dispersed Seeds". The number of seeds surviving out of this number is a function of GLI. Because of the need to calculate light levels, this class descends from clGLIBase.
The number of seeds of a given species that survive in a particular "Dispersed Seeds" grid cell is:
Rsp = Ssp * LE
where:
-
Rsp is the number of seeds surviving
-
Ssp is the starting number of seeds of the species, i.e. the number of seeds dispersed to that grid cell
-
LE is the light favorability, from 0 to 1
The number of seeds is given a random round.
LE is calculated from GLI as:
- If GLI < GLIopt, LE = 1 - (Slo(GLIopt - GLI))
- If GLI = GLIopt, LE = 1
- If GLI > GLIopt, LE = 1 - (Shi(GLI - GLIopt))
where
-
GLI is the global light index - GLI at the center of the "Dispersed Seeds" grid cell at a user-specified height
-
GLIopt is the optimum GLI for the given species
-
Slo is the slope of the dropoff in light favorability at GLIs below GLIopt
-
Shi is the slope of the dropoff in light favorability at GLIs above GLIopt
GLI can come in two ways. The first method is that this behavior will calculate GLI like all other GLIs. There is one difference: neighbor trees that have hurricane damage have different light extinction coefficients from their undamaged neighbors. To achieve this, we override the function clLightBase::GetLightExtinctionCoefficient(). This effect is not required.
The second way is to get the GLI from the Storm Light grid.
A fatal error will be thrown if a disperse behavior is not used, or if Storm Light is the source of GLIs but it is not used.
The namestring and parameter file call string for this class is "LightDependentSeedSurvival" (for having this behavior calculate GLI) or "StormLightDependentSeedSurvival" (for having Storm Light be the GLI source). Apply this behavior to the desired species; use any type, since type will be ignored.
Copyright 2011 Charles D. Canham.
- Author
- Lora E. Murphy
Edit history:
--------------—
October 20, 2011 - Wiped the slate clean for SORTIE 7.0 (LEM)