Back to home page

MITgcm

 
 

    


Warning, /verification/tutorial_global_oce_latlon/diags_matlab/mit_globalmean.m is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
051ee7f715 Jean*0001 function [mdt, mdtt, mdtstd] = mit_globalmean(dt,rac3d)
                0002 % function [mdt, mdtt, mdtstd] = mit_globalmean(dt,rac3d)
                0003   
                0004   denom = nansum(nansum(rac3d));
                0005   mdt    = squeeze(nansum(nansum(dt.*rac3d))./denom);
                0006   mdtt   = squeeze(nansum(nansum(abs(dt).*rac3d))./denom);
                0007   mdtstd = sqrt(squeeze(nansum(nansum(dt.^2.*rac3d))./denom));
                0008 
                0009   return