Changeset 513
- Timestamp:
- 01/13/14 16:53:59
- Files:
-
- gliderproc/trunk/gliderEcopuck_Generate_L1_Data.m (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gliderproc/trunk/gliderEcopuck_Generate_L1_Data.m
r512 r513 62 62 cdom = []; 63 63 scatter = []; 64 chlor_sig = []; 65 cdom_sig = []; 66 scatter_sig = []; 67 chlor_ref = []; 68 cdom_ref = []; 69 scatter_ref = []; 64 70 ptime_ebd = []; 65 71 … … 67 73 switch gliderIndex 68 74 case 1 % Pelagia 69 chlor_name = 'sci_bbfl2s_chlor_scaled'; 70 cdom_name = 'sci_bbfl2s_cdom_scaled'; 71 scatter_name = 'sci_bbfl2s_bb_scaled'; 75 chlor_name = 'sci_bbfl2s_chlor_scaled'; 76 cdom_name = 'sci_bbfl2s_cdom_scaled'; 77 scatter_name = 'sci_bbfl2s_bb_scaled'; 78 chlor_sig_name = 'sci_bbfl2s_chlor_sig'; 79 cdom_sig_name = 'sci_bbfl2s_cdom_sig'; 80 scatter_sig_name = 'sci_bbfl2s_bb_sig'; 81 chlor_ref_name = 'sci_bbfl2s_chlor_ref'; 82 cdom_ref_name = 'sci_bbfl2s_cdom_ref'; 83 scatter_ref_name = 'sci_bbfl2s_bb_ref'; 72 84 case 2 % Ramses 73 chlor_name = 'sci_flbbcd_chlor_units'; 74 cdom_name = 'sci_flbbcd_cdom_units'; 75 scatter_name = 'sci_flbbcd_bb_units'; 85 chlor_name = 'sci_flbbcd_chlor_units'; 86 cdom_name = 'sci_flbbcd_cdom_units'; 87 scatter_name = 'sci_flbbcd_bb_units'; 88 chlor_sig_name = 'sci_flbbcd_chlor_sig'; 89 cdom_sig_name = 'sci_flbbcd_cdom_sig'; 90 scatter_sig_name = 'sci_flbbcd_bb_sig'; 91 chlor_ref_name = 'sci_flbbcd_chlor_ref'; 92 cdom_ref_name = 'sci_flbbcd_cdom_ref'; 93 scatter_ref_name = 'sci_flbbcd_bb_ref'; 76 94 end 77 95 … … 106 124 data.data(:,strmatch(scatter_name,... 107 125 data.vars, 'exact'))]; 126 chlor_sig = [chlor_sig; ... 127 data.data(:,strmatch(chlor_sig_name,... 128 data.vars, 'exact'))]; 129 cdom_sig = [cdom_sig; ... 130 data.data(:,strmatch(cdom_sig_name,... 131 data.vars, 'exact'))]; 132 scatter_sig = [scatter_sig; ... 133 data.data(:,strmatch(scatter_sig_name,... 134 data.vars, 'exact'))]; 135 chlor_ref = [chlor_ref; ... 136 data.data(:,strmatch(chlor_ref_name,... 137 data.vars, 'exact'))]; 138 cdom_ref = [cdom_ref; ... 139 data.data(:,strmatch(cdom_ref_name,... 140 data.vars, 'exact'))]; 141 scatter_ref = [scatter_ref; ... 142 data.data(:,strmatch(scatter_ref_name,... 143 data.vars, 'exact'))]; 108 144 ptime_ebd = [ptime_ebd; ... 109 145 data.data(:,strmatch('sci_m_present_time',... … … 121 157 cdom = cdom(i); 122 158 scatter = scatter(i); 159 chlor_sig = chlor_sig(i); 160 cdom_sig = cdom_sig(i); 161 scatter_sig = scatter_sig(i); 162 chlor_ref = chlor_ref(i); 163 cdom_ref = cdom_ref(i); 164 scatter_ref = scatter_ref(i); 123 165 ptime_ebd = ptime_ebd(i); 124 166 … … 130 172 cdom = cdom(I); 131 173 scatter = scatter(I); 174 chlor_sig = chlor_sig(I); 175 cdom_sig = cdom_sig(I); 176 scatter_sig = scatter_sig(I); 177 chlor_ref = chlor_ref(I); 178 cdom_ref = cdom_ref(I); 179 scatter_ref = scatter_ref(I); 132 180 133 181 % convert ptime into datenum style... … … 139 187 'cdom', 'ppb', ... 140 188 'scatter', '1/mm', ... 189 'chlor_sig', 'count', ... 190 'cdom_sig', 'count', ... 191 'scatter_sig', 'count', ... 192 'chlor_ref', 'count', ... 193 'cdom_ref', 'count', ... 194 'scatter_ref', 'count', ... 141 195 'ptime_ebd', 'seconds since 0000-01-01T00:00', ... 142 196 'ptime_ebd_datenum', 'days since 1970-01-01T00:00'); … … 146 200 'cdom', 'chromophoric dissolved organic matter', ... 147 201 'scatter', 'backscatter', ... 202 'chlor_sig', 'chlorophyll raw count', ... 203 'cdom_sig', 'chromophoric dissolved organic matter raw count', ... 204 'scatter_sig', 'backscatter raw count', ... 205 'chlor_ref', 'chlorophyll reference count', ... 206 'cdom_ref', 'chromophoric dissolved organic matter reference count', ... 207 'scatter_ref', 'backscatter reference count', ... 148 208 'ptime_ebd', 'science computer time', ... 149 209 'ptime_ebd_datenum', 'science computer date'); … … 165 225 'cdom', ... 166 226 'scatter', ... 227 'chlor_sig', ... 228 'cdom_sig', ... 229 'scatter_sig', ... 230 'chlor_ref', ... 231 'cdom_ref', ... 232 'scatter_ref', ... 167 233 'ptime_ebd', ... 168 234 'ptime_ebd_datenum');