/[MITgcm]/MITgcm_contrib/netcdf_matlab_examples/WOCE_climatology/read_allpar_climatology.f
ViewVC logotype

Contents of /MITgcm_contrib/netcdf_matlab_examples/WOCE_climatology/read_allpar_climatology.f

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


Revision 1.1 - (show annotations) (download)
Tue Feb 10 14:35:30 2004 UTC (20 years, 2 months ago) by edhill
Branch: MAIN
CVS Tags: HEAD
 o initial check-in of WOCE netcdf example

1 c 26_JANUARY_2004
2 c
3 c AUTHOR: Viktor Gouretski
4 c BSH, Hamburg
5
6 c program read_allpar_climatology
7
8 c this program reads gridded file of the WOCE GLOBAL HYDROGRAPHIC CLIMATOLOGY
9
10
11
12
13 character*80 filein
14
15 real*4 par(13,100),error(5,100)
16
17 real*4 var(6,100)
18
19 integer*4 levels(6,100)
20 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
21
22 c/ nbrlev - number of gridded levels
23 c/ radbub - radius of the influence bubble (km)
24 c/ radcor - decorrelation length scale (km)
25 c/ depthml - mixed layer depth (m)
26
27
28 write(6,*)'input grid-file'
29 read(5,80)filein
30 open(20,file=filein,status='old')
31
32
33
34 80 format(a80)
35
36 3033 format(i2,1x,3f6.0)
37
38 5030 format(2f6.1,3f6.0,3f10.6,
39 *f8.3,f8.2,2f8.3,
40 *5f5.2,5i4,
41 *6f8.3,4f10.6)
42
43
44 do 1 i=1,720 ! start longitude loop
45
46 do 11 j=1,341 ! start latitude loop
47
48 read(20,3033,end=2,err=2)
49 *nbrlev,radbub,radcor,depthml
50
51
52 do k=1,nbrlev ! start standard level loop
53
54 read(20,5030)xgrid,ygrid,etdep,
55 *(par(ipa,k),ipa=1,9),
56 *(error(ipa,k),ipa=1,5),
57 *(levels(ipa,k),ipa=1,5),
58 *(var(ipa,k),ipa=1,6),
59 *(par(ipa,k),ipa=10,13)
60
61 end do
62
63
64 c xgrid - grid-node longitude (from 0 to 359.5E)
65 c ygrid - grid-node latitude (from -80S to 90N)
66 c etdep - grid-node ETOPO5 depth (m)
67
68 c par(1,k) - depth (m) of the k-th level
69 c par(2,k) - pressure (dbar)
70 c par(3,k) - t_in-situ
71 c par(4,k) - theta
72 c par(5,k) - salinity
73 c par(6,k) - oxygen (ml/l)
74 c par(7,k) - silicate (umol/kg)
75 c par(8,k) - nitrate (umol/kg)
76 c par(9,k) - phosphate (umol/kg)
77 c par(10,k) - gamma-n
78 c par(11,k) - sig-0
79 c par(12,k) - sig-2
80 c par(13,k) - sig-4
81
82 c error(1,k) - relative optimum interpolation error for T, Theta & S
83 c error(2,k) - relative optimum interpolation error for Oxygen
84 c error(3,k) - relative optimum interpolation error for Silicate
85 c error(4,k) - relative optimum interpolation error for Nitrate
86 c error(5,k) - relative optimum interpolation error for Phosphate
87
88 c levels(1,k) - actual number of observations used for the optimal interpolation of T, Theta & S
89 c levels(2,k) - actual number of observations used for the optimal interpolation of Oxygen
90 c levels(3,k) - actual number of observations used for the optimal interpolation of Silicate
91 c levels(4,k) - actual number of observations used for the optimal interpolation of Nitarte
92 c levels(5,k) - actual number of observations used for the optimal interpolation of Phosphate
93
94 c var(1,k) - temperature standard deviation from the mean (within the influence radius = radcor)
95 c var(2,k) - salinity standard deviation from the mean (within the influence radius = radcor)
96 c var(3,k) - oxygen standard deviation from the mean (within the influence radius = radcor)
97 c var(4,k) - silicate standard deviation from the mean (within the influence radius = radcor)
98 c var(5,k) - nitrate standard deviation from the mean (within the influence radius = radcor)
99 c var(6,k) - phosphate standard deviation from the mean (within the influence radius = radcor)
100
101 11 continue !j-loop
102
103 write(6,*) 'meridian has been read: i=',i,' xgrid=',xgrid
104
105 1 continue !i-loop
106
107 2 stop
108
109 end
110
111
112
113
114

  ViewVC Help
Powered by ViewVC 1.1.22