DAS  3.1.6 - 18/09/2017
Functions
CalcSZA.c File Reference

Solar Angles computation. More...

#include <math.h>
#include <string.h>
#include <stdio.h>
#include "solpos.h"
+ Include dependency graph for CalcSZA.c:

Go to the source code of this file.

Functions

int SZACalc (double d_lat, double d_long, double d_tzone, int d_year, int d_daynum, int d_hour, int d_minute, int d_second, float d_temp, float d_press, float d_tilt, float d_aspect)
 Calc. Solar angles and radiatives quantities.
. More...
 

Detailed Description

Solar Angles computation.

Author
Daniele Bortoli (13/10/2002)

Definition in file CalcSZA.c.

Function Documentation

§ SZACalc()

int SZACalc ( double  d_lat,
double  d_long,
double  d_tzone,
int  d_year,
int  d_daynum,
int  d_hour,
int  d_minute,
int  d_second,
float  d_temp,
float  d_press,
float  d_tilt,
float  d_aspect 
)

Calc. Solar angles and radiatives quantities.
.

Parameters
d_latstation latitude
d_longstation longitude
d_tzonestation time zone
d_yearyear
d_daynumday number
d_hourhour
d_minuteminute
d_secondseconds
d_temptemperature DEFAULT 10.0 (standard temperature)
d_presspressure DEFAULT 1013.0 (standard pressure)
d_tilttilted DEFAULT 0.0 (horizontal panel)
d_aspectaspect DEFAULT 180.0 (South-facing panel)
Returns
int

Definition at line 89 of file CalcSZA.c.

References S_aspect, S_date(), S_daynum, S_hour, S_latitude, S_longitude, S_minute, S_press, S_second, S_solpos(), S_temp, S_tilt, S_timezone, and S_year.

Referenced by D_AutoExecution(), SZA_FindMin(), SZA_FirstCalc(), and Task_Timer().

92 {
93  //Coordinate TNB
94  // S_longitude = 164.123; /* Note that latitude and longitude are */
95  // S_latitude = -74.695; /* in DECIMAL DEGREES, not Deg/Min/Sec */
96  // S_timezone = 11.0; /* Eastern time zone, even though longitude would
97  // suggest Central. We use what they use.
98  // DO NOT ADJUST FOR DAYLIGHT SAVINGS TIME. */
99  //Coordinate StaraZagora BG
100  // S_longitude = 25.633;
101  // S_latitude = 42.416;
102  // S_timezone = 2;
103 
104  //Coordinate Bologna
105  // S_longitude = 11.333;
106  // S_latitude = 44.483;
107  // S_timezone = 1;
108 
109  //Coordinate GreenWitch
110  // S_longitude = 0;
111  // S_latitude = 51.29;
112  // S_timezone = 0;
113 
114  //Coordinate 0,90,0
115  // S_longitude = 0;
116  // S_latitude = 90;
117  // S_timezone = 0;
118 
119  //Coordinate Mt Cimone
120  // S_longitude = 10.42;
121  // S_latitude = 44.11;
122  // S_timezone = 1;
123 
124  S_longitude = d_long;
125  S_latitude = d_lat;
126  S_timezone = d_tzone;
127  S_year = d_year;
128  S_daynum = d_daynum;
129 
130  S_date ( );
131 
132  S_hour = d_hour;
133  S_minute = d_minute;
134  S_second = d_second;
135 
136  S_temp = d_temp;
137  S_press = d_press;
138 
139  S_tilt = S_latitude; /* Tilted at latitude */
140  S_aspect = d_aspect; /* 135 deg. = SE */
141 
142  S_solpos ( );
143 
144  return 0;
145 }
double S_press
Definition: SOLPOS.C:75
int S_date(void)
Returns date. This function calculates the month and day of month, given the day number (number of d...
Definition: SOLPOS.C:166
int S_minute
I: Minute of hour, 0 - 59, DEFAULT = 0 I: Minute of hour, 0 - 59, DEFAULT = 0.
Definition: SOLPOS.C:36
*double S_latitude
I: Latitude, degrees north (south negative) */.
Definition: SOLPOS.C:69
double S_aspect
Definition: SOLPOS.C:43
*double S_tilt
I: Degrees tilt from horizontal of panel */.
Definition: SOLPOS.C:85
double S_longitude
I: Longitude, degrees east (west negative) */.
Definition: SOLPOS.C:70
int S_daynum
I/O: Day number (day of year; Feb 1 = 32 ) I/O: Day number (day of year; Feb 1 = 32 ) S_date needs th...
Definition: SOLPOS.C:34
*double S_temp
Definition: SOLPOS.C:84
int S_hour
I: Hour of day, 0 - 23, DEFAULT = 12 I: Hour of day, 0 - 23, DEFAULT = 12.
Definition: SOLPOS.C:35
int S_solpos(void)
Returns ..... This function calculates the apparent solar position and intensity (theoretical maximu...
Definition: SOLPOS.C:246
double S_timezone
Definition: SOLPOS.C:86
int S_year
I: 4-digit year (2-digit is assumed 19xx) I: 4-digit year (2-digit is assumed 19xx) DEFAULT = 2001...
Definition: SOLPOS.C:39
int S_second
I: Second of minute, 0 - 59, DEFAULT = 0 I: Second of minute, 0 - 59, DEFAULT = 0.
Definition: SOLPOS.C:38
+ Here is the call graph for this function:
+ Here is the caller graph for this function:
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:44:13 for DAS - Rel. 3.1.6 - 18/09/2017.