/[MITgcm]/MITgcm_contrib/enderton/Diagnostics/DiagGenParam.m
ViewVC logotype

Contents of /MITgcm_contrib/enderton/Diagnostics/DiagGenParam.m

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


Revision 1.1 - (show annotations) (download)
Mon Jan 31 15:43:26 2005 UTC (20 years, 6 months ago) by enderton
Branch: MAIN
 o Initial check in.

1 % This file contains general diagnostics parameters.
2
3
4 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5 % Field information %
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7
8 % When ever a new field is added to be analyzed using the diagnostics
9 % package, it must be added here so that the packages knows what type of
10 % field it is.
11
12 fields2D = {'USTR' ,'VSTR' ,'TSR' ,'OLR' ,'SSR' ,...
13 'SLR' ,'SHF' ,'EVAP' ,'PRECNV','PRECLS',...
14 'CLOUDC','CLTOP' ,'CBMF' ,'DRAG' ,'aimV0' ,...
15 'aimT0' ,'aimQ0' ,'EnFxPr','albedo','dTsurf',...
16 'EmP' ,'TotP' ,'ETA' ,'ETAstd','Eta2' ,...
17 'Eta' ,...
18 'SLP','HF' ,'QSW','TX' ,'TY' ,'FW' ,...
19 'SFx','SIC','MXL','SST','SSS','vSq',...
20 'ice_fract' ,'ice_iceH' ,'ice_snowAge' ,...
21 'ice_snowH' ,'ice_snowPrc' ,'ice_Qice1' ,...
22 'ice_Qice2' ,'ice_Tice1' ,'ice_Tice2' ,...
23 'ice_Tsrf' ,...
24 'ICE_fract' ,'ICE_iceH' ,...
25 'ICE_fract-T' ,'ICE_iceH-T' ,...
26 'ice_fract_Ave' ,'ice_iceH_Ave' ,...
27 'ice_snowH_Ave' ,'ice_Tsrf_Ave' ,'ice_Tice1_Ave' ,...
28 'ice_Tice2_Ave' ,'ice_snowPr_Ave','ice_flx2oc_Ave',...
29 'ice_frw2oc_Ave','ice_salFx_Ave' ,'ice_flxAtm_Ave',...
30 'ice_frwAtm_Ave','ice_albedo_Ave','ICE_tMxL_Ave' ,...
31 'ICE_sMxL_Ave'};
32
33 fields3D = {'S','T','Temp','TT','U','UU','uVel','V','VV','vVel','W',...
34 'wVel','aim_RH','Tstd','KEpri','phiHyd','Psi','Bol','Res',...
35 'Conv','Test'};
36
37
38 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 % AIM physics parameters %
40 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41
42 % This information is specific to the aim atmospheric physics package. The
43 % data (unfortunately) comes in a single file with an array that must be
44 % properly indexed to pull out the desired information. Here is the list
45 % of fields and the indecies. Note that some fields do not have indecies
46 % such as 'EmP' and 'TotP'. This is because these are compositions of
47 % other aim physics fields.
48
49 aimparameters = {'USTR' ,'VSTR' ,'TSR' ,'OLR' ,'SSR' ,...
50 'SLR' ,'SHF' ,'EVAP' ,'PRECNV','PRECLS',...
51 'CLOUDC','CLTOP' ,'CBMF' ,'DRAG' ,'aimV0' ,...
52 'aimT0' ,'aimQ0' ,'EnFxPr','albedo','dTsurf',...
53 'EmP' ,'TotP'};
54
55 USTR = 1; % U-stress (Pa)
56 VSTR = 2; % V-stress (Pa)
57 TSR = 3; % Top-of-atm. shortwave radiation (W/m2)
58 OLR = 4; % Outgoing longwave radiation (W/m2)
59 SSR = 5; % Surface shortwave radiation (W/m2)
60 SLR = 6; % Surface longwave radiation (W/m2)
61 SHF = 7; % Sensible heat flux (W/m2)
62 EVAP = 8; % Evaporation [g/ (m2 s)]
63 PRECNV = 9; % Convective precipitation [g/ (m2 s)]
64 PRECLS = 10; % Large-scale precipitation [g/ (m2 s)]
65 CLOUDC = 11; % Total cloud cover (fraction)
66 CLTOP = 12; % Normalized pressure at cloud top
67 CBMF = 13; % Cloud-base mass flux
68 DRAG = 14; % Surface Drag term (= Cd*Rho*|V|) (land+sea combined)
69 aimV0 = 15; % Surface wind speed [m/s]
70 aimT0 = 16; % Surface air absolute temp. [K]
71 aimQ0 = 17; % Surface air spec. humidity [g/kg]
72 EnFxPr = 18; % Precip energy flux (snow, rain temp) [W/m^2]
73 albedo = 19; % Surface albedo [0-1]
74 dTsurf = 20; % Surf. Temp change from 1 iter to the next one (>0) [K]
75
76
77 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
78 % Coupled fields parameters %
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80
81 cplparameters = {'SLP','HF' ,'QSW','TX' ,'TY' ,'FW' ,...
82 'SFx','SIC','MXL','SST','SSS','vSq'};
83
84 SLP = 1; % Atmospheric Sea-Level pressure [N/m2]
85 HF = 2; % Net surface heat-flux [W/m2]
86 QSW = 3; % ??? [W/m2]
87 TX = 4; % Surface stress in X [N/m2]
88 TY = 5; % Surface stress in Y [N/m2]
89 FW = 6; % Net fresh water flux (E-P-R) [m/s]
90 SFx = 7; % Salt flux from sea-ice [psu.kg/m^2/s]
91 SIC = 8; % Sea-ice mass [kg/m^2]
92 MXL = 9; % Ocean mixed-layer depth [m]
93 SST = 10; % Ocean surface temperature [degC]
94 SSS = 11; % Ocean surface salinity [psu]
95 vSq = 12; % Ocean surface velocity square [m^2/s^2]
96
97
98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
99 % Ice time-average fields %
100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101
102 iceparameters = {'ice_fract' ,'ice_iceH' ,'ice_snowAge' ,...
103 'ice_snowH' ,'ice_snowPrc' ,'ice_Qice1' ,...
104 'ice_Qice2' ,'ice_Tice1' ,'ice_Tice2' ,...
105 'ice_Tsrf' ,...
106 'ICE_fract' ,'ICE_iceH' ,...
107 'ICE_fract-T' ,'ICE_iceH-T' ,...
108 'ice_fract_Ave' ,'ice_iceH_Ave' ,...
109 'ice_snowH_Ave' ,'ice_Tsrf_Ave' ,'ice_Tice1_Ave' ,...
110 'ice_Tice2_Ave' ,'ice_snowPr_Ave','ice_flx2oc_Ave',...
111 'ice_frw2oc_Ave','ice_salFx_Ave' ,'ice_flxAtm_Ave',...
112 'ice_frwAtm_Ave','ice_albedo_Ave','ICE_tMxL_Ave' ,...
113 'ICE_sMxL_Ave'};
114
115 ice_fract_Ave = 1; % Ice fraction [0-1]
116 ice_iceH_Ave = 2; % Ice thickness [m]
117 ice_snowH_Ave = 3; % Snow thickness [m]
118 ice_Tsrf_Ave = 4; % Surface Temperature [C]
119 ice_Tice1_Ave = 5; % 1st level Temp. [C]
120 ice_Tice2_Ave = 6; % 2nd level Temp. [C]
121 ice_snowPr_Ave = 7; % Snow precipitation (+=down) [kg/m2/s]
122 ice_flx2oc_Ave = 8; % Heat flux out of the ocean (+=up) [W/m2]
123 ice_frw2oc_Ave = 9; % Fresh-water flux out off the ocean (E-P) [m/s]
124 ice_salFx_Ave = 10; % Salt flux out of the ocean (+=up) [psu.kg/m2]
125 ice_flxAtm_Ave = 11; % Net heat flux from Atmosphere (+=down) [W/m2]
126 ice_frwAtm_Ave = 12; % Fresh-water flux from Atmos. (+=up) [kg/m2/s]
127 ice_albedo_Ave = 13; % Sea-ice albedo [0-1]
128 ICE_tMxL_Ave = 14; % Ocean mixed-layer Temp. [C]
129 ICE_sMxL_Ave = 15; % Ocean mixed-layer salinity [psu]
130
131
132 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
133 % Experiment and configuration indecies %
134 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
135
136 % REWRITE THE FOLLOWING PARAGRAPH!!!
137 % In the incoming data from the user (fields), each entry (field) will have
138 % an experiment cell array and an configuration cell array that must be in
139 % the proper order. The following defines the order in which the
140 % parameters are passed for each of the cell arrays. The field array had
141 % the following structure:
142 %
143 % {Experiment1,... {Configuration1,...
144 % field = { Experiment2,... , Configuration2,... , TitleStr }
145 % ComparisonType} Configuration3}
146 %
147 % Note that while often there can be any number of experiments and
148 % configurations, there are certain types of comparisons that set some
149 % limitations on this. The Experiment# and Configuration# arrays have the
150 % following order of fields:
151 %
152 % SHOULD BE GOOD FROM HERE!!!
153 % Current experiment order with indecies defined:
154 % { FieldName (fln), Experiment (exp), DataType (dat),...
155 % DataDir (dad), GridDir (grd), Iterations (itr),...
156 % TimeStep (tst), Fluid (flu), DataFormat (drm),...
157 % Averaging (avg), SliceType (slc), PlotStyle (pst)}
158 %
159 % Field descriptions/options:
160 % FieldName (fln): Variable name.
161 % Experiment (exp): Experiment name.
162 % DataType (dat): Data type, supports 'Tav', 'Int'.
163 % DataDir (dad): Data directory.
164 % GridDir (grd): Grid data directory.
165 % Iterations (itr): Iterations for analysis.
166 % TimeStep (tst): Time step.
167 % Fluid (flu): Fluid, supports 'A', 'O'.
168 % DataFormat (dfm): Data format, supports 'MDS', 'MNC'.
169 % Averaging (avg): 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
170 % 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec',
171 % 'DJF', 'MAM', 'JJA', 'SON', 'Ann', 'Ins',
172 % SliceType (slc): 'Sur', 'Zon', 'i=#', 'j=#', 'k=#'
173 % PlotStyle (pst): 'Grd', 'Int', 'Con', 'Cnf', 'Lin'
174 ifln = 1;
175 iexp = 2;
176 idat = 3;
177 idad = 4;
178 igrd = 5;
179 iitr = 6;
180 itst = 7;
181 iflu = 8;
182 iddf = 9;
183 igdf = 10;
184 iavg = 11;
185 islc = 12;
186 ipst = 13;
187
188
189 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
190 % General grid parameters %
191 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
192
193 % Often time cube sphere data must be interpolated onto a lon-lat grid.
194 % These variables define the longitude (XL) and latitude (YL) values onto
195 % which the grid sphere data is interpolated.
196 XL = -179:2:180;
197 YL = -89:2:90 ;
198
199 % Zonal averaging parameters. Currently the zonal average function is set
200 % to compute the grid information everytime. Though it only needs to do
201 % this once (and then access the zonal average grid information file), it
202 % takes little time, so it is currently set to do this every time. To set
203 % it to do this only once, specify: kpr=3; nBas=-2; kwr=0;
204 kpr=1; nBas=-2; kwr=1;
205
206 % Resolution parameters. KEEP WITH OTHER GRID INFORMATION?!?!?
207 hres = 32;
208 vres = 5;
209 faces = 6;
210
211 g = 9.81;

  ViewVC Help
Powered by ViewVC 1.1.22