/[MITgcm]/MITgcm_contrib/ESMF/global_ocean.128x64x15/diags_matlab/mit_meridflux.m
ViewVC logotype

Contents of /MITgcm_contrib/ESMF/global_ocean.128x64x15/diags_matlab/mit_meridflux.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Sun Feb 15 22:28:31 2004 UTC (21 years, 5 months ago) by cnh
Branch: MAIN, Initial
CVS Tags: adoption_1_0_pre_A, Baseline, HEAD
Changes since 1.1: +0 -0 lines
Initial checkin

1 function T = mit_meridflux(surface_flux,dx,dy)
2 % function T = mit_meridflux(surface_flux,dx,dy)
3
4 if nargin == 2
5 area = dx;
6 elseif nargin == 3
7 area = dx.*dy;
8 else
9 error('need two or three input parameters')
10 end
11 [nx ny nt] = size(surface_flux);
12 for kt=1:nt
13 fdxdy(:,:,kt) = change(surface_flux(:,:,kt),'==',NaN,0).*area;
14 end
15
16 T = squeeze(sum(cumsum(fdxdy,2),1));
17
18 return

  ViewVC Help
Powered by ViewVC 1.1.22