-
Notifications
You must be signed in to change notification settings - Fork 2
/
UNM_sites_info.m
197 lines (176 loc) · 6 KB
/
UNM_sites_info.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
classdef UNM_sites_info
% This class defines a number of numerical and text constants for each UNM site.
%
% Its fields are:
% short_name: abbreviation used in UNM data files (fluxall, gapfilling, etc)
% long_name: a fuller (though still short) site description, perhaps useful
% for plot labels
% ameriflux: abbreviation used for ameriflux files
% ORNL: abbreviation used for Oak Ridge MODIS snapshots
% latitude: site's latitude (deg N)
% longitude: site's longitude (deg E -- i.e. values are negative)
% elevation: site's elevation (m)
%
% USAGE
%
% site_info = UNM_sites_info( this_site )
%
% INPUTS
% this_site: UNM_sites object, numerical site code (1-11) or character
% string short_name
%
% EXAMPLES
%
% these three are equivalent:
% >> UNM_sites_info( UNM_sites.JSav )
% >> UNM_sites_info( 3 )
% >> UNM_sites_info( 'JSav' )
%
% ans =
%
% UNM_sites_info
%
% Properties:
% short_name: 'JSav'
% long_name: 'Sevilleta juniper savanna'
% ameriflux: 'US-Wjs'
% ORNL: 'usjunsav'
% latitude: 34.4255
% longitude: -105.8615
% elevation: 1927
%
% >> UNM_sites_info( UNM_sites.PJ ).ameriflux
%
% ans =
%
% US-Mpj
%
% author: Timothy W. Hilton, UNM, Nov 2012
properties
short_name = '';
long_name = '';
ameriflux = '';
ORNL = '';
latitude = NaN;
longitude = NaN;
elevation = NaN;
end %properties
methods
% --------------------------------------------------
function obj = UNM_sites_info( this_site )
% UNM_SITES_INFO - class constructor
%
if isnumeric( this_site )
this_site = UNM_sites( this_site );
elseif ischar( this_site )
this_site = UNM_sites.( this_site );
end
if this_site == UNM_sites.GLand
obj.short_name = 'GLand';
obj.long_name = 'Sevilleta burned grass';
obj.ameriflux = 'US-Seg';
obj.ORNL = 'ussevdeg';
obj.latitude = 34.3402;
obj.longitude = -106.68542;
obj.elevation = 1619;
elseif this_site == UNM_sites.SLand
obj.short_name = 'SLand';
obj.long_name = 'Sevilleta shrub';
obj.ameriflux = 'US-Ses';
obj.ORNL = 'ussevdes';
obj.latitude = 34.3338;
obj.longitude = -106.73401;
obj.elevation = 1608;
elseif this_site == UNM_sites.JSav
obj.short_name = 'JSav';
obj.long_name = 'Sevilleta juniper savanna';
obj.ameriflux = 'US-Wjs';
obj.ORNL = 'usjunsav';
obj.latitude = 34.425489;
obj.longitude = -105.861545;
obj.elevation = 1927;
elseif this_site == UNM_sites.PJ
obj.short_name = 'PJ';
obj.long_name = 'pinon juniper control';
obj.ameriflux = 'US-Mpj';
obj.ORNL = 'uspinonj';
obj.latitude = 34.437;
obj.longitude = -106.238;
obj.elevation = 2195;
elseif this_site == UNM_sites.PPine
obj.short_name = 'PPine';
obj.long_name = 'Ponderosa Pine';
obj.ameriflux = 'US-Vcp';
obj.ORNL = 'usvalpon';
obj.latitude = 35.86236;
obj.longitude = -106.59743;
obj.elevation = 2488;
elseif this_site == UNM_sites.MCon
obj.short_name = 'MCon';
obj.long_name = 'Valles Caldera Mixed Conifer';
obj.ameriflux = 'US-Vcm';
obj.ORNL = 'usvalcon';
obj.latitude = 35.888;
obj.longitude = -106.532;
obj.elevation = 3025;
elseif this_site == UNM_sites.TX
obj.short_name = 'TX';
obj.long_name = 'Freeman Ranch juniper savanna';
obj.ameriflux = 'US-FR2';
obj.ORNL = '';
obj.latitude = 29.94943333;
obj.longitude = -97.99611667;
obj.elevation = 264;
elseif this_site == UNM_sites.TX_forest
obj.short_name = 'TX_forest';
obj.long_name = 'Freeman Ranch forest';
obj.ameriflux = 'US-FR3';
obj.ORNL = '';
obj.latitude = 29.94943333;
obj.longitude = -97.99611667;
obj.elevation = 264;
elseif this_site == UNM_sites.TX_grass
obj.short_name = 'TX_grass';
obj.long_name = 'Freeman Ranch grassland';
obj.ameriflux = 'US-FR1';
obj.ORNL = '';
obj.latitude = 29.94943333;
obj.longitude = -97.99611667;
obj.elevation = 264;
elseif this_site == UNM_sites.PJ_girdle
obj.short_name = 'PJ_girdle';
obj.long_name = 'PJ manipulation';
obj.ameriflux = 'US-Mpg';
obj.ORNL = '';
obj.latitude = 34.437;
obj.longitude = -106.238;
obj.elevation = 2195;
elseif this_site == UNM_sites.New_GLand
obj.short_name = 'New_GLand';
obj.long_name = 'Sevilleta Unburned grassland';
obj.ameriflux = 'US-Sen';
obj.ORNL = '';
obj.latitude = 34.3402;
obj.longitude = -106.68542;
obj.elevation = 1619;
elseif this_site == UNM_sites.SevEco
obj.short_name = 'Sev_Eco';
obj.long_name = 'Sevilleta ecotone';
obj.ameriflux = '';
obj.ORNL = '';
obj.latitude = NaN;
obj.longitude = NaN;
obj.elevation = NaN;
elseif this_site == UNM_sites.TestSite
obj.short_name = 'TestSite';
obj.long_name = 'testing site';
obj.ameriflux = 'US-Test';
obj.ORNL = 'ustest';
obj.latitude = 34.437;
obj.longitude = -106.238;
obj.elevation = 2195;
end % if/then/else
end % constructor
end %methods
end %classdef
%--------------------------------------------------