fof_mrt.h
Go to the documentation of this file.
1 //
2 // $Id$
3 //
4 /*{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}
5 * Name: fof_mrt.h Species Master Table
6 * Desc:
7 * Date: 2/4/04
8 *}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}{*}*/
9 
10 
11 /*.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- */
12 /* Input Mortality Struct */
13 typedef struct {
14  char cr_Spe[20]; /* Species */
15  float f_DBH; /* Diameter, inches */
16  float f_FS; /* Flame Lenght or Scorch Height feet*/
17  char cr_FS[10]; /* "F" or "S" identifies f_FS field */
18  float f_Hgt; /* Species Height feet */
19  float f_CroRat; /* Crown Ration 1 -> 10 */
20  char cr_FirSev[10]; /* Fire Severity Code "Low" or "" */
21  float f_Den; /* Trees per acre */
22  } d_MI;
23 
24 void MI_ISS (d_MI *a_MI, d_ISS *a_ISS);
25 void MI_SetSF (float f_Sch, d_MI *a_MI);
26 
27 /*.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- */
28 /* Output Mortality Struct */
29 typedef struct {
30 
31 /*.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/
32 /* These values are calculated for a single Species */
33  float f_Mort; /* Individ Spe Probility of Mortality*/
34  float f_TotPreTree; /* Total Prefire Trees */
35  float f_Killed;
36 
37  float f_BasPre; /* Prefire Basal Area */
38  float f_BasKil; /* Basal Area of Killed trees */
39  float f_BasPos; /* Post fire Basal Area */
40 
41  float f_CovPreLiv; /* Prefire Canopy Cover */
42  float f_CovPosLiv; /* Postfire Canopy Cover */
43 
44 
45 /*.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/
46 /* These values are accumulated for the Stand */
47  float f_AvgMort; /* Averged all Mortality */
48  float f_4AvgMort; /* Averged all Mortality > 4 DBH */
49  float f_TotKilled; /* Total Killed Trees */
50  float f_AvgDBHKilled; /* Avg DBH of Killed Trees */
51 
52  float f_BasTotPre; /* Basal Area, Prefire */
53  float f_BasTotKil; /* Basal Area of Killed trees */
54  float f_BasTotPos; /* Basal Area Post fire,(Pre - Killd)*/
55 
56  float f_CovTotPreLiv; /* Prefire Canopy Cover */
57  float f_CovTotPosLiv; /* Postfire Canopy Cover */
58 
59  int i_MortEqu; /* Mortality Equation used in calc */
60 
61  } d_MO;
62 
63 
64 /*.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/
65 #define e_Flame "F"
66 #define e_Scorch "S"
67 
68 /* Low and High Limits on Flame Length and Scorch Height */
69 #define e_FlaLow 1.0
70 #define e_FlaHig 20.0
71 
72 #define e_ScoLow 1.0
73 #define e_ScoHig 245.0
74 
75 
76 
77 
78 /*.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/
79 float WINAPI MRT_Calc (d_MI *a_MI, d_MO *a_MO, char cr_ErrMes[]);
80 int WINAPI MRT_LoadSpe (char cr_Pth[], char cr_ErrMes[]);
81 
82 void MRT_InitST (void);
83 
84 void MRT_Total (d_MI *a_MI, d_MO *a_MO, float f_Prob);
85 
86 void WINAPI MO_Init (d_MO *a_MO);
87 float MRT_Overlap( float f_SqFtCov);
float f_Den
Definition: fof_mrt.h:21
void MI_SetSF(float f_Sch, d_MI *a_MI)
float f_TotKilled
Definition: fof_mrt.h:49
void MRT_InitST(void)
Definition: fof_mrt.c:724
Definition: fof_mrt.h:13
float f_4AvgMort
Definition: fof_mrt.h:48
void MI_ISS(d_MI *a_MI, d_ISS *a_ISS)
float f_CroRat
Definition: fof_mrt.h:19
int WINAPI MRT_LoadSpe(char cr_Pth[], char cr_ErrMes[])
Definition: fof_mrt.c:339
float f_Killed
Definition: fof_mrt.h:35
float MRT_Overlap(float f_SqFtCov)
Definition: fof_mrt.c:750
float f_BasKil
Definition: fof_mrt.h:38
float f_Hgt
Definition: fof_mrt.h:18
float f_DBH
Definition: fof_mrt.h:15
float f_CovTotPosLiv
Definition: fof_mrt.h:57
float f_BasTotPos
Definition: fof_mrt.h:54
float f_Mort
Definition: fof_mrt.h:33
void WINAPI MO_Init(d_MO *a_MO)
Definition: fof_mrt.c:290
float f_CovTotPreLiv
Definition: fof_mrt.h:56
float f_AvgDBHKilled
Definition: fof_mrt.h:50
float f_TotPreTree
Definition: fof_mrt.h:34
Definition: fof_mrt.h:29
float f_FS
Definition: fof_mrt.h:16
float f_BasPre
Definition: fof_mrt.h:37
float f_BasTotPre
Definition: fof_mrt.h:52
float WINAPI MRT_Calc(d_MI *a_MI, d_MO *a_MO, char cr_ErrMes[])
Definition: fof_mrt.c:82
float f_CovPosLiv
Definition: fof_mrt.h:42
float f_CovPreLiv
Definition: fof_mrt.h:41
float f_BasPos
Definition: fof_mrt.h:39
int i_MortEqu
Definition: fof_mrt.h:59
Definition: fof_iss.h:7
float f_BasTotKil
Definition: fof_mrt.h:53
void MRT_Total(d_MI *a_MI, d_MO *a_MO, float f_Prob)
Definition: fof_mrt.c:198
float f_AvgMort
Definition: fof_mrt.h:47