-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspheroid_ta.c
31 lines (20 loc) · 948 Bytes
/
spheroid_ta.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*******************************************************************/
/* spheroid_ta.c ->void SPHEROID_TA(in,out) */
/* Jing M. Chen, [email protected] */
/* Sylvain G. Leblanc [email protected] */
/*******************************************************************/
/* Subroutine that calculates crown projection to the viewer */
/* for deciduous (spheroid) shape */
/* Latest update February 1, 1997 */
/*******************************************************************/
# include <stdio.h>
# include <math.h>
# include <string.h>
# include "data.h"
void SPHEROID_TA(in_p,out_p)
struct PARAMETER in_p;
struct RESULT *out_p;
{
out_p->tab = PI*in_p.R*(in_p.Hb/2.*sin(out_p->vza)+in_p.R*cos(out_p->vza));
out_p->V = 2/3.*PI*in_p.R*in_p.R*in_p.Hb;
}