/[MITgcm]/MITgcm_contrib/mlosch/interp_llc/vgrid.m
ViewVC logotype

Contents of /MITgcm_contrib/mlosch/interp_llc/vgrid.m

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


Revision 1.1 - (show annotations) (download)
Thu May 3 21:07:21 2007 UTC (18 years, 2 months ago) by mlosch
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
initial checkin of topography and hydrography interpolation scripts for
the llc-grid, based on old matlab scripts by Alistair Adcroft
Let's hope, they are useful.

1 % vgrid.m creates the model vertical grid and stores the grid information
2 % various arrays. Nominally set are:
3 % level thicknesses (dz)
4 % from which are generated:
5 % tracer grid coordinates (xc,yc,zc)
6 % w-point grid coordinates (xc,yc,zf)
7 %
8 % load VGRID.mat (loads everything above)
9 %
10 % Uses data files: n/a
11 % Creates data files: VGRID.mat
12 % Creates arrays: dz,zc,zf
13 %
14 % Created 04/20/01 by adcroft@mit.edu
15
16 % Vertical level thicknesses
17 % 30 levels, -6565
18 %dz=[10 10 12.5 15 17.5 20 25 30 35 40 50 60 70 80 100 120 140 170 200 240 280 330 370 420 480 540 600 660 700 740];
19 % 20 levels, -6000 (exp2)
20 %dz=[50 50 55 60 65 70 80 95 120 155 200 260 320 400 480 570 655 725 775 815];
21 % 15 levels, -6000 (global_ocean)
22 %dz=[50 70 100 140 190 240 290 340 390 440 490 540 590 640 690];
23 % 23 levels -5700 m global ocean ("old" ecco configuration)
24 dz=[10.,10.,15.,20.,20.,25.,35.,50.,75.,100.,150.,200.,275.,350.,415., ...
25 450.,500.,500.,500.,500.,500.,500.,500.];
26 % ecco-godae/ecco
27 % $$$ dz=[10.00, 10.00, 10.00, 10.00, 10.00, 10.00, 10.00, 10.01, ...
28 % $$$ 10.03, 10.11, 10.32, 10.80, 11.76, 13.42, 16.04, 19.82, 24.85, ...
29 % $$$ 31.10, 38.42, 46.50, 55.00, 63.50, 71.58, 78.90, 85.15, 90.18, ...
30 % $$$ 93.96, 96.58, 98.25, 99.25,100.01,101.33,104.56,111.33,122.83, ...
31 % $$$ 139.09,158.94,180.83,203.55,226.50,249.50,272.50,295.50,318.50, ...
32 % $$$ 341.50,364.50,387.50,410.50,433.50,456.50];
33
34 nzc=prod(size(dz));
35
36 zf=-cumsum([0 dz]);
37 zc=(zf(1:end-1)+zf(2:end))/2;
38 disp(sprintf('nzc = %i',nzc))
39 disp(['dz =' sprintf(' %4.1f',dz)])
40
41 % Store data in VGRID.mat
42 save VGRID.mat nzc dz zc zf

  ViewVC Help
Powered by ViewVC 1.1.22