| 9 | %  SST the Sea Surface Temperature (oC) | %  SST the Sea Surface Temperature (oC) | 
| 10 | %  SSS the Sea Surface Salinity (PSU-35) | %  SSS the Sea Surface Salinity (PSU-35) | 
| 11 | %  p0  the Sea Level Pressure (mb) | %  p0  the Sea Level Pressure (mb) | 
| 12 | %  EKL is the Ekman layer depth (m) | %  EKL is the Ekman layer depth (m, positive) | 
| 13 | % | % | 
| 14 | % Files names are: | % Files names are: | 
| 15 | % INPUT: | % INPUT: | 
| 86 |  |  | 
| 87 | MLD(isnan(squeeze(ST(1,:,:)))) = NaN; | MLD(isnan(squeeze(ST(1,:,:)))) = NaN; | 
| 88 |  |  | 
| 89 |  |  | 
| 90 |  | %%%%%%%%%%%%%%%%%%%%%%%%%%%% | 
| 91 |  | % Ensure we have the right sign (positive) | 
| 92 |  | mm = nanmean(nanmean(MLD,1)); | 
| 93 |  | if mm <= 0 | 
| 94 |  | MLD = -MLD; | 
| 95 |  | end | 
| 96 |  |  | 
| 97 |  |  | 
| 98 |  |  | 
| 99 | %%%%%%%%%%%%%%%%%%%%%%%%%%%% | %%%%%%%%%%%%%%%%%%%%%%%%%%%% | 
| 100 | % Record | % Record | 
| 101 | %%%%%%%%%%%%%%%%%%%%%%%%%%%% | %%%%%%%%%%%%%%%%%%%%%%%%%%%% |