Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)
[x, clim] = remove_mean(sst, clim, plusorminus);
[x, clim] = annave(y); x = matrix with annual average removed y = input matrix clim = climatology
This function calls | This function is called by |
---|---|
function [x, clim] = remove_mean(sst, clim, plusorminus); n = ndims(sst); szsst = size(sst); sst = reshape(sst, szsst(1), prod(szsst(2:n))); [tmax,ngrid]=size(sst); if nargin < 2; plusorminus=-1; clim=mean2(sst); end; x=zeros(tmax,ngrid); x = (sst + plusorminus*ones(tmax,1)*clim); x = reshape(x, szsst); clim = reshape(clim, [1, szsst(2:n)]);