-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathem_prepare_labels.m
More file actions
80 lines (80 loc) · 3.05 KB
/
em_prepare_labels.m
File metadata and controls
80 lines (80 loc) · 3.05 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
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
post_2017 = 1;
if ( post_2017 )
% prepare em data type labels
if (strcmp(data_type,'odo') == 1)
type_string = 'YSI-ODO mg/L';
type_title_string = 'Dissolved Oxygen (mg/L)';
elseif (strcmp(data_type,'chl') == 1)
type_string = 'YSI-Chl ug/L';
type_title_string = 'Chlorophyll (ug/L)';
elseif (strcmp(data_type,'water_depth') == 1)
type_string = 'Total Water Column (m)';
type_title_string = 'Water Depth (m)';
elseif (strcmp(data_type,'water_depth_dvl') == 1)
type_string = 'DVL -Water Column (m)';
type_title_string = 'Water Depth from DVL (m)';
elseif (strcmp(data_type,'sp_cond') == 1)
type_string = 'YSI-SpCond mS/cm';
type_title_string = 'Conductivity mS/cm';
elseif (strcmp(data_type,'sal') == 1)
type_string = 'YSI-Sal ppt';
type_title_string = 'Salinity (ppt)';
elseif (strcmp(data_type,'pH') == 1)
type_string = 'YSI-pH'; % note, this is not mV
type_title_string = 'pH';
% elseif (strcmp(data_type,'turb') == 1)
% type_string = 'Turbid+ NTU';
% type_title_string = 'Turbidity (NTU)';
elseif (strcmp(data_type,'bga') == 1)
type_string = 'YSI-BGA-PC cells/mL';
type_title_string = 'Blue-Green Algae (cells/mL)';
elseif (strcmp(data_type,'temp') == 1)
type_string = 'CTD-Temperature (c)';
type_title_string = 'Temperature (C)';
elseif (strcmp(data_type,'temp2') == 1)
type_string = 'YSI-Temp C';
type_title_string = 'Temperature (C)';
else
disp('Unknown data type. Options are: odo, chl, water_depth, water_depth_dvl, sp_cond, sal, pH, bga')
return
end
else
% prepare em data type labels
if (strcmp(data_type,'odo') == 1)
type_string = 'ODO mg/L';
type_title_string = 'Dissolved Oxygen (mg/L)';
elseif (strcmp(data_type,'chl') == 1)
type_string = 'Chl ug/L';
type_title_string = 'Chlorophyll (ug/L)';
elseif (strcmp(data_type,'water_depth') == 1)
type_string = 'Total Water Column (m)';
type_title_string = 'Water Depth (m)';
elseif (strcmp(data_type,'water_depth_dvl') == 1)
type_string = 'DVL -Water Column (m)';
type_title_string = 'Water Depth from DVL (m)';
elseif (strcmp(data_type,'sp_cond') == 1)
type_string = 'SpCond mS/cm';
type_title_string = 'Conductivity mS/cm';
elseif (strcmp(data_type,'sal') == 1)
type_string = 'Sal ppt';
type_title_string = 'Salinity (ppt)';
elseif (strcmp(data_type,'pH') == 1)
type_string = 'pH'; % note, this is not mV
type_title_string = 'pH';
elseif (strcmp(data_type,'turb') == 1)
type_string = 'Turbid+ NTU';
type_title_string = 'Turbidity (NTU)';
elseif (strcmp(data_type,'bga') == 1)
type_string = 'BGA-PC cells/mL';
type_title_string = 'Blue-Green Algae (cells/mL)';
elseif (strcmp(data_type,'temp') == 1)
type_string = 'Temperature (c)';
type_title_string = 'Temperature (C)';
elseif (strcmp(data_type,'temp2') == 1)
type_string = 'Temp C';
type_title_string = 'Temperature (C)';
else
disp('Unknown data type. Options are: odo, chl, water_depth, water_depth_dvl, sp_cond, sal, pH, bga')
return
end
end