-
Notifications
You must be signed in to change notification settings - Fork 7
/
Forcing.m
38 lines (36 loc) · 1.11 KB
/
Forcing.m
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
33
34
35
36
37
38
classdef Forcing
%FORCING Summary of this class goes here
% Detailed explanation goes here
properties
deepTemp; % deep soil temperature (K)
infra; %
wind;
uDir;
hum;
pres; % Pressure (Pa)
temp;
rHum;
prec; % Precipitation (m s-1)
dir;
dif;
waterTemp; % ground water temp, set to temp at 2m
end
methods
function obj = Forcing(staTemp,weather)
if(nargin > 0)
obj.deepTemp = mean(staTemp);
obj.waterTemp = mean(staTemp);
obj.infra = [weather.staInfra];
obj.uDir = [weather.staUdir];
obj.hum = [weather.staHum];
obj.pres = [weather.staPres];
obj.temp = [weather.staTemp];
obj.rHum = [weather.staRhum];
obj.dir = [weather.staDir];
obj.dif = [weather.staDif];
obj.prec = [weather.staRobs]/3.6e6;
obj.wind = [weather.staUmod];
end
end
end
end