Changeset 509
- Timestamp:
- 08/04/13 19:19:35
- Files:
-
- gliderproc/trunk/gliderCTD_Generate_L1_Data.m (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gliderproc/trunk/gliderCTD_Generate_L1_Data.m
r508 r509 23 23 % June 2013, implemented some QC procedures for ramses, HES 24 24 % 20130703 - Iterate throuth gliders and deployments. - CBC 25 % 20130725 - Implemented some QC procedures for pelagia. - HES 25 26 % 26 27 %////////////////////////////////////////////////////////////////////////// … … 308 309 ptime = ptime(i); temp = temp(i); pres = pres(i); cond = cond(i); 309 310 ctd_time = ctd_time(i); 311 elseif(gliderIndex == 1) 312 ib=find(abs(diff(temp))>1.5); 313 ib2=find(abs(diff(cond))>0.1); 314 ibb=union(ib,ib2); 315 temp(ibb+1)=NaN; 316 cond(ibb+1)=NaN; 317 i=find(~isnan(temp)); 318 ptime = ptime(i); temp = temp(i); pres = pres(i); cond = cond(i); 319 ctd_time = ctd_time(i); 310 320 end 311 321 … … 352 362 avgDepthRate = avgDepthRate(i); glideAngle = glideAngle(i); 353 363 ptime = ptime(i); temp = temp(i); cond = cond(i); pres = pres(i); 354 ctd_time = ctd_time(i); 364 ctd_time = ctd_time(i); hv = hv(i); 355 365 356 366 % scale up the pressure... … … 392 402 % top or bottom of profiles. Use original velocity measure (hv) and pitch 393 403 % to identify points for exclusion 394 % these values set by look at ramses; may need alternate set for pelagia 404 % these values set by look at ramses; may need alternate set for 405 % pelagia (now set based on deployment 1) 395 406 396 407 if(gliderIndex == 2) … … 399 410 ib = union(iv,ip); 400 411 salinCorrected(ib) = NaN; 401 412 elseif(gliderIndex == 1) 413 iv = find(hv<0.1); 414 ip = find(pitch>5 & pitch < 15); 415 ib = union(iv,ip); 416 salinCorrected(ib) = NaN; 417 end 418 402 419 % the step above likely removes many points, need to make sure that dataset 403 420 % is consistent, so use salinity to ID valid times going forward 404 421 405 406 407 408 end422 i = find(~isnan(salinCorrected)); 423 ptime=ptime(i); temp=temp(i); tempCorrected=tempCorrected(i); salin=salin(i); 424 salinCorrected=salinCorrected(i); pres=pres(i); dens=dens(i); 425 409 426 410 427 % calculate density...should this use temp corrected?? HES - no, now have