Changeset 518
- Timestamp:
- 01/23/14 14:45:08
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gliderproc/trunk/gliderCurrents_Generate_L1_Data.m
r517 r518 69 69 vy = []; 70 70 prior_seg_vy = []; 71 lat = []; 72 lon = []; 73 gps_lat = []; 74 gps_lon = []; 71 75 ptime_dbd = []; 72 76 ptime_ebd = []; … … 123 127 data.data(:,strmatch('x_prior_seg_water_vy',... 124 128 data.vars, 'exact'))]; 129 lat = [lat; ... 130 data.data(:,strmatch('m_lat',... 131 data.vars, 'exact'))]; 132 lon = [lon; ... 133 data.data(:,strmatch('m_lon',... 134 data.vars, 'exact'))]; 135 gps_lat = [gps_lat; ... 136 data.data(:,strmatch('m_gps_lat',... 137 data.vars, 'exact'))]; 138 gps_lon = [gps_lon; ... 139 data.data(:,strmatch('m_gps_lon',... 140 data.vars, 'exact'))]; 125 141 ptime_dbd = [ptime_dbd; ... 126 142 data.data(:,strmatch('m_present_time',... … … 136 152 %*** END READ IN DBD DATA **** 137 153 138 % remove nans from DBD data...139 i = find(~ isnan(vx));154 % include only not NaNs from DBD data for either vx or final_vx... 155 i = find(~(isnan(vx) & isnan(final_vx))); 140 156 vx = vx(i); 141 157 final_vx = final_vx(i); … … 148 164 delta_vy = delta_vy(i); 149 165 prior_seg_vy = prior_seg_vy(i); 166 lat = lat(i); 167 lon = lon(i); 168 gps_lat = gps_lat(i); 169 gps_lon = gps_lon(i); 150 170 ptime_dbd = ptime_dbd(i); 151 171 ptime_ebd = ptime_ebd(i); … … 165 185 delta_vy = delta_vy(I); 166 186 prior_seg_vy = prior_seg_vy(I); 187 lat = lat(I); 188 lon = lon(I); 189 gps_lat = gps_lat(I); 190 gps_lon = gps_lon(I); 167 191 ptime_ebd = ptime_ebd(I); 168 192 … … 183 207 'delta_vy', 'm/s', ... 184 208 'prior_seg_vy', 'm/s', ... 209 'lat', 'decimal degrees', ... 210 'lon', 'decimal degrees', ... 211 'gps_lat', 'decimal degrees', ... 212 'gps_lon', 'decimal degrees', ... 185 213 'ptime_dbd', 'seconds since 0000-01-01T00:00', ... 186 214 'ptime_dbd_datenum', 'days since 1970-01-01T00:00', ... … … 199 227 'delta_vy', 'Change in northward water velocity', ... 200 228 'prior_seg_vy', 'Northward water velocity of prior segment', ... 229 'lat', 'north/south vehicle position', ... 230 'lon', 'east/west vehicle position', ... 231 'gps_lat', 'GPS fix latitude', ... 232 'gps_lon', 'GPS fix longitude', ... 201 233 'ptime_dbd', 'flight computer time', ... 202 234 'ptime_dbd_datenum', 'flight computer date', ... … … 227 259 'delta_vy', ... 228 260 'prior_seg_vy', ... 261 'lat', ... 262 'lon', ... 263 'gps_lat', ... 264 'gps_lon', ... 229 265 'ptime_dbd', ... 230 266 'ptime_dbd_datenum', ...