forked from bestouff/weather_simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRadStruct.h
More file actions
32 lines (29 loc) · 1.06 KB
/
RadStruct.h
File metadata and controls
32 lines (29 loc) · 1.06 KB
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
32
#ifndef __RADSTRUCT__
#define __RADSTRUCT__
/* RadStruct: Structure that contains information for the radiation model.*/
struct RadStruct {
float initDayInYearUTC; // Initial day in the year (0-366.0f)
float initTimeUTC_hours; // Time in UTC (0-24.0f)
float timeZone; // Time zone (-12.0f-12.0f)
float longitudeRad; // Longitude of the simulation
float latitudeRad; // Laltitude of the simulation
float rainProbability; // Probability of rain
/* Basic contructor to inialize variables. */
RadStruct() {
initDayInYearUTC = 100.0f;
initTimeUTC_hours = 12.0f;
timeZone = -6.0f;
longitudeRad = 1.564f;
latitudeRad = 0.784f;
rainProbability=1.0f;//book values
}
RadStruct(float _initDayInYearUTC, float _initTimeUTC_hours, float _timeZone, float _longitudeRad, float _latitudeRad, float _rainProbability) {
initDayInYearUTC = _initDayInYearUTC;
initTimeUTC_hours = _initTimeUTC_hours;
timeZone = _timeZone;
longitudeRad = _longitudeRad;
latitudeRad = _latitudeRad;
rainProbability = _rainProbability;
}
};
#endif // __RADSTRUCT__