Modifications to scoring and graphics production for the final version of code for the C-LAMP paper in GCB.
1.1 --- a/all/01.npp.ncl Mon Jan 26 22:08:20 2009 -0500
1.2 +++ b/all/01.npp.ncl Thu Mar 26 14:02:21 2009 -0400
1.3 @@ -193,7 +193,8 @@
1.4 ;(3) global data, interpolated into model grid
1.5
1.6 dirg = diro + "npp/"
1.7 - filg = "Npp_"+model_grid+"_mean.nc"
1.8 + ;filg = "Npp_"+model_grid+"_mean.nc"
1.9 + filg = "npp_"+model_grid+"_mean_2000-2004.nc"
1.10 fglobe = addfile (dirg+filg,"r")
1.11
1.12 nppglobe0 = fglobe->NPP
1.13 @@ -225,11 +226,11 @@
1.14 ;
1.15 ; rain81 : mm/year
1.16 ; rainmod : mm/s
1.17 -; npp81 : g C/m^2/year
1.18 -; nppmod81: g C/m^2/s
1.19 -; nppglobe: g C/m^2/year
1.20 +; npp81 : gC/m^2/year
1.21 +; nppmod81: gC/m^2/s
1.22 +; nppglobe: gC/m^2/year
1.23 ;
1.24 -; We want to convert these to "m/year" and "g C/m^2/year".
1.25 +; We want to convert these to "m/year" and "gC/m^2/year".
1.26
1.27 nsec_per_year = 60*60*24*365
1.28
1.29 @@ -243,27 +244,27 @@
1.30
1.31 nppmod = nppmod * nsec_per_year
1.32
1.33 - npp81@units = "gC/m^2/yr"
1.34 - nppmod81@units = "gC/m^2/yr"
1.35 - npp933@units = "gC/m^2/yr"
1.36 - nppmod933@units = "gC/m^2/yr"
1.37 - nppmod@units = "gC/m^2/yr"
1.38 - nppglobe@units = "gC/m^2/yr"
1.39 - rain81@units = "m/yr"
1.40 - rainmod81@units = "m/yr"
1.41 - rain933@units = "m/yr"
1.42 - rainmod933@units = "m/yr"
1.43 + npp81@units = "gC m~S~-2~N~ y~S~-1~N~"
1.44 + nppmod81@units = "gC m~S~-2~N~ y~S~-1~N~"
1.45 + npp933@units = "gC m~S~-2~N~ y~S~-1~N~"
1.46 + nppmod933@units = "gC m~S~-2~N~ y~S~-1~N~"
1.47 + nppmod@units = "gC m~S~-2~N~ y~S~-1~N~"
1.48 + nppglobe@units = "gC m~S~-2~N~ y~S~-1~N~"
1.49 + rain81@units = "m y~S~-1~N~"
1.50 + rainmod81@units = "m y~S~-1~N~"
1.51 + rain933@units = "m y~S~-1~N~"
1.52 + rainmod933@units = "m y~S~-1~N~"
1.53
1.54 - npp81@long_name = "Obs. NPP (gC/m2/year)"
1.55 - npp933@long_name = "Obs. NPP (gC/m2/year)"
1.56 - nppmod81@long_name = "Model NPP (gC/m2/year)"
1.57 - nppmod933@long_name = "Model NPP (gC/m2/year)"
1.58 - nppmod@long_name = "Model NPP (gC/m2/year)"
1.59 - nppglobe@long_name = "NPP (gC/m2/year)"
1.60 - rain81@long_name = "PREC (m/year)"
1.61 - rain933@long_name = "PREC (m/year)"
1.62 - rainmod81@long_name = "PREC (m/year)"
1.63 - rainmod933@long_name = "PREC (m/year)"
1.64 + npp81@long_name = "Obs. NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.65 + npp933@long_name = "Obs. NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.66 + nppmod81@long_name = "Model NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.67 + nppmod933@long_name = "Model NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.68 + nppmod@long_name = "Model NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.69 + nppglobe@long_name = "NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.70 + rain81@long_name = "PREC (m y~S~-1~N~)"
1.71 + rain933@long_name = "PREC (m y~S~-1~N~)"
1.72 + rainmod81@long_name = "PREC (m y~S~-1~N~)"
1.73 + rainmod933@long_name = "PREC (m y~S~-1~N~)"
1.74
1.75 ; change longitude from 0-360 to -180-180
1.76 x81 = where(x81 .gt. 180., x81 -360., x81 )
1.77 @@ -289,8 +290,8 @@
1.78 ," <th bgcolor=DDDDDD >Site ID</th>" \
1.79 ," <th bgcolor=DDDDDD >Latitude</th>" \
1.80 ," <th bgcolor=DDDDDD >Longitude</th>" \
1.81 - ," <th bgcolor=DDDDDD >NPP(gC/m2/year)</th>" \
1.82 - ," <th bgcolor=DDDDDD >PPT(m/year)</th>" \
1.83 + ," <th bgcolor=DDDDDD >NPP (gC m<small><sup>-2</sup></small> y<small><sup>-1</sup></small>)</th>" \
1.84 + ," <th bgcolor=DDDDDD >PPT (m y<small><sup>-1</sup></small>)</th>" \
1.85 ,"</tr>" \
1.86 /)
1.87 table_footer = "</table>"
1.88 @@ -354,8 +355,8 @@
1.89 ," <th bgcolor=DDDDDD >Site ID</th>" \
1.90 ," <th bgcolor=DDDDDD >Latitude</th>" \
1.91 ," <th bgcolor=DDDDDD >Longitude</th>" \
1.92 - ," <th bgcolor=DDDDDD >NPP(gC/m2/year)</th>" \
1.93 - ," <th bgcolor=DDDDDD >PPT(m/year)</th>" \
1.94 + ," <th bgcolor=DDDDDD >NPP (gC m<small><sup>-2</sup></small> y<small><sup>-1</sup></small>)</th>" \
1.95 + ," <th bgcolor=DDDDDD >PPT (m y<small><sup>-1</sup></small>)</th>" \
1.96 ,"</tr>" \
1.97 /)
1.98 table_footer = "</table>"
1.99 @@ -425,8 +426,8 @@
1.100 ," <th bgcolor=DDDDDD rowspan=2>Site ID</th>" \
1.101 ," <th bgcolor=DDDDDD rowspan=2>Latitude</th>" \
1.102 ," <th bgcolor=DDDDDD rowspan=2>Longitude</th>" \
1.103 - ," <th bgcolor=DDDDDD colspan=2>NPP(gC/m2.year)</th>" \
1.104 - ," <th bgcolor=DDDDDD colspan=2>RAIN(m/year)</th>" \
1.105 + ," <th bgcolor=DDDDDD colspan=2>NPP (gC m<small><sup>-2</sup></small> y<small><sup>-1</sup></small>)</th>" \
1.106 + ," <th bgcolor=DDDDDD colspan=2>RAIN (m y<small><sup>-1</sup></small>)</th>" \
1.107 ,"</tr>" \
1.108 ,"<tr>" \
1.109 ," <th bgcolor=DDDDDD >observed</th>" \
1.110 @@ -506,8 +507,8 @@
1.111 ," <th bgcolor=DDDDDD rowspan=2>Site ID</th>" \
1.112 ," <th bgcolor=DDDDDD rowspan=2>Latitude</th>" \
1.113 ," <th bgcolor=DDDDDD rowspan=2>Longitude</th>" \
1.114 - ," <th bgcolor=DDDDDD colspan=2>NPP(gC/m2.year)</th>" \
1.115 - ," <th bgcolor=DDDDDD colspan=2>RAIN(m/year)</th>" \
1.116 + ," <th bgcolor=DDDDDD colspan=2>NPP (gC m<small><sup>-2</sup></small> y<small><sup>-1</sup></small>)</th>" \
1.117 + ," <th bgcolor=DDDDDD colspan=2>RAIN (m y<small><sup>-1</sup></small>)</th>" \
1.118 ,"</tr>" \
1.119 ,"<tr>" \
1.120 ," <th bgcolor=DDDDDD >observed</th>" \
1.121 @@ -569,7 +570,8 @@
1.122 ;***************************************************************************
1.123
1.124 plot_name = "scatter_model_vs_ob_81"
1.125 - title = model_name +" vs Class A observations (81 sites)"
1.126 + ;title = model_name +" vs Class A observations (81 sites)"
1.127 + title = model_name +" (1975-2000) vs Class A observations (81 sites)"
1.128
1.129 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
1.130 res = True ; plot mods desired
1.131 @@ -587,7 +589,7 @@
1.132 ccr81 = esccr(nppmod81,npp81,0)
1.133 ;print (ccr81)
1.134
1.135 - score_max = 2.5
1.136 + score_max = 1.0
1.137
1.138 bias = sum(abs(nppmod81-npp81)/(abs(nppmod81)+abs(npp81)))
1.139 M81s = (1. - (bias/dimsizes(y81)))*score_max
1.140 @@ -618,15 +620,16 @@
1.141 delete (wks)
1.142 delete (dum)
1.143
1.144 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.145 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.146 "rm "+plot_name+"."+plot_type)
1.147 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.148
1.149 ;***************************************************************************
1.150 ;(A)-6 scatter plot, model vs ob 933
1.151 ;***************************************************************************
1.152
1.153 plot_name = "scatter_model_vs_ob_933"
1.154 - title = model_name +" vs Class B Observations (933 sites)"
1.155 + title = model_name +" (1975-2000) vs Class B Observations (933 sites)"
1.156
1.157 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
1.158 res = True ; plot mods desired
1.159 @@ -644,7 +647,7 @@
1.160
1.161 ccr933 = esccr(nppmod933,npp933,0)
1.162
1.163 - score_max = 2.5
1.164 + score_max = 1.0
1.165
1.166 bias = sum(abs(nppmod933-npp933)/(abs(nppmod933)+abs(npp933)))
1.167 M933s = (1. - (bias/dimsizes(y933)))*score_max
1.168 @@ -675,8 +678,9 @@
1.169 delete (wks)
1.170 delete (dum)
1.171
1.172 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.173 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.174 "rm "+plot_name+"."+plot_type)
1.175 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.176
1.177 ;**************************************************************************
1.178 ;(B) histogram 81
1.179 @@ -711,7 +715,7 @@
1.180
1.181 ccr81h = esccr(uu,vv,0)
1.182
1.183 - score_max = 2.5
1.184 + score_max = 2.0
1.185
1.186 bias = sum(abs(vv-uu)/(abs(vv)+abs(uu)))
1.187 M81h = (1.- (bias/dimsizes(uu)))*score_max
1.188 @@ -742,8 +746,8 @@
1.189 resh@trYMinF = min(mn_yvalues) - 10.
1.190 resh@trYMaxF = max(mx_yvalues) + 10.
1.191
1.192 - resh@tiYAxisString = "NPP (g C/m2/year)"
1.193 - resh@tiXAxisString = "Precipitation (m/year)"
1.194 + resh@tiYAxisString = "NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.195 + resh@tiXAxisString = "Precipitation (m y~S~-1~N~)"
1.196
1.197 max_bar = new((/2,nx/),graphic)
1.198 min_bar = new((/2,nx/),graphic)
1.199 @@ -765,6 +769,9 @@
1.200
1.201 xy = gsn_csm_xy(wks,xvalues(0,:),yvalues(0,:),resh)
1.202
1.203 + ; Added by Forrest Hoffman to print out values on Wed Feb 4 14:36:00 EST 2009
1.204 + print("Observations: " + xvalues(0,:) + " " + yvalues(0,:))
1.205 +
1.206 ;-------------------------------
1.207 ;Attach the vertical bar and the horizontal cap line
1.208
1.209 @@ -809,15 +816,16 @@
1.210 draw(xy)
1.211 delete (wks)
1.212
1.213 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.214 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.215 "rm "+plot_name+"."+plot_type)
1.216 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.217
1.218 ;****************************************************************************
1.219 ;(B)-2 histogram plot, model vs ob 81 site
1.220 ;****************************************************************************
1.221
1.222 plot_name = "histogram_model_vs_ob_81"
1.223 - title = model_name+ " vs Class A Observations (81 sites)"
1.224 + title = model_name+ " (1975-2000) vs Class A Observations (81 sites)"
1.225 resh@tiMainString = title
1.226
1.227 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
1.228 @@ -847,6 +855,10 @@
1.229 gsn_text_ndc(wks,correlation_text,0.56,0.85,tRes)
1.230
1.231 xy = gsn_csm_xy(wks,xvalues,yvalues,resh)
1.232 +
1.233 + ; Added by Forrest Hoffman to print out values on Wed Feb 4 14:36:00 EST 2009
1.234 + print(model_name + ": " + xvalues(1,:) + " " + yvalues(1,:))
1.235 + ;print("All: " + xvalues(:,:) + " " + yvalues(:,:))
1.236 ;-------------------------------
1.237 ;Attach the vertical bar and the horizontal cap line
1.238
1.239 @@ -883,8 +895,9 @@
1.240 draw(xy)
1.241 delete(wks)
1.242
1.243 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.244 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.245 "rm "+plot_name+"."+plot_type)
1.246 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.247
1.248 delete (RAIN1_1D)
1.249 delete (RAIN2_1D)
1.250 @@ -935,7 +948,7 @@
1.251
1.252 ccr933h = esccr(uu,vv,0)
1.253
1.254 - score_max = 2.5
1.255 + score_max = 2.0
1.256
1.257 bias = sum(abs(vv-uu)/(abs(vv)+abs(uu)))
1.258 M933h = (1.- (bias/dimsizes(uu)))*score_max
1.259 @@ -967,8 +980,8 @@
1.260 resh@trYMinF = min(mn_yvalues) - 10.
1.261 resh@trYMaxF = max(mx_yvalues) + 10.
1.262
1.263 - resh@tiYAxisString = "NPP (g C/m2/year)"
1.264 - resh@tiXAxisString = "Precipitation (m/year)"
1.265 + resh@tiYAxisString = "NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.266 + resh@tiXAxisString = "Precipitation (m y~S~-1~N~)"
1.267
1.268 max_bar = new((/2,nx/),graphic)
1.269 min_bar = new((/2,nx/),graphic)
1.270 @@ -990,6 +1003,9 @@
1.271
1.272 xy = gsn_csm_xy(wks,xvalues(0,:),yvalues(0,:),resh)
1.273
1.274 + ; Added by Forrest Hoffman to print out values on Wed Feb 4 14:36:00 EST 2009
1.275 + print("Observations: " + xvalues(0,:) + " " + yvalues(0,:))
1.276 +
1.277 ;-------------------------------
1.278 ;Attach the vertical bar and the horizontal cap line
1.279
1.280 @@ -1027,15 +1043,16 @@
1.281 delete (xy)
1.282 delete (wks)
1.283
1.284 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.285 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.286 "rm "+plot_name+"."+plot_type)
1.287 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.288
1.289 ;****************************************************************************
1.290 ;(B)-4 histogram plot, model vs ob 933 site
1.291 ;****************************************************************************
1.292
1.293 plot_name = "histogram_model_vs_ob_933"
1.294 - title = model_name+ " vs Class B Observations (933 sites)"
1.295 + title = model_name+ " (1975-2000) vs Class B Observations (933 sites)"
1.296 resh@tiMainString = title
1.297
1.298 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
1.299 @@ -1065,6 +1082,9 @@
1.300 gsn_text_ndc(wks,correlation_text,0.56,0.85,tRes)
1.301
1.302 xy = gsn_csm_xy(wks,xvalues,yvalues,resh)
1.303 +
1.304 + ; Added by Forrest Hoffman to print out values on Wed Feb 4 14:36:00 EST 2009
1.305 + print("Observations: " + xvalues(1,:) + " " + yvalues(1,:))
1.306 ;-------------------------------
1.307 ;Attach the vertical bar and the horizontal cap line
1.308
1.309 @@ -1102,8 +1122,30 @@
1.310 delete(xy)
1.311 delete(wks)
1.312
1.313 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.314 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.315 "rm "+plot_name+"."+plot_type)
1.316 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.317 +
1.318 +;***************************************************************************
1.319 +; Read 2000-2004 dataset for MODIS comparison
1.320 +;***************************************************************************
1.321 +
1.322 +;------------------------------------------------------
1.323 +; read model data
1.324 +
1.325 + fm = addfile (dirm+film9,"r")
1.326 +
1.327 + nppmod0 = fm->NPP
1.328 + xm = fm->lon
1.329 + ym = fm->lat
1.330 +
1.331 + delete (fm)
1.332 +
1.333 + nppmod = nppmod0(0,:,:)
1.334 + delete (nppmod0)
1.335 + nppmod = nppmod * nsec_per_year
1.336 + nppmod@units = "gC m~S~-2~N~ y~S~-1~N~"
1.337 + nppmod@long_name = "Model NPP (gC m~S~-2~N~ y~S~-1~N~)"
1.338
1.339 ;***************************************************************************
1.340 ;(C) global contour
1.341 @@ -1132,7 +1174,7 @@
1.342 nppglobe = where(ismissing(nppglobe).and.(ismissing(nppmod).or.(nppmod.lt.delta)),0.,nppglobe)
1.343
1.344 plot_name = "global_ob"
1.345 - title = "Observed MODIS MOD 17"
1.346 + title = "MODIS MOD17A3 (2000-2004)"
1.347 resg@tiMainString = title
1.348
1.349 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
1.350 @@ -1142,14 +1184,15 @@
1.351
1.352 delete (wks)
1.353
1.354 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.355 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.356 "rm "+plot_name+"."+plot_type)
1.357 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.358 ;****************************************************************************
1.359 ;(C)-2 global contour plot, model
1.360 ;****************************************************************************
1.361
1.362 plot_name = "global_model"
1.363 - title = "Model "+ model_name
1.364 + title = "Model "+ model_name + " (2000-2004)"
1.365 resg@tiMainString = title
1.366
1.367 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
1.368 @@ -1159,8 +1202,9 @@
1.369
1.370 delete (wks)
1.371
1.372 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.373 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.374 "rm "+plot_name+"."+plot_type)
1.375 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.376
1.377 ;****************************************************************************
1.378 ;(C)-3 global contour plot, model vs ob
1.379 @@ -1190,7 +1234,7 @@
1.380
1.381 ccrG = esccr(ug,vg,0)
1.382
1.383 - score_max = 5.0
1.384 + score_max = 2.0
1.385
1.386 MG = (ccrG*ccrG)* score_max
1.387 M_npp_G = sprintf("%.2f", MG)
1.388 @@ -1215,14 +1259,14 @@
1.389 ;--------------------------------------------------------------------
1.390 ;(a) ob
1.391
1.392 - title = "Observed MODIS MOD 17"
1.393 + title = "MODIS MOD17A3 (2000-2004)"
1.394 resg@tiMainString = title
1.395
1.396 plot(0) = gsn_csm_contour_map_ce(wks,nppglobe,resg)
1.397
1.398 ;(b) model
1.399
1.400 - title = "Model "+ model_name
1.401 + title = "Model "+ model_name + " (2000-2004)"
1.402 resg@tiMainString = title
1.403
1.404 plot(1) = gsn_csm_contour_map_ce(wks,nppmod,resg)
1.405 @@ -1231,7 +1275,7 @@
1.406
1.407 zz = nppmod
1.408 zz = nppmod - nppglobe
1.409 - title = "Model_"+model_name+" - Observed"
1.410 + title = "Model "+model_name+" - MODIS MOD17A3"
1.411
1.412 resg@cnMinLevelValF = -500 ; Min level
1.413 resg@cnMaxLevelValF = 500. ; Max level
1.414 @@ -1250,8 +1294,9 @@
1.415 delete (wks)
1.416 delete (plot)
1.417
1.418 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.419 + system("convert -trim -density 150 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.420 "rm "+plot_name+"."+plot_type)
1.421 + ;system("convert -trim -density 150 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.422
1.423 ;***************************************************************************
1.424 ;(D)-1 zonal line plot, ob
1.425 @@ -1261,7 +1306,7 @@
1.426 vv@long_name = nppglobe@long_name
1.427
1.428 plot_name = "zonal_ob"
1.429 - title = "Observed MODIS MOD 17"
1.430 + title = "MODIS MOD17A3 (2000-2004)"
1.431
1.432 resz = True
1.433 resz@tiMainString = title
1.434 @@ -1272,8 +1317,9 @@
1.435
1.436 delete (wks)
1.437
1.438 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.439 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.440 "rm "+plot_name+"."+plot_type)
1.441 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.442
1.443 ;****************************************************************************
1.444 ;(D)-2 zonal line plot, model vs ob
1.445 @@ -1288,7 +1334,7 @@
1.446 ;-------------------------------------------
1.447 ; compute correlation coef and M score
1.448
1.449 - score_max = 5.0
1.450 + score_max = 2.0
1.451
1.452 ccrZ = esccr(s(1,:), s(0,:),0)
1.453 MZ = (ccrZ*ccrZ)* score_max
1.454 @@ -1303,7 +1349,7 @@
1.455 "mv -f "+html_new+" "+html_name)
1.456 ;-------------------------------------------
1.457 plot_name = "zonal_model_vs_ob"
1.458 - title = "Zonal Average"
1.459 + title = "Zonal Average (2000-2004)"
1.460 resz@tiMainString = title
1.461
1.462 wks = gsn_open_wks (plot_type,plot_name)
1.463 @@ -1324,16 +1370,16 @@
1.464 resz@pmLegendDisplayMode = "Always" ; turn on legend
1.465 resz@pmLegendSide = "Top" ; Change location of
1.466 ; resz@pmLegendParallelPosF = .45 ; move units right
1.467 - resz@pmLegendParallelPosF = .82 ; move units right
1.468 + resz@pmLegendParallelPosF = .75 ; move units right
1.469 resz@pmLegendOrthogonalPosF = -0.4 ; move units down
1.470
1.471 resz@pmLegendWidthF = 0.10 ; Change width and
1.472 resz@pmLegendHeightF = 0.10 ; height of legend.
1.473 - resz@lgLabelFontHeightF = .02 ; change font height
1.474 + resz@lgLabelFontHeightF = .015 ; change font height
1.475 ; resz@lgTitleOn = True ; turn on legend title
1.476 ; resz@lgTitleString = "Example" ; create legend title
1.477 ; resz@lgTitleFontHeightF = .025 ; font of legend title
1.478 - resz@xyExplicitLegendLabels = (/"Observed",model_name/) ; explicit labels
1.479 + resz@xyExplicitLegendLabels = (/"MODIS MOD17A3",model_name/) ; explicit labels
1.480 ;--------------------------------------------------------------------
1.481 zRes = True
1.482 zRes@txFontHeightF = 0.025
1.483 @@ -1347,8 +1393,9 @@
1.484
1.485 delete (wks)
1.486
1.487 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.488 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
1.489 "rm "+plot_name+"."+plot_type)
1.490 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
1.491
1.492 ;***************************************************************************
1.493 ; add total score and write to file
2.1 --- a/all/02.lai.ncl Mon Jan 26 22:08:20 2009 -0500
2.2 +++ b/all/02.lai.ncl Thu Mar 26 14:02:21 2009 -0400
2.3 @@ -94,8 +94,8 @@
2.4 ;---------------------------------
2.5 ; read lai data: observed
2.6
2.7 - ;ob_name = "MODIS MOD 15A2 2000-2005"
2.8 - ob_name = "MODIS MOD 15A2 2000-2004"
2.9 + ;ob_name = "MODIS MOD15A2 (2000-2005)"
2.10 + ob_name = "MODIS MOD15A2 (2000-2004)"
2.11
2.12 dir_l = diro + "lai/"
2.13 ;filo = "LAI_2000-2005_MONS_"+model_grid+".nc"
2.14 @@ -145,7 +145,7 @@
2.15
2.16 delete (wks)
2.17
2.18 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.19 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.20 "rm "+plot_name+"."+plot_type)
2.21
2.22 ;************************************************
2.23 @@ -167,7 +167,7 @@
2.24
2.25 delete (wks)
2.26
2.27 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.28 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.29 "rm "+plot_name+"."+plot_type)
2.30
2.31 ;*******************************************************************
2.32 @@ -258,6 +258,7 @@
2.33 if (m .eq. 0) then
2.34 data_ob = dim_avg_Wrap(laiob (lat|:,lon|:,time|:))
2.35 data_mod = dim_avg_Wrap(laimod(lat|:,lon|:,time|:))
2.36 + score_max = 4.0
2.37 end if
2.38
2.39 ; (B) Max
2.40 @@ -283,6 +284,8 @@
2.41 data_mod(j,i) = max(laimod(:,j,i))
2.42 end do
2.43 end do
2.44 +
2.45 + score_max = 5.0
2.46
2.47 end if
2.48
2.49 @@ -309,6 +312,8 @@
2.50 data_mod(j,i) = maxind(laimod(:,j,i)) + 1
2.51 end do
2.52 end do
2.53 +
2.54 + score_max = 6.0
2.55
2.56 end if
2.57
2.58 @@ -373,7 +378,9 @@
2.59 ; compute correlation coef and M score
2.60 ;=====================================
2.61
2.62 - score_max = 5.0
2.63 + ; FMH: Max scores are depend on which component is being analyzed, so this
2.64 + ; is now set in each if statement above.
2.65 + ;score_max = 5.0
2.66
2.67 u = yvalues(0,:)
2.68 v = yvalues(1,:)
2.69 @@ -489,15 +496,17 @@
2.70 delete (wks)
2.71 delete (plot)
2.72
2.73 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.74 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.75 "rm "+plot_name+"."+plot_type)
2.76 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
2.77 +
2.78
2.79 ;============================
2.80 ; global contour : model
2.81 ;============================
2.82
2.83 plot_name = "global_"+component(m)+"_model"
2.84 - title = "Model " + model_name
2.85 + title = "Model " + model_name + " (2000-2004)"
2.86 resg@tiMainString = title
2.87
2.88 wks = gsn_open_wks (plot_type,plot_name)
2.89 @@ -508,8 +517,9 @@
2.90 delete (wks)
2.91 delete (plot)
2.92
2.93 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.94 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.95 "rm "+plot_name+"."+plot_type)
2.96 + ;system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
2.97
2.98 ;================================
2.99 ; global contour: model vs ob
2.100 @@ -544,7 +554,7 @@
2.101
2.102 ; plot model
2.103
2.104 - title = "Model "+ model_name
2.105 + title = "Model "+ model_name + " (2000-2004)"
2.106 resg@tiMainString = title
2.107
2.108 plot(1) = gsn_csm_contour_map_ce(wks,data_mod,resg)
2.109 @@ -571,7 +581,7 @@
2.110
2.111 zz = data_mod
2.112 zz = data_mod - data_ob
2.113 - title = "Model_"+model_name+" - Observed"
2.114 + title = "Model_"+model_name+" - MODIS MOD15A2"
2.115 resg@tiMainString = title
2.116
2.117 plot(2) = gsn_csm_contour_map_ce(wks,zz,resg)
2.118 @@ -586,8 +596,9 @@
2.119 delete (wks)
2.120 delete (plot)
2.121
2.122 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.123 + system("convert -trim -density 150 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.124 "rm "+plot_name+"."+plot_type)
2.125 + ;system("convert -trim -density 150 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
2.126
2.127 delete (data_ob)
2.128 delete (data_mod)
2.129 @@ -833,7 +844,7 @@
2.130 delete (wks)
2.131 delete (plot)
2.132
2.133 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.134 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.135 "rm "+plot_name+"."+plot_type)
2.136 end do
2.137
2.138 @@ -857,7 +868,7 @@
2.139 delete (wks)
2.140 delete (plot)
2.141
2.142 - system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.143 + system("convert -trim -density 100 "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
2.144 "rm "+plot_name+"."+plot_type)
2.145
2.146 delete (plot_data)
3.1 --- a/all/03.co2.ncl Mon Jan 26 22:08:20 2009 -0500
3.2 +++ b/all/03.co2.ncl Thu Mar 26 14:02:21 2009 -0400
3.3 @@ -186,7 +186,7 @@
3.4
3.5 if (z .eq. 3) then
3.6 zone = "90S-EQ"
3.7 - score_max = 5.0
3.8 + score_max = 0.0
3.9 ind_z = ind(lat_ob .lt. 0. )
3.10 end if
3.11
4.1 --- a/all/04.biomass.ncl Mon Jan 26 22:08:20 2009 -0500
4.2 +++ b/all/04.biomass.ncl Thu Mar 26 14:02:21 2009 -0400
4.3 @@ -44,7 +44,7 @@
4.4 ;--------------------------------------------
4.5 ; read model data
4.6
4.7 - fm = addfile (dirm+film1,"r")
4.8 + fm = addfile (dirm+film11,"r")
4.9
4.10 if (BGC .eq. "cn") then
4.11 data1 = fm->LIVESTEMC
4.12 @@ -83,7 +83,7 @@
4.13 ;------------------------------------------------
4.14 ; read ob data
4.15
4.16 - ob_name = "LC15_Amazon_Biomass"
4.17 + ob_name = "LC15 Amazon Biomass"
4.18
4.19 dir_b = diro + "biomass/"
4.20 fil_b = "amazon_biomass_"+model_grid+".nc"
4.21 @@ -99,9 +99,9 @@
4.22 ; Units for these variables are:
4.23 ; dataob : MgC/ha
4.24 ; datamod0 : gC/m2
4.25 -; We want to convert these to KgC/m2
4.26 +; We want to convert these to kgC/m2
4.27 ; ha = 100m*100m = 10,000 m2
4.28 -; MgC/ha*1000/10,000 = KgC/m2
4.29 +; MgC/ha*1000/10,000 = kgC/m2
4.30
4.31 factor_aboveground = 0.5
4.32 factor_unit_ob = 0.1
4.33 @@ -110,8 +110,8 @@
4.34 dataob = dataob * factor_aboveground * factor_unit_ob
4.35 datamod0 = datamod0 * factor_unit_mod
4.36
4.37 - dataob@units = "KgC/m2"
4.38 - datamod0@units = "KgC/m2"
4.39 + dataob@units = "kg C m~S~-2~N~"
4.40 + datamod0@units = "kg C m~S~-2~N~"
4.41
4.42 dataob@long_name = "Amazon Biomass"
4.43 datamod0@long_name = "Amazon Biomass"
4.44 @@ -139,7 +139,7 @@
4.45 ;********************************************************
4.46 ; sum over amazom_mask area:
4.47
4.48 -; Peta g = 1.e15 g = 1.e12 Kg
4.49 +; Peta g = 1.e15 g = 1.e12 kg
4.50 factor_unit = 1.e-12
4.51
4.52 ; mask_amazon = where(mask_amazon .ge. 0.5, mask_amazon ,0.)
4.53 @@ -204,6 +204,7 @@
4.54
4.55 system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
4.56 "rm "+plot_name+"."+plot_type)
4.57 + ;system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
4.58
4.59 ;------------------------------------------------------------------------
4.60 ; contour ob
4.61 @@ -225,6 +226,7 @@
4.62
4.63 system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
4.64 "rm "+plot_name+"."+plot_type)
4.65 + ;system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
4.66
4.67 ;------------------------------------------------------------------------
4.68 ; contour model
4.69 @@ -234,7 +236,7 @@
4.70 resg@cnLevelSpacingF = 2. ; interval
4.71
4.72 plot_name = "global_model"
4.73 - title = "Model "+ model_name
4.74 + title = "Model "+ model_name + " (2000)"
4.75 resg@tiMainString = title
4.76
4.77 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
4.78 @@ -246,6 +248,7 @@
4.79
4.80 system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
4.81 "rm "+plot_name+"."+plot_type)
4.82 + ;system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
4.83
4.84 ;------------------------------------------------------------------------
4.85 ; contour model vs ob
4.86 @@ -273,13 +276,17 @@
4.87
4.88 ccrG = esccr(ug,vg,0)
4.89
4.90 - score_max = 5.0
4.91 + score_max = 10.0
4.92
4.93 ; Miomass = (ccrG*ccrG)* score_max
4.94 ; new eq
4.95 bias = sum(abs(ug-vg)/(abs(ug)+abs(vg)))
4.96 + print ("bias=" + bias + "dimsizes(ug)=" + dimsizes(ug))
4.97 + print ("other bias=" + sum(abs(ug-vg)/(ug+vg)))
4.98 Mbiomass = (1. - (bias/dimsizes(ug)))*score_max
4.99 + print ("Mbiomass=" + Mbiomass)
4.100 M_biomass = sprintf("%.2f", Mbiomass)
4.101 + print ("M_biomass=" + M_biomass)
4.102
4.103 if (isvar("compare")) then
4.104 system("sed -e '1,/M_biomass/s/M_biomass/"+M_biomass+"/' "+html_name2+" > "+html_new2+";"+ \
4.105 @@ -309,7 +316,7 @@
4.106
4.107 ;(b) model
4.108
4.109 - title = "Model "+ model_name
4.110 + title = "Model "+ model_name + " (2000)"
4.111 resg@tiMainString = title
4.112
4.113 plot(1) = gsn_csm_contour_map_ce(wks,datamod,resg)
4.114 @@ -318,7 +325,7 @@
4.115
4.116 zz = datamod
4.117 zz = datamod - dataob
4.118 - title = "Model_"+model_name+" - Observed"
4.119 + title = "Model "+model_name+" (2000) - Observed"
4.120
4.121 resg@cnMinLevelValF = -10. ; Min level
4.122 resg@cnMaxLevelValF = 10. ; Max level
4.123 @@ -340,6 +347,7 @@
4.124
4.125 system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
4.126 "rm "+plot_name+"."+plot_type)
4.127 + ;system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
4.128
4.129 resg@gsnFrame = True ; draw plot
4.130 resg@gsnDraw = True ; advance frame
4.131 @@ -363,7 +371,7 @@
4.132 gRes@txFontHeightF = 0.02
4.133 gRes@txAngleF = 0
4.134
4.135 - area_avg_text = "(average over mask area = "+sprintf("%.2f", avg_ob)+" Kg C/m2)"
4.136 + area_avg_text = "(average over mask area = "+sprintf("%.2f", avg_ob)+" kg C m~S~-2~N~)"
4.137
4.138 gsn_text_ndc(wks,area_avg_text,0.50,0.81,gRes)
4.139 ;-----------------------------------------
4.140 @@ -377,6 +385,7 @@
4.141
4.142 system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
4.143 "rm "+plot_name+"."+plot_type)
4.144 + ;system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
4.145
4.146 ;------------------------------------------------------------------------
4.147 ; contour model: masked
4.148 @@ -386,7 +395,7 @@
4.149 resg@cnLevelSpacingF = 2. ; interval
4.150
4.151 plot_name = "global_mask_model"
4.152 - title = "Model "+ model_name
4.153 + title = "Model "+ model_name + " (2000)"
4.154 resg@tiMainString = title
4.155
4.156 wks = gsn_open_wks (plot_type,plot_name) ; open workstation
4.157 @@ -398,7 +407,7 @@
4.158 gRes@txFontHeightF = 0.02
4.159 gRes@txAngleF = 0
4.160
4.161 - area_avg_text = "(average over mask area = "+sprintf("%.2f", avg_mod)+" Kg C/m2)"
4.162 + area_avg_text = "(average over mask area = "+sprintf("%.2f", avg_mod)+" kg C m~S~-2~N~)"
4.163
4.164 gsn_text_ndc(wks,area_avg_text,0.50,0.81,gRes)
4.165 ;-----------------------------------------
4.166 @@ -412,6 +421,7 @@
4.167
4.168 system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
4.169 "rm "+plot_name+"."+plot_type)
4.170 + ;system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
4.171
4.172 ;------------------------------------------------------------------------
4.173 ; contour model vs ob: masked
4.174 @@ -434,7 +444,7 @@
4.175 delete (ug)
4.176 delete (vg)
4.177
4.178 - score_max = 5.
4.179 + score_max = 0.
4.180
4.181 uu = ndtooned(zm)
4.182 vv = ndtooned(zo)
4.183 @@ -488,7 +498,7 @@
4.184
4.185 ;(b) model
4.186
4.187 - title = "Model "+ model_name
4.188 + title = "Model "+ model_name + " (2000)"
4.189 resg@tiMainString = title
4.190
4.191 plot(1) = gsn_csm_contour_map_ce(wks,zm,resg)
4.192 @@ -497,7 +507,7 @@
4.193
4.194 zz = zo
4.195 zz = zm - zo
4.196 - title = "Model_"+model_name+" - Observed"
4.197 + title = "Model "+model_name+" (2000) - Observed"
4.198
4.199 resg@cnMinLevelValF = -10. ; Min level
4.200 resg@cnMaxLevelValF = 10. ; Max level
4.201 @@ -518,6 +528,7 @@
4.202
4.203 system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new+";"+ \
4.204 "rm "+plot_name+"."+plot_type)
4.205 + ;system("convert "+plot_name+"."+plot_type+" "+plot_name+"."+plot_type_new)
4.206
4.207 ;***************************************************************************
4.208 ; add total score and write to file
5.1 --- a/all/06.fluxnet.ncl Mon Jan 26 22:08:20 2009 -0500
5.2 +++ b/all/06.fluxnet.ncl Thu Mar 26 14:02:21 2009 -0400
5.3 @@ -530,7 +530,8 @@
5.4 ;***************************************************************************
5.5 ; add total score and write to file
5.6 ;***************************************************************************
5.7 - M_total = M_fluxnet_all
5.8 + ;M_total = M_fluxnet_all
5.9 + M_total = 0.00 ; we don't actually use these scores
5.10
5.11 asciiwrite("M_save.fluxnet", M_total)
5.12
6.1 --- a/all/07.beta.ncl Mon Jan 26 22:08:20 2009 -0500
6.2 +++ b/all/07.beta.ncl Thu Mar 26 14:02:21 2009 -0400
6.3 @@ -136,7 +136,7 @@
6.4 ;---------------------------------------------------
6.5 ;compute beta_4
6.6
6.7 - score_max = 3.
6.8 + score_max = 10.
6.9
6.10 beta_4 = new((/n_sta/),float)
6.11
7.1 --- a/all/10.fire.ncl Mon Jan 26 22:08:20 2009 -0500
7.2 +++ b/all/10.fire.ncl Thu Mar 26 14:02:21 2009 -0400
7.3 @@ -74,7 +74,10 @@
7.4
7.5 fm = addfile (dirm+film7,"r")
7.6
7.7 + ; FMH: This was Jeff's, but I got an error
7.8 data_mod = fm->COL_FIRE_CLOSS(18:25,:,:,:)
7.9 + ; FMH: So I'll try this
7.10 + ;data_mod = fm->COL_FIRE_CLOSS(17:24,:,:,:)
7.11
7.12 delete (fm)
7.13
7.14 @@ -192,7 +195,7 @@
7.15 ;----------------------------------------------------
7.16 ; compute M_global
7.17
7.18 - score_max = 1.
7.19 + score_max = 2.5
7.20
7.21 Mscore1 = cc_space * cc_space * score_max
7.22
7.23 @@ -542,7 +545,7 @@
7.24 ; unit change from TgC/month to PgC/month
7.25 unit_factor = 1.e-3
7.26
7.27 - score_max = 1.
7.28 + score_max = 2.5
7.29
7.30 tmp_ob = new((/ntime/),float)
7.31 tmp_mod = new((/ntime/),float)
7.32 @@ -607,7 +610,7 @@
7.33 ;------------------------------------------
7.34 ; data for table : global
7.35
7.36 - score_max = 1.
7.37 + score_max = 2.5
7.38
7.39 tmp_ob = ndtooned(yvalues_g(:,0,:))
7.40 tmp_mod = ndtooned(yvalues_g(:,1,:))
8.1 --- a/all/11.ameriflux.ncl Mon Jan 26 22:08:20 2009 -0500
8.2 +++ b/all/11.ameriflux.ncl Thu Mar 26 14:02:21 2009 -0400
8.3 @@ -557,7 +557,8 @@
8.4 ; compute annual cycle correlation coef and M score
8.5 ;************************************************************
8.6
8.7 - score_max = 1.
8.8 + ;score_max = 1.
8.9 + score_max = (/6., 0., 9., 9., 6., 0./)
8.10
8.11 ccr = new ((/nstation, nfield/),float)
8.12 M_score = new ((/nstation, nfield/),float)
8.13 @@ -566,7 +567,7 @@
8.14 do m=0,nfield-1
8.15 ccr(n,m) = esccr(data_ob_ann(m,:,n),data_mod_ann(m,:,n),0)
8.16 bias = sum(abs(data_mod_ann(m,:,n)-data_ob_ann(m,:,n))/(abs(data_mod_ann(m,:,n))+abs(data_ob_ann(m,:,n))))
8.17 - M_score(n,m) = (1. -(bias/nmonth)) * score_max
8.18 + M_score(n,m) = (1. -(bias/nmonth)) * score_max(m)
8.19 end do
8.20 end do
8.21
9.1 --- a/all/run_1-model.csh Mon Jan 26 22:08:20 2009 -0500
9.2 +++ b/all/run_1-model.csh Thu Mar 26 14:02:21 2009 -0400
9.3 @@ -58,7 +58,10 @@
9.4 else
9.5 set TEMPLATE = template_1-model_noCO2
9.6 endif
9.7 -cp -r $DIR_SCRIPTS/$TEMPLATE $MODEL
9.8 +#cp -r $DIR_SCRIPTS/$TEMPLATE $MODEL
9.9 +rm -rf $MODEL
9.10 +tar xvpf $DIR_SCRIPTS/$TEMPLATE.tar
9.11 +mv $TEMPLATE $MODEL
9.12
9.13 # add quote, to be usesd in INPUT_TEXT
9.14 set MODELQ = \"$MODEL\"
10.1 --- a/all/run_2-model.csh Mon Jan 26 22:08:20 2009 -0500
10.2 +++ b/all/run_2-model.csh Thu Mar 26 14:02:21 2009 -0400
10.3 @@ -70,8 +70,14 @@
10.4 set TEMPLATE1 = template_1-model_noCO2
10.5 set TEMPLATE2 = template_2-model_noCO2
10.6 endif
10.7 -cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
10.8 -cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
10.9 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
10.10 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
10.11 +rm -rf $MODEL1
10.12 +rm -rf $COMPARE
10.13 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
10.14 +mv $TEMPLATE1 $MODEL1
10.15 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
10.16 +mv $TEMPLATE2 $COMPARE
10.17
10.18 # add quote, to be usesd in INPUT_TEXT
10.19 set MODELQ = \"$MODEL1\"
10.20 @@ -147,7 +153,11 @@
10.21 else
10.22 set TEMPLATE1 = template_1-model_noCO2
10.23 endif
10.24 -cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
10.25 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
10.26 +rm -rf $MODEL2
10.27 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
10.28 +mv $TEMPLATE1 $MODEL2
10.29 +
10.30
10.31 # add quote, to be usesd in INPUT_TEXT
10.32 set MODELQ = \"$MODEL2\"
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
11.2 +++ b/all/run_2-model_36cn_37cn_cont.csh Thu Mar 26 14:02:21 2009 -0400
11.3 @@ -0,0 +1,247 @@
11.4 +#!/bin/csh -f
11.5 +#-------------------------------------------------------------------
11.6 +# note: user modifies ONLY the "user modification" section
11.7 +#
11.8 +# COMPARE: model1 vs model2
11.9 +# MODELn : model name
11.10 +# DIR_M : directory of model data
11.11 +# DIR_O : directory of observed data
11.12 +# DIR_S : directory of model surface data
11.13 +# DIR_SCRIPTS : directory of run scripts
11.14 +# FILE1 : time_mean climatology from CLM diagnostic package
11.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
11.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
11.17 +# leave it blank, if no ATM file:
11.18 +# set FILE3 =
11.19 +# FILE7 : timeseries file generated from ....
11.20 +# FILE8 : timeseries file generated from ....
11.21 +# GRID : T31, T42, or 1.9
11.22 +# BGC : cn or casa
11.23 +# ENERGY : new or old (fields in model data)
11.24 +#-------------------------------------------------------------------
11.25 +
11.26 +#*******************************************************
11.27 +# user modification-(1)
11.28 +
11.29 +# directory name of model comparison
11.30 +#et COMPARE = b30.061n_vs_b30.061m
11.31 +set COMPARE = i01.36cn_vs_i01.37cn_cont
11.32 +
11.33 +#*******************************************************
11.34 +# user modification-(2)
11.35 +
11.36 +# model1
11.37 +set MODEL1 = i01.36cn
11.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.36cn_out/
11.39 +set FILE1 = i01.36cn_out_ANN_climo.nc
11.40 +set FILE2 = i01.36cn_out_MONS_climo.nc
11.41 +set FILE3 =
11.42 +set FILE4 = $FILE1
11.43 +set FILE5 = $FILE1
11.44 +set FILE6 = $FILE1
11.45 +set FILE7 = i01.36cn_Fire_C_2076-2100_monthly.nc
11.46 +set FILE8 = i01.36cn_ameriflux_2076-2100_monthly.nc
11.47 +set FILE9 = $FILE1
11.48 +set FILE10 = $FILE2
11.49 +set GRID = 1.9
11.50 +set BGC = cn
11.51 +set ENERGY = old
11.52 +
11.53 +# in the "CLAMP metric processing" section:
11.54 +# only 00.initial.ncl and 99.final.ncl are required,
11.55 +# user can comment out any one or more of the other ncl scripts,
11.56 +# e.g.
11.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
11.58 +
11.59 +# model surface data
11.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
11.61 +
11.62 +# observed data
11.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
11.64 +
11.65 +# directory for scripts, templates and ncl files
11.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
11.67 +
11.68 +#********************************************************
11.69 +
11.70 +# create model1 and model1_vs_model2 directory by copying templates
11.71 +if ($FILE3 != "") then
11.72 + set TEMPLATE1 = template_1-model
11.73 + set TEMPLATE2 = template_2-model
11.74 +else
11.75 + set TEMPLATE1 = template_1-model_noCO2
11.76 + set TEMPLATE2 = template_2-model_noCO2
11.77 +endif
11.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
11.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
11.80 +rm -rf $MODEL1
11.81 +rm -rf $COMPARE
11.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
11.83 +mv $TEMPLATE1 $MODEL1
11.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
11.85 +mv $TEMPLATE2 $COMPARE
11.86 +
11.87 +# add quote, to be usesd in INPUT_TEXT
11.88 +set MODELQ = \"$MODEL1\"
11.89 +set DIRMQ = \"$DIR_M\"
11.90 +set F1 = \"$FILE1\"
11.91 +set F2 = \"$FILE2\"
11.92 +set F3 = \"$FILE3\"
11.93 +set F4 = \"$FILE4\"
11.94 +set F5 = \"$FILE5\"
11.95 +set F6 = \"$FILE6\"
11.96 +set F7 = \"$FILE7\"
11.97 +set F8 = \"$FILE8\"
11.98 +set F9 = \"$FILE9\"
11.99 +set F10 = \"$FILE10\"
11.100 +set GRIDQ = \"$GRID\"
11.101 +set BGCQ = \"$BGC\"
11.102 +set ENERGYQ = \"$ENERGY\"
11.103 +set DIRSQ = \"$DIR_S\"
11.104 +set DIROQ = \"$DIR_O\"
11.105 +set DIRCQ = \"$DIR_SCRIPTS\"
11.106 +
11.107 +set COMPAREQ = \"$COMPARE\"
11.108 +set MODELN = \"model1\"
11.109 +
11.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
11.111 +
11.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
11.113 +# CLAMP metric processing of model1
11.114 +echo "`date` - Running 00.initial.ncl"
11.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
11.116 +echo "`date` - Running 01.npp.ncl"
11.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
11.118 +echo "`date` - Running 01.lai.ncl"
11.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
11.120 +
11.121 +if ($FILE3 != "") then
11.122 +echo "`date` - Running 03.co2.ncl"
11.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
11.124 +endif
11.125 +
11.126 +echo "`date` - Running 04.biomass.ncl"
11.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
11.128 +echo "`date` - Running 06.fluxnet.ncl"
11.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
11.130 +echo "`date` - Running 07.beta.ncl"
11.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
11.132 +echo "`date` - Running 08.turnover.ncl"
11.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
11.134 +
11.135 +if ($BGC != "casa") then
11.136 +echo "`date` - Running 09.carbon_sink.ncl"
11.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
11.138 +else
11.139 +echo "`date` - Running 09x.carbon_sink.ncl"
11.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
11.141 +endif
11.142 +
11.143 +if ($BGC != "casa") then
11.144 +echo "`date` - Running 10.fire.ncl"
11.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
11.146 +endif
11.147 +
11.148 +echo "`date` - Running 11.ameriflux.ncl"
11.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
11.150 +echo "`date` - Running 99.final.ncl"
11.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
11.152 +
11.153 +#*******************************************************
11.154 +# user modification-(3)
11.155 +
11.156 +# model2
11.157 +set MODEL2 = i01.37cn_cont
11.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases/i01.37cn_cont_out/
11.159 +set FILE1 = i01.37cn_cont_out_ANN_climo.nc
11.160 +set FILE2 = i01.37cn_cont_out_MONS_climo.nc
11.161 +set FILE3 =
11.162 +set FILE4 = $FILE1
11.163 +set FILE5 = $FILE1
11.164 +set FILE6 = $FILE1
11.165 +set FILE7 = i01.37cn_cont_Fire_C_2976-3000_monthly.nc
11.166 +set FILE8 = i01.37cn_cont_ameriflux_2976-3000_monthly.nc
11.167 +set FILE9 = $FILE1
11.168 +set FILE10 = $FILE2
11.169 +set GRID = 1.9
11.170 +set BGC = cn
11.171 +set ENERGY = old
11.172 +#*******************************************************
11.173 +# create model2 directory by copying templates
11.174 +if ($FILE3 != "") then
11.175 + set TEMPLATE1 = template_1-model
11.176 +else
11.177 + set TEMPLATE1 = template_1-model_noCO2
11.178 +endif
11.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
11.180 +rm -rf $MODEL2
11.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
11.182 +mv $TEMPLATE1 $MODEL2
11.183 +
11.184 +# add quote, to be usesd in INPUT_TEXT
11.185 +set MODELQ = \"$MODEL2\"
11.186 +set DIRMQ = \"$DIR_M\"
11.187 +set F1 = \"$FILE1\"
11.188 +set F2 = \"$FILE2\"
11.189 +set F3 = \"$FILE3\"
11.190 +set F4 = \"$FILE4\"
11.191 +set F5 = \"$FILE5\"
11.192 +set F6 = \"$FILE6\"
11.193 +set F7 = \"$FILE7\"
11.194 +set F8 = \"$FILE8\"
11.195 +set F9 = \"$FILE9\"
11.196 +set F10 = \"$FILE10\"
11.197 +set GRIDQ = \"$GRID\"
11.198 +set BGCQ = \"$BGC\"
11.199 +set ENERGYQ = \"$ENERGY\"
11.200 +
11.201 +set COMPAREQ = \"$COMPARE\"
11.202 +set MODELN = \"model2\"
11.203 +
11.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
11.205 +
11.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
11.207 +# CLAMP metric processing of model2
11.208 +echo "`date` - Running 00.inital.ncl"
11.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
11.210 +echo "`date` - Running 01.npp.ncl"
11.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
11.212 +echo "`date` - Running 02.lai.ncl"
11.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
11.214 +
11.215 +if ($FILE3 != "") then
11.216 +echo "`date` - Running 03.co2.ncl"
11.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
11.218 +endif
11.219 +
11.220 +echo "`date` - Running 04.biomass.ncl"
11.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
11.222 +echo "`date` - Running 06.fluxnet.ncl"
11.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
11.224 +echo "`date` - Running 07.beta.ncl"
11.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
11.226 +echo "`date` - Running 08.turnover.ncl"
11.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
11.228 +
11.229 +if ($BGC != "casa") then
11.230 +echo "`date` - Running 09.carbon_sink.ncl"
11.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
11.232 +else
11.233 +echo "`date` - Running 09x.carbon_sink.ncl"
11.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
11.235 +endif
11.236 +
11.237 +if ($BGC != "casa") then
11.238 +echo "`date` - Running 10.fire.ncl"
11.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
11.240 +endif
11.241 +
11.242 +echo "`date` - Running 11.ameriflux.ncl"
11.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
11.244 +echo "`date` - Running 99.final.ncl"
11.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
11.246 +
11.247 +# create a tar file from the final output
11.248 +echo "`date` - tarring up final output into all.tar"
11.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
11.250 +
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
12.2 +++ b/all/run_2-model_36cn_38cn.csh Thu Mar 26 14:02:21 2009 -0400
12.3 @@ -0,0 +1,247 @@
12.4 +#!/bin/csh -f
12.5 +#-------------------------------------------------------------------
12.6 +# note: user modifies ONLY the "user modification" section
12.7 +#
12.8 +# COMPARE: model1 vs model2
12.9 +# MODELn : model name
12.10 +# DIR_M : directory of model data
12.11 +# DIR_O : directory of observed data
12.12 +# DIR_S : directory of model surface data
12.13 +# DIR_SCRIPTS : directory of run scripts
12.14 +# FILE1 : time_mean climatology from CLM diagnostic package
12.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
12.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
12.17 +# leave it blank, if no ATM file:
12.18 +# set FILE3 =
12.19 +# FILE7 : timeseries file generated from ....
12.20 +# FILE8 : timeseries file generated from ....
12.21 +# GRID : T31, T42, or 1.9
12.22 +# BGC : cn or casa
12.23 +# ENERGY : new or old (fields in model data)
12.24 +#-------------------------------------------------------------------
12.25 +
12.26 +#*******************************************************
12.27 +# user modification-(1)
12.28 +
12.29 +# directory name of model comparison
12.30 +#et COMPARE = b30.061n_vs_b30.061m
12.31 +set COMPARE = i01.36cn_vs_i01.38cn
12.32 +
12.33 +#*******************************************************
12.34 +# user modification-(2)
12.35 +
12.36 +# model1
12.37 +set MODEL1 = i01.36cn
12.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.36cn_out/
12.39 +set FILE1 = i01.36cn_out_ANN_climo.nc
12.40 +set FILE2 = i01.36cn_out_MONS_climo.nc
12.41 +set FILE3 =
12.42 +set FILE4 = $FILE1
12.43 +set FILE5 = $FILE1
12.44 +set FILE6 = $FILE1
12.45 +set FILE7 = i01.36cn_Fire_C_2076-2100_monthly.nc
12.46 +set FILE8 = i01.36cn_ameriflux_2076-2100_monthly.nc
12.47 +set FILE9 = $FILE1
12.48 +set FILE10 = $FILE2
12.49 +set GRID = 1.9
12.50 +set BGC = cn
12.51 +set ENERGY = old
12.52 +
12.53 +# in the "CLAMP metric processing" section:
12.54 +# only 00.initial.ncl and 99.final.ncl are required,
12.55 +# user can comment out any one or more of the other ncl scripts,
12.56 +# e.g.
12.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
12.58 +
12.59 +# model surface data
12.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
12.61 +
12.62 +# observed data
12.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
12.64 +
12.65 +# directory for scripts, templates and ncl files
12.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
12.67 +
12.68 +#********************************************************
12.69 +
12.70 +# create model1 and model1_vs_model2 directory by copying templates
12.71 +if ($FILE3 != "") then
12.72 + set TEMPLATE1 = template_1-model
12.73 + set TEMPLATE2 = template_2-model
12.74 +else
12.75 + set TEMPLATE1 = template_1-model_noCO2
12.76 + set TEMPLATE2 = template_2-model_noCO2
12.77 +endif
12.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
12.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
12.80 +rm -rf $MODEL1
12.81 +rm -rf $COMPARE
12.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
12.83 +mv $TEMPLATE1 $MODEL1
12.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
12.85 +mv $TEMPLATE2 $COMPARE
12.86 +
12.87 +# add quote, to be usesd in INPUT_TEXT
12.88 +set MODELQ = \"$MODEL1\"
12.89 +set DIRMQ = \"$DIR_M\"
12.90 +set F1 = \"$FILE1\"
12.91 +set F2 = \"$FILE2\"
12.92 +set F3 = \"$FILE3\"
12.93 +set F4 = \"$FILE4\"
12.94 +set F5 = \"$FILE5\"
12.95 +set F6 = \"$FILE6\"
12.96 +set F7 = \"$FILE7\"
12.97 +set F8 = \"$FILE8\"
12.98 +set F9 = \"$FILE9\"
12.99 +set F10 = \"$FILE10\"
12.100 +set GRIDQ = \"$GRID\"
12.101 +set BGCQ = \"$BGC\"
12.102 +set ENERGYQ = \"$ENERGY\"
12.103 +set DIRSQ = \"$DIR_S\"
12.104 +set DIROQ = \"$DIR_O\"
12.105 +set DIRCQ = \"$DIR_SCRIPTS\"
12.106 +
12.107 +set COMPAREQ = \"$COMPARE\"
12.108 +set MODELN = \"model1\"
12.109 +
12.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
12.111 +
12.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
12.113 +# CLAMP metric processing of model1
12.114 +echo "`date` - Running 00.initial.ncl"
12.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
12.116 +echo "`date` - Running 01.npp.ncl"
12.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
12.118 +echo "`date` - Running 01.lai.ncl"
12.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
12.120 +
12.121 +if ($FILE3 != "") then
12.122 +echo "`date` - Running 03.co2.ncl"
12.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
12.124 +endif
12.125 +
12.126 +echo "`date` - Running 04.biomass.ncl"
12.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
12.128 +echo "`date` - Running 06.fluxnet.ncl"
12.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
12.130 +echo "`date` - Running 07.beta.ncl"
12.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
12.132 +echo "`date` - Running 08.turnover.ncl"
12.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
12.134 +
12.135 +if ($BGC != "casa") then
12.136 +echo "`date` - Running 09.carbon_sink.ncl"
12.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
12.138 +else
12.139 +echo "`date` - Running 09x.carbon_sink.ncl"
12.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
12.141 +endif
12.142 +
12.143 +if ($BGC != "casa") then
12.144 +echo "`date` - Running 10.fire.ncl"
12.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
12.146 +endif
12.147 +
12.148 +echo "`date` - Running 11.ameriflux.ncl"
12.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
12.150 +echo "`date` - Running 99.final.ncl"
12.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
12.152 +
12.153 +#*******************************************************
12.154 +# user modification-(3)
12.155 +
12.156 +# model2
12.157 +set MODEL2 = i01.38cn
12.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.38cn_out/
12.159 +set FILE1 = i01.38cn_out_ANN_climo.nc
12.160 +set FILE2 = i01.38cn_out_MONS_climo.nc
12.161 +set FILE3 =
12.162 +set FILE4 = $FILE1
12.163 +set FILE5 = $FILE1
12.164 +set FILE6 = $FILE1
12.165 +set FILE7 = i01.38cn_Fire_C_2151-2175_monthly.nc
12.166 +set FILE8 = i01.38cn_ameriflux_2151-2175_monthly.nc
12.167 +set FILE9 = $FILE1
12.168 +set FILE10 = $FILE2
12.169 +set GRID = 1.9
12.170 +set BGC = cn
12.171 +set ENERGY = old
12.172 +#*******************************************************
12.173 +# create model2 directory by copying templates
12.174 +if ($FILE3 != "") then
12.175 + set TEMPLATE1 = template_1-model
12.176 +else
12.177 + set TEMPLATE1 = template_1-model_noCO2
12.178 +endif
12.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
12.180 +rm -rf $MODEL2
12.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
12.182 +mv $TEMPLATE1 $MODEL2
12.183 +
12.184 +# add quote, to be usesd in INPUT_TEXT
12.185 +set MODELQ = \"$MODEL2\"
12.186 +set DIRMQ = \"$DIR_M\"
12.187 +set F1 = \"$FILE1\"
12.188 +set F2 = \"$FILE2\"
12.189 +set F3 = \"$FILE3\"
12.190 +set F4 = \"$FILE4\"
12.191 +set F5 = \"$FILE5\"
12.192 +set F6 = \"$FILE6\"
12.193 +set F7 = \"$FILE7\"
12.194 +set F8 = \"$FILE8\"
12.195 +set F9 = \"$FILE9\"
12.196 +set F10 = \"$FILE10\"
12.197 +set GRIDQ = \"$GRID\"
12.198 +set BGCQ = \"$BGC\"
12.199 +set ENERGYQ = \"$ENERGY\"
12.200 +
12.201 +set COMPAREQ = \"$COMPARE\"
12.202 +set MODELN = \"model2\"
12.203 +
12.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
12.205 +
12.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
12.207 +# CLAMP metric processing of model2
12.208 +echo "`date` - Running 00.inital.ncl"
12.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
12.210 +echo "`date` - Running 01.npp.ncl"
12.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
12.212 +echo "`date` - Running 02.lai.ncl"
12.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
12.214 +
12.215 +if ($FILE3 != "") then
12.216 +echo "`date` - Running 03.co2.ncl"
12.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
12.218 +endif
12.219 +
12.220 +echo "`date` - Running 04.biomass.ncl"
12.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
12.222 +echo "`date` - Running 06.fluxnet.ncl"
12.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
12.224 +echo "`date` - Running 07.beta.ncl"
12.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
12.226 +echo "`date` - Running 08.turnover.ncl"
12.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
12.228 +
12.229 +if ($BGC != "casa") then
12.230 +echo "`date` - Running 09.carbon_sink.ncl"
12.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
12.232 +else
12.233 +echo "`date` - Running 09x.carbon_sink.ncl"
12.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
12.235 +endif
12.236 +
12.237 +if ($BGC != "casa") then
12.238 +echo "`date` - Running 10.fire.ncl"
12.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
12.240 +endif
12.241 +
12.242 +echo "`date` - Running 11.ameriflux.ncl"
12.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
12.244 +echo "`date` - Running 99.final.ncl"
12.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
12.246 +
12.247 +# create a tar file from the final output
12.248 +echo "`date` - tarring up final output into all.tar"
12.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
12.250 +
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13.2 +++ b/all/run_2-model_37cn_cont_42cn.csh Thu Mar 26 14:02:21 2009 -0400
13.3 @@ -0,0 +1,247 @@
13.4 +#!/bin/csh -f
13.5 +#-------------------------------------------------------------------
13.6 +# note: user modifies ONLY the "user modification" section
13.7 +#
13.8 +# COMPARE: model1 vs model2
13.9 +# MODELn : model name
13.10 +# DIR_M : directory of model data
13.11 +# DIR_O : directory of observed data
13.12 +# DIR_S : directory of model surface data
13.13 +# DIR_SCRIPTS : directory of run scripts
13.14 +# FILE1 : time_mean climatology from CLM diagnostic package
13.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
13.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
13.17 +# leave it blank, if no ATM file:
13.18 +# set FILE3 =
13.19 +# FILE7 : timeseries file generated from ....
13.20 +# FILE8 : timeseries file generated from ....
13.21 +# GRID : T31, T42, or 1.9
13.22 +# BGC : cn or casa
13.23 +# ENERGY : new or old (fields in model data)
13.24 +#-------------------------------------------------------------------
13.25 +
13.26 +#*******************************************************
13.27 +# user modification-(1)
13.28 +
13.29 +# directory name of model comparison
13.30 +#et COMPARE = b30.061n_vs_b30.061m
13.31 +set COMPARE = i01.37cn_cont_vs_i01.42cn
13.32 +
13.33 +#*******************************************************
13.34 +# user modification-(2)
13.35 +
13.36 +# model1
13.37 +set MODEL1 = i01.37cn_cont
13.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases/i01.37cn_cont_out/
13.39 +set FILE1 = i01.37cn_cont_out_ANN_climo.nc
13.40 +set FILE2 = i01.37cn_cont_out_MONS_climo.nc
13.41 +set FILE3 =
13.42 +set FILE4 = $FILE1
13.43 +set FILE5 = $FILE1
13.44 +set FILE6 = $FILE1
13.45 +set FILE7 = i01.37cn_cont_Fire_C_2976-3000_monthly.nc
13.46 +set FILE8 = i01.37cn_cont_ameriflux_2976-3000_monthly.nc
13.47 +set FILE9 = $FILE1
13.48 +set FILE10 = $FILE2
13.49 +set GRID = 1.9
13.50 +set BGC = cn
13.51 +set ENERGY = old
13.52 +
13.53 +# in the "CLAMP metric processing" section:
13.54 +# only 00.initial.ncl and 99.final.ncl are required,
13.55 +# user can comment out any one or more of the other ncl scripts,
13.56 +# e.g.
13.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
13.58 +
13.59 +# model surface data
13.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
13.61 +
13.62 +# observed data
13.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
13.64 +
13.65 +# directory for scripts, templates and ncl files
13.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
13.67 +
13.68 +#********************************************************
13.69 +
13.70 +# create model1 and model1_vs_model2 directory by copying templates
13.71 +if ($FILE3 != "") then
13.72 + set TEMPLATE1 = template_1-model
13.73 + set TEMPLATE2 = template_2-model
13.74 +else
13.75 + set TEMPLATE1 = template_1-model_noCO2
13.76 + set TEMPLATE2 = template_2-model_noCO2
13.77 +endif
13.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
13.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
13.80 +rm -rf $MODEL1
13.81 +rm -rf $COMPARE
13.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
13.83 +mv $TEMPLATE1 $MODEL1
13.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
13.85 +mv $TEMPLATE2 $COMPARE
13.86 +
13.87 +# add quote, to be usesd in INPUT_TEXT
13.88 +set MODELQ = \"$MODEL1\"
13.89 +set DIRMQ = \"$DIR_M\"
13.90 +set F1 = \"$FILE1\"
13.91 +set F2 = \"$FILE2\"
13.92 +set F3 = \"$FILE3\"
13.93 +set F4 = \"$FILE4\"
13.94 +set F5 = \"$FILE5\"
13.95 +set F6 = \"$FILE6\"
13.96 +set F7 = \"$FILE7\"
13.97 +set F8 = \"$FILE8\"
13.98 +set F9 = \"$FILE9\"
13.99 +set F10 = \"$FILE10\"
13.100 +set GRIDQ = \"$GRID\"
13.101 +set BGCQ = \"$BGC\"
13.102 +set ENERGYQ = \"$ENERGY\"
13.103 +set DIRSQ = \"$DIR_S\"
13.104 +set DIROQ = \"$DIR_O\"
13.105 +set DIRCQ = \"$DIR_SCRIPTS\"
13.106 +
13.107 +set COMPAREQ = \"$COMPARE\"
13.108 +set MODELN = \"model1\"
13.109 +
13.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
13.111 +
13.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
13.113 +# CLAMP metric processing of model1
13.114 +echo "`date` - Running 00.initial.ncl"
13.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
13.116 +echo "`date` - Running 01.npp.ncl"
13.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
13.118 +echo "`date` - Running 01.lai.ncl"
13.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
13.120 +
13.121 +if ($FILE3 != "") then
13.122 +echo "`date` - Running 03.co2.ncl"
13.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
13.124 +endif
13.125 +
13.126 +echo "`date` - Running 04.biomass.ncl"
13.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
13.128 +echo "`date` - Running 06.fluxnet.ncl"
13.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
13.130 +echo "`date` - Running 07.beta.ncl"
13.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
13.132 +echo "`date` - Running 08.turnover.ncl"
13.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
13.134 +
13.135 +if ($BGC != "casa") then
13.136 +echo "`date` - Running 09.carbon_sink.ncl"
13.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
13.138 +else
13.139 +echo "`date` - Running 09x.carbon_sink.ncl"
13.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
13.141 +endif
13.142 +
13.143 +if ($BGC != "casa") then
13.144 +echo "`date` - Running 10.fire.ncl"
13.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
13.146 +endif
13.147 +
13.148 +echo "`date` - Running 11.ameriflux.ncl"
13.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
13.150 +echo "`date` - Running 99.final.ncl"
13.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
13.152 +
13.153 +#*******************************************************
13.154 +# user modification-(3)
13.155 +
13.156 +# model2
13.157 +set MODEL2 = i01.42cn
13.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases/i01.42cn_out/
13.159 +set FILE1 = i01.42cn_out_ANN_climo.nc
13.160 +set FILE2 = i01.42cn_out_MONS_climo.nc
13.161 +set FILE3 =
13.162 +set FILE4 = $FILE1
13.163 +set FILE5 = $FILE1
13.164 +set FILE6 = $FILE1
13.165 +set FILE7 = i01.42cn_Fire_C_2976-3000_monthly.nc
13.166 +set FILE8 = i01.42cn_ameriflux_2976-3000_monthly.nc
13.167 +set FILE9 = $FILE1
13.168 +set FILE10 = $FILE2
13.169 +set GRID = 1.9
13.170 +set BGC = cn
13.171 +set ENERGY = old
13.172 +#*******************************************************
13.173 +# create model2 directory by copying templates
13.174 +if ($FILE3 != "") then
13.175 + set TEMPLATE1 = template_1-model
13.176 +else
13.177 + set TEMPLATE1 = template_1-model_noCO2
13.178 +endif
13.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
13.180 +rm -rf $MODEL2
13.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
13.182 +mv $TEMPLATE1 $MODEL2
13.183 +
13.184 +# add quote, to be usesd in INPUT_TEXT
13.185 +set MODELQ = \"$MODEL2\"
13.186 +set DIRMQ = \"$DIR_M\"
13.187 +set F1 = \"$FILE1\"
13.188 +set F2 = \"$FILE2\"
13.189 +set F3 = \"$FILE3\"
13.190 +set F4 = \"$FILE4\"
13.191 +set F5 = \"$FILE5\"
13.192 +set F6 = \"$FILE6\"
13.193 +set F7 = \"$FILE7\"
13.194 +set F8 = \"$FILE8\"
13.195 +set F9 = \"$FILE9\"
13.196 +set F10 = \"$FILE10\"
13.197 +set GRIDQ = \"$GRID\"
13.198 +set BGCQ = \"$BGC\"
13.199 +set ENERGYQ = \"$ENERGY\"
13.200 +
13.201 +set COMPAREQ = \"$COMPARE\"
13.202 +set MODELN = \"model2\"
13.203 +
13.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
13.205 +
13.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
13.207 +# CLAMP metric processing of model2
13.208 +echo "`date` - Running 00.inital.ncl"
13.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
13.210 +echo "`date` - Running 01.npp.ncl"
13.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
13.212 +echo "`date` - Running 02.lai.ncl"
13.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
13.214 +
13.215 +if ($FILE3 != "") then
13.216 +echo "`date` - Running 03.co2.ncl"
13.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
13.218 +endif
13.219 +
13.220 +echo "`date` - Running 04.biomass.ncl"
13.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
13.222 +echo "`date` - Running 06.fluxnet.ncl"
13.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
13.224 +echo "`date` - Running 07.beta.ncl"
13.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
13.226 +echo "`date` - Running 08.turnover.ncl"
13.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
13.228 +
13.229 +if ($BGC != "casa") then
13.230 +echo "`date` - Running 09.carbon_sink.ncl"
13.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
13.232 +else
13.233 +echo "`date` - Running 09x.carbon_sink.ncl"
13.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
13.235 +endif
13.236 +
13.237 +if ($BGC != "casa") then
13.238 +echo "`date` - Running 10.fire.ncl"
13.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
13.240 +endif
13.241 +
13.242 +echo "`date` - Running 11.ameriflux.ncl"
13.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
13.244 +echo "`date` - Running 99.final.ncl"
13.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
13.246 +
13.247 +# create a tar file from the final output
13.248 +echo "`date` - tarring up final output into all.tar"
13.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
13.250 +
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
14.2 +++ b/all/run_2-model_37cn_cont_43cn.csh Thu Mar 26 14:02:21 2009 -0400
14.3 @@ -0,0 +1,247 @@
14.4 +#!/bin/csh -f
14.5 +#-------------------------------------------------------------------
14.6 +# note: user modifies ONLY the "user modification" section
14.7 +#
14.8 +# COMPARE: model1 vs model2
14.9 +# MODELn : model name
14.10 +# DIR_M : directory of model data
14.11 +# DIR_O : directory of observed data
14.12 +# DIR_S : directory of model surface data
14.13 +# DIR_SCRIPTS : directory of run scripts
14.14 +# FILE1 : time_mean climatology from CLM diagnostic package
14.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
14.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
14.17 +# leave it blank, if no ATM file:
14.18 +# set FILE3 =
14.19 +# FILE7 : timeseries file generated from ....
14.20 +# FILE8 : timeseries file generated from ....
14.21 +# GRID : T31, T42, or 1.9
14.22 +# BGC : cn or casa
14.23 +# ENERGY : new or old (fields in model data)
14.24 +#-------------------------------------------------------------------
14.25 +
14.26 +#*******************************************************
14.27 +# user modification-(1)
14.28 +
14.29 +# directory name of model comparison
14.30 +#et COMPARE = b30.061n_vs_b30.061m
14.31 +set COMPARE = i01.37cn_cont_vs_i01.43cn
14.32 +
14.33 +#*******************************************************
14.34 +# user modification-(2)
14.35 +
14.36 +# model1
14.37 +set MODEL1 = i01.37cn_cont
14.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases/i01.37cn_cont_out/
14.39 +set FILE1 = i01.37cn_cont_out_ANN_climo.nc
14.40 +set FILE2 = i01.37cn_cont_out_MONS_climo.nc
14.41 +set FILE3 =
14.42 +set FILE4 = $FILE1
14.43 +set FILE5 = $FILE1
14.44 +set FILE6 = $FILE1
14.45 +set FILE7 = i01.37cn_cont_Fire_C_2976-3000_monthly.nc
14.46 +set FILE8 = i01.37cn_cont_ameriflux_2976-3000_monthly.nc
14.47 +set FILE9 = $FILE1
14.48 +set FILE10 = $FILE2
14.49 +set GRID = 1.9
14.50 +set BGC = cn
14.51 +set ENERGY = old
14.52 +
14.53 +# in the "CLAMP metric processing" section:
14.54 +# only 00.initial.ncl and 99.final.ncl are required,
14.55 +# user can comment out any one or more of the other ncl scripts,
14.56 +# e.g.
14.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
14.58 +
14.59 +# model surface data
14.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
14.61 +
14.62 +# observed data
14.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
14.64 +
14.65 +# directory for scripts, templates and ncl files
14.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
14.67 +
14.68 +#********************************************************
14.69 +
14.70 +# create model1 and model1_vs_model2 directory by copying templates
14.71 +if ($FILE3 != "") then
14.72 + set TEMPLATE1 = template_1-model
14.73 + set TEMPLATE2 = template_2-model
14.74 +else
14.75 + set TEMPLATE1 = template_1-model_noCO2
14.76 + set TEMPLATE2 = template_2-model_noCO2
14.77 +endif
14.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
14.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
14.80 +rm -rf $MODEL1
14.81 +rm -rf $COMPARE
14.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
14.83 +mv $TEMPLATE1 $MODEL1
14.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
14.85 +mv $TEMPLATE2 $COMPARE
14.86 +
14.87 +# add quote, to be usesd in INPUT_TEXT
14.88 +set MODELQ = \"$MODEL1\"
14.89 +set DIRMQ = \"$DIR_M\"
14.90 +set F1 = \"$FILE1\"
14.91 +set F2 = \"$FILE2\"
14.92 +set F3 = \"$FILE3\"
14.93 +set F4 = \"$FILE4\"
14.94 +set F5 = \"$FILE5\"
14.95 +set F6 = \"$FILE6\"
14.96 +set F7 = \"$FILE7\"
14.97 +set F8 = \"$FILE8\"
14.98 +set F9 = \"$FILE9\"
14.99 +set F10 = \"$FILE10\"
14.100 +set GRIDQ = \"$GRID\"
14.101 +set BGCQ = \"$BGC\"
14.102 +set ENERGYQ = \"$ENERGY\"
14.103 +set DIRSQ = \"$DIR_S\"
14.104 +set DIROQ = \"$DIR_O\"
14.105 +set DIRCQ = \"$DIR_SCRIPTS\"
14.106 +
14.107 +set COMPAREQ = \"$COMPARE\"
14.108 +set MODELN = \"model1\"
14.109 +
14.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
14.111 +
14.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
14.113 +# CLAMP metric processing of model1
14.114 +echo "`date` - Running 00.initial.ncl"
14.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
14.116 +echo "`date` - Running 01.npp.ncl"
14.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
14.118 +echo "`date` - Running 01.lai.ncl"
14.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
14.120 +
14.121 +if ($FILE3 != "") then
14.122 +echo "`date` - Running 03.co2.ncl"
14.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
14.124 +endif
14.125 +
14.126 +echo "`date` - Running 04.biomass.ncl"
14.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
14.128 +echo "`date` - Running 06.fluxnet.ncl"
14.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
14.130 +echo "`date` - Running 07.beta.ncl"
14.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
14.132 +echo "`date` - Running 08.turnover.ncl"
14.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
14.134 +
14.135 +if ($BGC != "casa") then
14.136 +echo "`date` - Running 09.carbon_sink.ncl"
14.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
14.138 +else
14.139 +echo "`date` - Running 09x.carbon_sink.ncl"
14.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
14.141 +endif
14.142 +
14.143 +if ($BGC != "casa") then
14.144 +echo "`date` - Running 10.fire.ncl"
14.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
14.146 +endif
14.147 +
14.148 +echo "`date` - Running 11.ameriflux.ncl"
14.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
14.150 +echo "`date` - Running 99.final.ncl"
14.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
14.152 +
14.153 +#*******************************************************
14.154 +# user modification-(3)
14.155 +
14.156 +# model2
14.157 +set MODEL2 = i01.43cn
14.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.43cn_out/
14.159 +set FILE1 = i01.43cn_out_ANN_climo.nc
14.160 +set FILE2 = i01.43cn_out_MONS_climo.nc
14.161 +set FILE3 =
14.162 +set FILE4 = $FILE1
14.163 +set FILE5 = $FILE1
14.164 +set FILE6 = $FILE1
14.165 +set FILE7 = i01.43cn_Fire_C_2876-2900_monthly.nc
14.166 +set FILE8 = i01.43cn_ameriflux_2876-2900_monthly.nc
14.167 +set FILE9 = $FILE1
14.168 +set FILE10 = $FILE2
14.169 +set GRID = 1.9
14.170 +set BGC = cn
14.171 +set ENERGY = old
14.172 +#*******************************************************
14.173 +# create model2 directory by copying templates
14.174 +if ($FILE3 != "") then
14.175 + set TEMPLATE1 = template_1-model
14.176 +else
14.177 + set TEMPLATE1 = template_1-model_noCO2
14.178 +endif
14.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
14.180 +rm -rf $MODEL2
14.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
14.182 +mv $TEMPLATE1 $MODEL2
14.183 +
14.184 +# add quote, to be usesd in INPUT_TEXT
14.185 +set MODELQ = \"$MODEL2\"
14.186 +set DIRMQ = \"$DIR_M\"
14.187 +set F1 = \"$FILE1\"
14.188 +set F2 = \"$FILE2\"
14.189 +set F3 = \"$FILE3\"
14.190 +set F4 = \"$FILE4\"
14.191 +set F5 = \"$FILE5\"
14.192 +set F6 = \"$FILE6\"
14.193 +set F7 = \"$FILE7\"
14.194 +set F8 = \"$FILE8\"
14.195 +set F9 = \"$FILE9\"
14.196 +set F10 = \"$FILE10\"
14.197 +set GRIDQ = \"$GRID\"
14.198 +set BGCQ = \"$BGC\"
14.199 +set ENERGYQ = \"$ENERGY\"
14.200 +
14.201 +set COMPAREQ = \"$COMPARE\"
14.202 +set MODELN = \"model2\"
14.203 +
14.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
14.205 +
14.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
14.207 +# CLAMP metric processing of model2
14.208 +echo "`date` - Running 00.inital.ncl"
14.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
14.210 +echo "`date` - Running 01.npp.ncl"
14.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
14.212 +echo "`date` - Running 02.lai.ncl"
14.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
14.214 +
14.215 +if ($FILE3 != "") then
14.216 +echo "`date` - Running 03.co2.ncl"
14.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
14.218 +endif
14.219 +
14.220 +echo "`date` - Running 04.biomass.ncl"
14.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
14.222 +echo "`date` - Running 06.fluxnet.ncl"
14.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
14.224 +echo "`date` - Running 07.beta.ncl"
14.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
14.226 +echo "`date` - Running 08.turnover.ncl"
14.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
14.228 +
14.229 +if ($BGC != "casa") then
14.230 +echo "`date` - Running 09.carbon_sink.ncl"
14.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
14.232 +else
14.233 +echo "`date` - Running 09x.carbon_sink.ncl"
14.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
14.235 +endif
14.236 +
14.237 +if ($BGC != "casa") then
14.238 +echo "`date` - Running 10.fire.ncl"
14.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
14.240 +endif
14.241 +
14.242 +echo "`date` - Running 11.ameriflux.ncl"
14.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
14.244 +echo "`date` - Running 99.final.ncl"
14.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
14.246 +
14.247 +# create a tar file from the final output
14.248 +echo "`date` - tarring up final output into all.tar"
14.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
14.250 +
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15.2 +++ b/all/run_2-model_38cn_39cn.csh Thu Mar 26 14:02:21 2009 -0400
15.3 @@ -0,0 +1,247 @@
15.4 +#!/bin/csh -f
15.5 +#-------------------------------------------------------------------
15.6 +# note: user modifies ONLY the "user modification" section
15.7 +#
15.8 +# COMPARE: model1 vs model2
15.9 +# MODELn : model name
15.10 +# DIR_M : directory of model data
15.11 +# DIR_O : directory of observed data
15.12 +# DIR_S : directory of model surface data
15.13 +# DIR_SCRIPTS : directory of run scripts
15.14 +# FILE1 : time_mean climatology from CLM diagnostic package
15.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
15.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
15.17 +# leave it blank, if no ATM file:
15.18 +# set FILE3 =
15.19 +# FILE7 : timeseries file generated from ....
15.20 +# FILE8 : timeseries file generated from ....
15.21 +# GRID : T31, T42, or 1.9
15.22 +# BGC : cn or casa
15.23 +# ENERGY : new or old (fields in model data)
15.24 +#-------------------------------------------------------------------
15.25 +
15.26 +#*******************************************************
15.27 +# user modification-(1)
15.28 +
15.29 +# directory name of model comparison
15.30 +#et COMPARE = b30.061n_vs_b30.061m
15.31 +set COMPARE = i01.38cn_vs_i01.39cn
15.32 +
15.33 +#*******************************************************
15.34 +# user modification-(2)
15.35 +
15.36 +# model1
15.37 +set MODEL1 = i01.38cn
15.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.38cn_out/
15.39 +set FILE1 = i01.38cn_out_ANN_climo.nc
15.40 +set FILE2 = i01.38cn_out_MONS_climo.nc
15.41 +set FILE3 =
15.42 +set FILE4 = $FILE1
15.43 +set FILE5 = $FILE1
15.44 +set FILE6 = $FILE1
15.45 +set FILE7 = i01.38cn_Fire_C_2151-2175_monthly.nc
15.46 +set FILE8 = i01.38cn_ameriflux_2151-2175_monthly.nc
15.47 +set FILE9 = $FILE1
15.48 +set FILE10 = $FILE2
15.49 +set GRID = 1.9
15.50 +set BGC = cn
15.51 +set ENERGY = old
15.52 +
15.53 +# in the "CLAMP metric processing" section:
15.54 +# only 00.initial.ncl and 99.final.ncl are required,
15.55 +# user can comment out any one or more of the other ncl scripts,
15.56 +# e.g.
15.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
15.58 +
15.59 +# model surface data
15.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
15.61 +
15.62 +# observed data
15.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
15.64 +
15.65 +# directory for scripts, templates and ncl files
15.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
15.67 +
15.68 +#********************************************************
15.69 +
15.70 +# create model1 and model1_vs_model2 directory by copying templates
15.71 +if ($FILE3 != "") then
15.72 + set TEMPLATE1 = template_1-model
15.73 + set TEMPLATE2 = template_2-model
15.74 +else
15.75 + set TEMPLATE1 = template_1-model_noCO2
15.76 + set TEMPLATE2 = template_2-model_noCO2
15.77 +endif
15.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
15.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
15.80 +rm -rf $MODEL1
15.81 +rm -rf $COMPARE
15.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
15.83 +mv $TEMPLATE1 $MODEL1
15.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
15.85 +mv $TEMPLATE2 $COMPARE
15.86 +
15.87 +# add quote, to be usesd in INPUT_TEXT
15.88 +set MODELQ = \"$MODEL1\"
15.89 +set DIRMQ = \"$DIR_M\"
15.90 +set F1 = \"$FILE1\"
15.91 +set F2 = \"$FILE2\"
15.92 +set F3 = \"$FILE3\"
15.93 +set F4 = \"$FILE4\"
15.94 +set F5 = \"$FILE5\"
15.95 +set F6 = \"$FILE6\"
15.96 +set F7 = \"$FILE7\"
15.97 +set F8 = \"$FILE8\"
15.98 +set F9 = \"$FILE9\"
15.99 +set F10 = \"$FILE10\"
15.100 +set GRIDQ = \"$GRID\"
15.101 +set BGCQ = \"$BGC\"
15.102 +set ENERGYQ = \"$ENERGY\"
15.103 +set DIRSQ = \"$DIR_S\"
15.104 +set DIROQ = \"$DIR_O\"
15.105 +set DIRCQ = \"$DIR_SCRIPTS\"
15.106 +
15.107 +set COMPAREQ = \"$COMPARE\"
15.108 +set MODELN = \"model1\"
15.109 +
15.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
15.111 +
15.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
15.113 +# CLAMP metric processing of model1
15.114 +echo "`date` - Running 00.initial.ncl"
15.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
15.116 +echo "`date` - Running 01.npp.ncl"
15.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
15.118 +echo "`date` - Running 01.lai.ncl"
15.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
15.120 +
15.121 +if ($FILE3 != "") then
15.122 +echo "`date` - Running 03.co2.ncl"
15.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
15.124 +endif
15.125 +
15.126 +echo "`date` - Running 04.biomass.ncl"
15.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
15.128 +echo "`date` - Running 06.fluxnet.ncl"
15.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
15.130 +echo "`date` - Running 07.beta.ncl"
15.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
15.132 +echo "`date` - Running 08.turnover.ncl"
15.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
15.134 +
15.135 +if ($BGC != "casa") then
15.136 +echo "`date` - Running 09.carbon_sink.ncl"
15.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
15.138 +else
15.139 +echo "`date` - Running 09x.carbon_sink.ncl"
15.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
15.141 +endif
15.142 +
15.143 +if ($BGC != "casa") then
15.144 +echo "`date` - Running 10.fire.ncl"
15.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
15.146 +endif
15.147 +
15.148 +echo "`date` - Running 11.ameriflux.ncl"
15.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
15.150 +echo "`date` - Running 99.final.ncl"
15.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
15.152 +
15.153 +#*******************************************************
15.154 +# user modification-(3)
15.155 +
15.156 +# model2
15.157 +set MODEL2 = i01.39cn
15.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.39cn_out/
15.159 +set FILE1 = i01.39cn_out_ANN_climo.nc
15.160 +set FILE2 = i01.39cn_out_MONS_climo.nc
15.161 +set FILE3 =
15.162 +set FILE4 = $FILE1
15.163 +set FILE5 = $FILE1
15.164 +set FILE6 = $FILE1
15.165 +set FILE7 = i01.39cn_Fire_C_2101-2125_monthly.nc
15.166 +set FILE8 = i01.39cn_ameriflux_2101-2125_monthly.nc
15.167 +set FILE9 = $FILE1
15.168 +set FILE10 = $FILE2
15.169 +set GRID = 1.9
15.170 +set BGC = cn
15.171 +set ENERGY = old
15.172 +#*******************************************************
15.173 +# create model2 directory by copying templates
15.174 +if ($FILE3 != "") then
15.175 + set TEMPLATE1 = template_1-model
15.176 +else
15.177 + set TEMPLATE1 = template_1-model_noCO2
15.178 +endif
15.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
15.180 +rm -rf $MODEL2
15.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
15.182 +mv $TEMPLATE1 $MODEL2
15.183 +
15.184 +# add quote, to be usesd in INPUT_TEXT
15.185 +set MODELQ = \"$MODEL2\"
15.186 +set DIRMQ = \"$DIR_M\"
15.187 +set F1 = \"$FILE1\"
15.188 +set F2 = \"$FILE2\"
15.189 +set F3 = \"$FILE3\"
15.190 +set F4 = \"$FILE4\"
15.191 +set F5 = \"$FILE5\"
15.192 +set F6 = \"$FILE6\"
15.193 +set F7 = \"$FILE7\"
15.194 +set F8 = \"$FILE8\"
15.195 +set F9 = \"$FILE9\"
15.196 +set F10 = \"$FILE10\"
15.197 +set GRIDQ = \"$GRID\"
15.198 +set BGCQ = \"$BGC\"
15.199 +set ENERGYQ = \"$ENERGY\"
15.200 +
15.201 +set COMPAREQ = \"$COMPARE\"
15.202 +set MODELN = \"model2\"
15.203 +
15.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
15.205 +
15.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
15.207 +# CLAMP metric processing of model2
15.208 +echo "`date` - Running 00.inital.ncl"
15.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
15.210 +echo "`date` - Running 01.npp.ncl"
15.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
15.212 +echo "`date` - Running 02.lai.ncl"
15.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
15.214 +
15.215 +if ($FILE3 != "") then
15.216 +echo "`date` - Running 03.co2.ncl"
15.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
15.218 +endif
15.219 +
15.220 +echo "`date` - Running 04.biomass.ncl"
15.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
15.222 +echo "`date` - Running 06.fluxnet.ncl"
15.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
15.224 +echo "`date` - Running 07.beta.ncl"
15.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
15.226 +echo "`date` - Running 08.turnover.ncl"
15.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
15.228 +
15.229 +if ($BGC != "casa") then
15.230 +echo "`date` - Running 09.carbon_sink.ncl"
15.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
15.232 +else
15.233 +echo "`date` - Running 09x.carbon_sink.ncl"
15.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
15.235 +endif
15.236 +
15.237 +if ($BGC != "casa") then
15.238 +echo "`date` - Running 10.fire.ncl"
15.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
15.240 +endif
15.241 +
15.242 +echo "`date` - Running 11.ameriflux.ncl"
15.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
15.244 +echo "`date` - Running 99.final.ncl"
15.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
15.246 +
15.247 +# create a tar file from the final output
15.248 +echo "`date` - tarring up final output into all.tar"
15.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
15.250 +
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
16.2 +++ b/all/run_2-model_38cn_41cn.csh Thu Mar 26 14:02:21 2009 -0400
16.3 @@ -0,0 +1,247 @@
16.4 +#!/bin/csh -f
16.5 +#-------------------------------------------------------------------
16.6 +# note: user modifies ONLY the "user modification" section
16.7 +#
16.8 +# COMPARE: model1 vs model2
16.9 +# MODELn : model name
16.10 +# DIR_M : directory of model data
16.11 +# DIR_O : directory of observed data
16.12 +# DIR_S : directory of model surface data
16.13 +# DIR_SCRIPTS : directory of run scripts
16.14 +# FILE1 : time_mean climatology from CLM diagnostic package
16.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
16.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
16.17 +# leave it blank, if no ATM file:
16.18 +# set FILE3 =
16.19 +# FILE7 : timeseries file generated from ....
16.20 +# FILE8 : timeseries file generated from ....
16.21 +# GRID : T31, T42, or 1.9
16.22 +# BGC : cn or casa
16.23 +# ENERGY : new or old (fields in model data)
16.24 +#-------------------------------------------------------------------
16.25 +
16.26 +#*******************************************************
16.27 +# user modification-(1)
16.28 +
16.29 +# directory name of model comparison
16.30 +#et COMPARE = b30.061n_vs_b30.061m
16.31 +set COMPARE = i01.38cn_vs_i01.41cn
16.32 +
16.33 +#*******************************************************
16.34 +# user modification-(2)
16.35 +
16.36 +# model1
16.37 +set MODEL1 = i01.38cn
16.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.38cn_out/
16.39 +set FILE1 = i01.38cn_out_ANN_climo.nc
16.40 +set FILE2 = i01.38cn_out_MONS_climo.nc
16.41 +set FILE3 =
16.42 +set FILE4 = $FILE1
16.43 +set FILE5 = $FILE1
16.44 +set FILE6 = $FILE1
16.45 +set FILE7 = i01.38cn_Fire_C_2151-2175_monthly.nc
16.46 +set FILE8 = i01.38cn_ameriflux_2151-2175_monthly.nc
16.47 +set FILE9 = $FILE1
16.48 +set FILE10 = $FILE2
16.49 +set GRID = 1.9
16.50 +set BGC = cn
16.51 +set ENERGY = old
16.52 +
16.53 +# in the "CLAMP metric processing" section:
16.54 +# only 00.initial.ncl and 99.final.ncl are required,
16.55 +# user can comment out any one or more of the other ncl scripts,
16.56 +# e.g.
16.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
16.58 +
16.59 +# model surface data
16.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
16.61 +
16.62 +# observed data
16.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
16.64 +
16.65 +# directory for scripts, templates and ncl files
16.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
16.67 +
16.68 +#********************************************************
16.69 +
16.70 +# create model1 and model1_vs_model2 directory by copying templates
16.71 +if ($FILE3 != "") then
16.72 + set TEMPLATE1 = template_1-model
16.73 + set TEMPLATE2 = template_2-model
16.74 +else
16.75 + set TEMPLATE1 = template_1-model_noCO2
16.76 + set TEMPLATE2 = template_2-model_noCO2
16.77 +endif
16.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
16.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
16.80 +rm -rf $MODEL1
16.81 +rm -rf $COMPARE
16.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
16.83 +mv $TEMPLATE1 $MODEL1
16.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
16.85 +mv $TEMPLATE2 $COMPARE
16.86 +
16.87 +# add quote, to be usesd in INPUT_TEXT
16.88 +set MODELQ = \"$MODEL1\"
16.89 +set DIRMQ = \"$DIR_M\"
16.90 +set F1 = \"$FILE1\"
16.91 +set F2 = \"$FILE2\"
16.92 +set F3 = \"$FILE3\"
16.93 +set F4 = \"$FILE4\"
16.94 +set F5 = \"$FILE5\"
16.95 +set F6 = \"$FILE6\"
16.96 +set F7 = \"$FILE7\"
16.97 +set F8 = \"$FILE8\"
16.98 +set F9 = \"$FILE9\"
16.99 +set F10 = \"$FILE10\"
16.100 +set GRIDQ = \"$GRID\"
16.101 +set BGCQ = \"$BGC\"
16.102 +set ENERGYQ = \"$ENERGY\"
16.103 +set DIRSQ = \"$DIR_S\"
16.104 +set DIROQ = \"$DIR_O\"
16.105 +set DIRCQ = \"$DIR_SCRIPTS\"
16.106 +
16.107 +set COMPAREQ = \"$COMPARE\"
16.108 +set MODELN = \"model1\"
16.109 +
16.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
16.111 +
16.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
16.113 +# CLAMP metric processing of model1
16.114 +echo "`date` - Running 00.initial.ncl"
16.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
16.116 +echo "`date` - Running 01.npp.ncl"
16.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
16.118 +echo "`date` - Running 01.lai.ncl"
16.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
16.120 +
16.121 +if ($FILE3 != "") then
16.122 +echo "`date` - Running 03.co2.ncl"
16.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
16.124 +endif
16.125 +
16.126 +echo "`date` - Running 04.biomass.ncl"
16.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
16.128 +echo "`date` - Running 06.fluxnet.ncl"
16.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
16.130 +echo "`date` - Running 07.beta.ncl"
16.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
16.132 +echo "`date` - Running 08.turnover.ncl"
16.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
16.134 +
16.135 +if ($BGC != "casa") then
16.136 +echo "`date` - Running 09.carbon_sink.ncl"
16.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
16.138 +else
16.139 +echo "`date` - Running 09x.carbon_sink.ncl"
16.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
16.141 +endif
16.142 +
16.143 +if ($BGC != "casa") then
16.144 +echo "`date` - Running 10.fire.ncl"
16.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
16.146 +endif
16.147 +
16.148 +echo "`date` - Running 11.ameriflux.ncl"
16.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
16.150 +echo "`date` - Running 99.final.ncl"
16.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
16.152 +
16.153 +#*******************************************************
16.154 +# user modification-(3)
16.155 +
16.156 +# model2
16.157 +set MODEL2 = i01.41cn
16.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.41cn_out/
16.159 +set FILE1 = i01.41cn_out_ANN_climo.nc
16.160 +set FILE2 = i01.41cn_out_MONS_climo.nc
16.161 +set FILE3 =
16.162 +set FILE4 = $FILE1
16.163 +set FILE5 = $FILE1
16.164 +set FILE6 = $FILE1
16.165 +set FILE7 = i01.41cn_Fire_C_2076-2100_monthly.nc
16.166 +set FILE8 = i01.41cn_ameriflux_2076-2100_monthly.nc
16.167 +set FILE9 = $FILE1
16.168 +set FILE10 = $FILE2
16.169 +set GRID = 1.9
16.170 +set BGC = cn
16.171 +set ENERGY = old
16.172 +#*******************************************************
16.173 +# create model2 directory by copying templates
16.174 +if ($FILE3 != "") then
16.175 + set TEMPLATE1 = template_1-model
16.176 +else
16.177 + set TEMPLATE1 = template_1-model_noCO2
16.178 +endif
16.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
16.180 +rm -rf $MODEL2
16.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
16.182 +mv $TEMPLATE1 $MODEL2
16.183 +
16.184 +# add quote, to be usesd in INPUT_TEXT
16.185 +set MODELQ = \"$MODEL2\"
16.186 +set DIRMQ = \"$DIR_M\"
16.187 +set F1 = \"$FILE1\"
16.188 +set F2 = \"$FILE2\"
16.189 +set F3 = \"$FILE3\"
16.190 +set F4 = \"$FILE4\"
16.191 +set F5 = \"$FILE5\"
16.192 +set F6 = \"$FILE6\"
16.193 +set F7 = \"$FILE7\"
16.194 +set F8 = \"$FILE8\"
16.195 +set F9 = \"$FILE9\"
16.196 +set F10 = \"$FILE10\"
16.197 +set GRIDQ = \"$GRID\"
16.198 +set BGCQ = \"$BGC\"
16.199 +set ENERGYQ = \"$ENERGY\"
16.200 +
16.201 +set COMPAREQ = \"$COMPARE\"
16.202 +set MODELN = \"model2\"
16.203 +
16.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
16.205 +
16.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
16.207 +# CLAMP metric processing of model2
16.208 +echo "`date` - Running 00.inital.ncl"
16.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
16.210 +echo "`date` - Running 01.npp.ncl"
16.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
16.212 +echo "`date` - Running 02.lai.ncl"
16.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
16.214 +
16.215 +if ($FILE3 != "") then
16.216 +echo "`date` - Running 03.co2.ncl"
16.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
16.218 +endif
16.219 +
16.220 +echo "`date` - Running 04.biomass.ncl"
16.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
16.222 +echo "`date` - Running 06.fluxnet.ncl"
16.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
16.224 +echo "`date` - Running 07.beta.ncl"
16.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
16.226 +echo "`date` - Running 08.turnover.ncl"
16.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
16.228 +
16.229 +if ($BGC != "casa") then
16.230 +echo "`date` - Running 09.carbon_sink.ncl"
16.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
16.232 +else
16.233 +echo "`date` - Running 09x.carbon_sink.ncl"
16.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
16.235 +endif
16.236 +
16.237 +if ($BGC != "casa") then
16.238 +echo "`date` - Running 10.fire.ncl"
16.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
16.240 +endif
16.241 +
16.242 +echo "`date` - Running 11.ameriflux.ncl"
16.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
16.244 +echo "`date` - Running 99.final.ncl"
16.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
16.246 +
16.247 +# create a tar file from the final output
16.248 +echo "`date` - tarring up final output into all.tar"
16.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
16.250 +
17.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
17.2 +++ b/all/run_2-model_39cn_40cn.csh Thu Mar 26 14:02:21 2009 -0400
17.3 @@ -0,0 +1,247 @@
17.4 +#!/bin/csh -f
17.5 +#-------------------------------------------------------------------
17.6 +# note: user modifies ONLY the "user modification" section
17.7 +#
17.8 +# COMPARE: model1 vs model2
17.9 +# MODELn : model name
17.10 +# DIR_M : directory of model data
17.11 +# DIR_O : directory of observed data
17.12 +# DIR_S : directory of model surface data
17.13 +# DIR_SCRIPTS : directory of run scripts
17.14 +# FILE1 : time_mean climatology from CLM diagnostic package
17.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
17.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
17.17 +# leave it blank, if no ATM file:
17.18 +# set FILE3 =
17.19 +# FILE7 : timeseries file generated from ....
17.20 +# FILE8 : timeseries file generated from ....
17.21 +# GRID : T31, T42, or 1.9
17.22 +# BGC : cn or casa
17.23 +# ENERGY : new or old (fields in model data)
17.24 +#-------------------------------------------------------------------
17.25 +
17.26 +#*******************************************************
17.27 +# user modification-(1)
17.28 +
17.29 +# directory name of model comparison
17.30 +#et COMPARE = b30.061n_vs_b30.061m
17.31 +set COMPARE = i01.39cn_vs_i01.40cn
17.32 +
17.33 +#*******************************************************
17.34 +# user modification-(2)
17.35 +
17.36 +# model1
17.37 +set MODEL1 = i01.39cn
17.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.39cn_out/
17.39 +set FILE1 = i01.39cn_out_ANN_climo.nc
17.40 +set FILE2 = i01.39cn_out_MONS_climo.nc
17.41 +set FILE3 =
17.42 +set FILE4 = $FILE1
17.43 +set FILE5 = $FILE1
17.44 +set FILE6 = $FILE1
17.45 +set FILE7 = i01.39cn_Fire_C_2101-2125_monthly.nc
17.46 +set FILE8 = i01.39cn_ameriflux_2101-2125_monthly.nc
17.47 +set FILE9 = $FILE1
17.48 +set FILE10 = $FILE2
17.49 +set GRID = 1.9
17.50 +set BGC = cn
17.51 +set ENERGY = old
17.52 +
17.53 +# in the "CLAMP metric processing" section:
17.54 +# only 00.initial.ncl and 99.final.ncl are required,
17.55 +# user can comment out any one or more of the other ncl scripts,
17.56 +# e.g.
17.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
17.58 +
17.59 +# model surface data
17.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
17.61 +
17.62 +# observed data
17.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
17.64 +
17.65 +# directory for scripts, templates and ncl files
17.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
17.67 +
17.68 +#********************************************************
17.69 +
17.70 +# create model1 and model1_vs_model2 directory by copying templates
17.71 +if ($FILE3 != "") then
17.72 + set TEMPLATE1 = template_1-model
17.73 + set TEMPLATE2 = template_2-model
17.74 +else
17.75 + set TEMPLATE1 = template_1-model_noCO2
17.76 + set TEMPLATE2 = template_2-model_noCO2
17.77 +endif
17.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
17.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
17.80 +rm -rf $MODEL1
17.81 +rm -rf $COMPARE
17.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
17.83 +mv $TEMPLATE1 $MODEL1
17.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
17.85 +mv $TEMPLATE2 $COMPARE
17.86 +
17.87 +# add quote, to be usesd in INPUT_TEXT
17.88 +set MODELQ = \"$MODEL1\"
17.89 +set DIRMQ = \"$DIR_M\"
17.90 +set F1 = \"$FILE1\"
17.91 +set F2 = \"$FILE2\"
17.92 +set F3 = \"$FILE3\"
17.93 +set F4 = \"$FILE4\"
17.94 +set F5 = \"$FILE5\"
17.95 +set F6 = \"$FILE6\"
17.96 +set F7 = \"$FILE7\"
17.97 +set F8 = \"$FILE8\"
17.98 +set F9 = \"$FILE9\"
17.99 +set F10 = \"$FILE10\"
17.100 +set GRIDQ = \"$GRID\"
17.101 +set BGCQ = \"$BGC\"
17.102 +set ENERGYQ = \"$ENERGY\"
17.103 +set DIRSQ = \"$DIR_S\"
17.104 +set DIROQ = \"$DIR_O\"
17.105 +set DIRCQ = \"$DIR_SCRIPTS\"
17.106 +
17.107 +set COMPAREQ = \"$COMPARE\"
17.108 +set MODELN = \"model1\"
17.109 +
17.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
17.111 +
17.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
17.113 +# CLAMP metric processing of model1
17.114 +echo "`date` - Running 00.initial.ncl"
17.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
17.116 +echo "`date` - Running 01.npp.ncl"
17.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
17.118 +echo "`date` - Running 01.lai.ncl"
17.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
17.120 +
17.121 +if ($FILE3 != "") then
17.122 +echo "`date` - Running 03.co2.ncl"
17.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
17.124 +endif
17.125 +
17.126 +echo "`date` - Running 04.biomass.ncl"
17.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
17.128 +echo "`date` - Running 06.fluxnet.ncl"
17.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
17.130 +echo "`date` - Running 07.beta.ncl"
17.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
17.132 +echo "`date` - Running 08.turnover.ncl"
17.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
17.134 +
17.135 +if ($BGC != "casa") then
17.136 +echo "`date` - Running 09.carbon_sink.ncl"
17.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
17.138 +else
17.139 +echo "`date` - Running 09x.carbon_sink.ncl"
17.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
17.141 +endif
17.142 +
17.143 +if ($BGC != "casa") then
17.144 +echo "`date` - Running 10.fire.ncl"
17.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
17.146 +endif
17.147 +
17.148 +echo "`date` - Running 11.ameriflux.ncl"
17.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
17.150 +echo "`date` - Running 99.final.ncl"
17.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
17.152 +
17.153 +#*******************************************************
17.154 +# user modification-(3)
17.155 +
17.156 +# model2
17.157 +set MODEL2 = i01.40cn
17.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.40cn_out/
17.159 +set FILE1 = i01.40cn_out_ANN_climo.nc
17.160 +set FILE2 = i01.40cn_out_MONS_climo.nc
17.161 +set FILE3 =
17.162 +set FILE4 = $FILE1
17.163 +set FILE5 = $FILE1
17.164 +set FILE6 = $FILE1
17.165 +set FILE7 = i01.40cn_Fire_C_2076-2100_monthly.nc
17.166 +set FILE8 = i01.40cn_ameriflux_2076-2100_monthly.nc
17.167 +set FILE9 = $FILE1
17.168 +set FILE10 = $FILE2
17.169 +set GRID = 1.9
17.170 +set BGC = cn
17.171 +set ENERGY = old
17.172 +#*******************************************************
17.173 +# create model2 directory by copying templates
17.174 +if ($FILE3 != "") then
17.175 + set TEMPLATE1 = template_1-model
17.176 +else
17.177 + set TEMPLATE1 = template_1-model_noCO2
17.178 +endif
17.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
17.180 +rm -rf $MODEL2
17.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
17.182 +mv $TEMPLATE1 $MODEL2
17.183 +
17.184 +# add quote, to be usesd in INPUT_TEXT
17.185 +set MODELQ = \"$MODEL2\"
17.186 +set DIRMQ = \"$DIR_M\"
17.187 +set F1 = \"$FILE1\"
17.188 +set F2 = \"$FILE2\"
17.189 +set F3 = \"$FILE3\"
17.190 +set F4 = \"$FILE4\"
17.191 +set F5 = \"$FILE5\"
17.192 +set F6 = \"$FILE6\"
17.193 +set F7 = \"$FILE7\"
17.194 +set F8 = \"$FILE8\"
17.195 +set F9 = \"$FILE9\"
17.196 +set F10 = \"$FILE10\"
17.197 +set GRIDQ = \"$GRID\"
17.198 +set BGCQ = \"$BGC\"
17.199 +set ENERGYQ = \"$ENERGY\"
17.200 +
17.201 +set COMPAREQ = \"$COMPARE\"
17.202 +set MODELN = \"model2\"
17.203 +
17.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
17.205 +
17.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
17.207 +# CLAMP metric processing of model2
17.208 +echo "`date` - Running 00.inital.ncl"
17.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
17.210 +echo "`date` - Running 01.npp.ncl"
17.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
17.212 +echo "`date` - Running 02.lai.ncl"
17.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
17.214 +
17.215 +if ($FILE3 != "") then
17.216 +echo "`date` - Running 03.co2.ncl"
17.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
17.218 +endif
17.219 +
17.220 +echo "`date` - Running 04.biomass.ncl"
17.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
17.222 +echo "`date` - Running 06.fluxnet.ncl"
17.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
17.224 +echo "`date` - Running 07.beta.ncl"
17.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
17.226 +echo "`date` - Running 08.turnover.ncl"
17.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
17.228 +
17.229 +if ($BGC != "casa") then
17.230 +echo "`date` - Running 09.carbon_sink.ncl"
17.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
17.232 +else
17.233 +echo "`date` - Running 09x.carbon_sink.ncl"
17.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
17.235 +endif
17.236 +
17.237 +if ($BGC != "casa") then
17.238 +echo "`date` - Running 10.fire.ncl"
17.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
17.240 +endif
17.241 +
17.242 +echo "`date` - Running 11.ameriflux.ncl"
17.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
17.244 +echo "`date` - Running 99.final.ncl"
17.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
17.246 +
17.247 +# create a tar file from the final output
17.248 +echo "`date` - tarring up final output into all.tar"
17.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
17.250 +
18.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
18.2 +++ b/all/run_2-model_42cn_43cn.csh Thu Mar 26 14:02:21 2009 -0400
18.3 @@ -0,0 +1,247 @@
18.4 +#!/bin/csh -f
18.5 +#-------------------------------------------------------------------
18.6 +# note: user modifies ONLY the "user modification" section
18.7 +#
18.8 +# COMPARE: model1 vs model2
18.9 +# MODELn : model name
18.10 +# DIR_M : directory of model data
18.11 +# DIR_O : directory of observed data
18.12 +# DIR_S : directory of model surface data
18.13 +# DIR_SCRIPTS : directory of run scripts
18.14 +# FILE1 : time_mean climatology from CLM diagnostic package
18.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
18.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
18.17 +# leave it blank, if no ATM file:
18.18 +# set FILE3 =
18.19 +# FILE7 : timeseries file generated from ....
18.20 +# FILE8 : timeseries file generated from ....
18.21 +# GRID : T31, T42, or 1.9
18.22 +# BGC : cn or casa
18.23 +# ENERGY : new or old (fields in model data)
18.24 +#-------------------------------------------------------------------
18.25 +
18.26 +#*******************************************************
18.27 +# user modification-(1)
18.28 +
18.29 +# directory name of model comparison
18.30 +#et COMPARE = b30.061n_vs_b30.061m
18.31 +set COMPARE = i01.42cn_vs_i01.43cn
18.32 +
18.33 +#*******************************************************
18.34 +# user modification-(2)
18.35 +
18.36 +# model1
18.37 +set MODEL1 = i01.42cn
18.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases/i01.42cn_out/
18.39 +set FILE1 = i01.42cn_out_ANN_climo.nc
18.40 +set FILE2 = i01.42cn_out_MONS_climo.nc
18.41 +set FILE3 =
18.42 +set FILE4 = $FILE1
18.43 +set FILE5 = $FILE1
18.44 +set FILE6 = $FILE1
18.45 +set FILE7 = i01.42cn_Fire_C_2976-3000_monthly.nc
18.46 +set FILE8 = i01.42cn_ameriflux_2976-3000_monthly.nc
18.47 +set FILE9 = $FILE1
18.48 +set FILE10 = $FILE2
18.49 +set GRID = 1.9
18.50 +set BGC = cn
18.51 +set ENERGY = old
18.52 +
18.53 +# in the "CLAMP metric processing" section:
18.54 +# only 00.initial.ncl and 99.final.ncl are required,
18.55 +# user can comment out any one or more of the other ncl scripts,
18.56 +# e.g.
18.57 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
18.58 +
18.59 +# model surface data
18.60 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
18.61 +
18.62 +# observed data
18.63 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
18.64 +
18.65 +# directory for scripts, templates and ncl files
18.66 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
18.67 +
18.68 +#********************************************************
18.69 +
18.70 +# create model1 and model1_vs_model2 directory by copying templates
18.71 +if ($FILE3 != "") then
18.72 + set TEMPLATE1 = template_1-model
18.73 + set TEMPLATE2 = template_2-model
18.74 +else
18.75 + set TEMPLATE1 = template_1-model_noCO2
18.76 + set TEMPLATE2 = template_2-model_noCO2
18.77 +endif
18.78 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
18.79 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
18.80 +rm -rf $MODEL1
18.81 +rm -rf $COMPARE
18.82 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
18.83 +mv $TEMPLATE1 $MODEL1
18.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
18.85 +mv $TEMPLATE2 $COMPARE
18.86 +
18.87 +# add quote, to be usesd in INPUT_TEXT
18.88 +set MODELQ = \"$MODEL1\"
18.89 +set DIRMQ = \"$DIR_M\"
18.90 +set F1 = \"$FILE1\"
18.91 +set F2 = \"$FILE2\"
18.92 +set F3 = \"$FILE3\"
18.93 +set F4 = \"$FILE4\"
18.94 +set F5 = \"$FILE5\"
18.95 +set F6 = \"$FILE6\"
18.96 +set F7 = \"$FILE7\"
18.97 +set F8 = \"$FILE8\"
18.98 +set F9 = \"$FILE9\"
18.99 +set F10 = \"$FILE10\"
18.100 +set GRIDQ = \"$GRID\"
18.101 +set BGCQ = \"$BGC\"
18.102 +set ENERGYQ = \"$ENERGY\"
18.103 +set DIRSQ = \"$DIR_S\"
18.104 +set DIROQ = \"$DIR_O\"
18.105 +set DIRCQ = \"$DIR_SCRIPTS\"
18.106 +
18.107 +set COMPAREQ = \"$COMPARE\"
18.108 +set MODELN = \"model1\"
18.109 +
18.110 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
18.111 +
18.112 +echo "`date` - Running diagnostics for model ${MODELQ}"
18.113 +# CLAMP metric processing of model1
18.114 +echo "`date` - Running 00.initial.ncl"
18.115 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
18.116 +echo "`date` - Running 01.npp.ncl"
18.117 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
18.118 +echo "`date` - Running 01.lai.ncl"
18.119 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
18.120 +
18.121 +if ($FILE3 != "") then
18.122 +echo "`date` - Running 03.co2.ncl"
18.123 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
18.124 +endif
18.125 +
18.126 +echo "`date` - Running 04.biomass.ncl"
18.127 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
18.128 +echo "`date` - Running 06.fluxnet.ncl"
18.129 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
18.130 +echo "`date` - Running 07.beta.ncl"
18.131 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
18.132 +echo "`date` - Running 08.turnover.ncl"
18.133 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
18.134 +
18.135 +if ($BGC != "casa") then
18.136 +echo "`date` - Running 09.carbon_sink.ncl"
18.137 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
18.138 +else
18.139 +echo "`date` - Running 09x.carbon_sink.ncl"
18.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
18.141 +endif
18.142 +
18.143 +if ($BGC != "casa") then
18.144 +echo "`date` - Running 10.fire.ncl"
18.145 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
18.146 +endif
18.147 +
18.148 +echo "`date` - Running 11.ameriflux.ncl"
18.149 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
18.150 +echo "`date` - Running 99.final.ncl"
18.151 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
18.152 +
18.153 +#*******************************************************
18.154 +# user modification-(3)
18.155 +
18.156 +# model2
18.157 +set MODEL2 = i01.43cn
18.158 +set DIR_M = /lustre/wolf-ddn/scratch/hof/cases1/i01.43cn_out/
18.159 +set FILE1 = i01.43cn_out_ANN_climo.nc
18.160 +set FILE2 = i01.43cn_out_MONS_climo.nc
18.161 +set FILE3 =
18.162 +set FILE4 = $FILE1
18.163 +set FILE5 = $FILE1
18.164 +set FILE6 = $FILE1
18.165 +set FILE7 = i01.43cn_Fire_C_2876-2900_monthly.nc
18.166 +set FILE8 = i01.43cn_ameriflux_2876-2900_monthly.nc
18.167 +set FILE9 = $FILE1
18.168 +set FILE10 = $FILE2
18.169 +set GRID = 1.9
18.170 +set BGC = cn
18.171 +set ENERGY = old
18.172 +#*******************************************************
18.173 +# create model2 directory by copying templates
18.174 +if ($FILE3 != "") then
18.175 + set TEMPLATE1 = template_1-model
18.176 +else
18.177 + set TEMPLATE1 = template_1-model_noCO2
18.178 +endif
18.179 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
18.180 +rm -rf $MODEL2
18.181 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
18.182 +mv $TEMPLATE1 $MODEL2
18.183 +
18.184 +# add quote, to be usesd in INPUT_TEXT
18.185 +set MODELQ = \"$MODEL2\"
18.186 +set DIRMQ = \"$DIR_M\"
18.187 +set F1 = \"$FILE1\"
18.188 +set F2 = \"$FILE2\"
18.189 +set F3 = \"$FILE3\"
18.190 +set F4 = \"$FILE4\"
18.191 +set F5 = \"$FILE5\"
18.192 +set F6 = \"$FILE6\"
18.193 +set F7 = \"$FILE7\"
18.194 +set F8 = \"$FILE8\"
18.195 +set F9 = \"$FILE9\"
18.196 +set F10 = \"$FILE10\"
18.197 +set GRIDQ = \"$GRID\"
18.198 +set BGCQ = \"$BGC\"
18.199 +set ENERGYQ = \"$ENERGY\"
18.200 +
18.201 +set COMPAREQ = \"$COMPARE\"
18.202 +set MODELN = \"model2\"
18.203 +
18.204 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
18.205 +
18.206 +echo "`date` - Running diagnostics for model ${MODELQ}"
18.207 +# CLAMP metric processing of model2
18.208 +echo "`date` - Running 00.inital.ncl"
18.209 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
18.210 +echo "`date` - Running 01.npp.ncl"
18.211 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
18.212 +echo "`date` - Running 02.lai.ncl"
18.213 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
18.214 +
18.215 +if ($FILE3 != "") then
18.216 +echo "`date` - Running 03.co2.ncl"
18.217 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
18.218 +endif
18.219 +
18.220 +echo "`date` - Running 04.biomass.ncl"
18.221 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
18.222 +echo "`date` - Running 06.fluxnet.ncl"
18.223 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
18.224 +echo "`date` - Running 07.beta.ncl"
18.225 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
18.226 +echo "`date` - Running 08.turnover.ncl"
18.227 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
18.228 +
18.229 +if ($BGC != "casa") then
18.230 +echo "`date` - Running 09.carbon_sink.ncl"
18.231 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
18.232 +else
18.233 +echo "`date` - Running 09x.carbon_sink.ncl"
18.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
18.235 +endif
18.236 +
18.237 +if ($BGC != "casa") then
18.238 +echo "`date` - Running 10.fire.ncl"
18.239 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
18.240 +endif
18.241 +
18.242 +echo "`date` - Running 11.ameriflux.ncl"
18.243 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
18.244 +echo "`date` - Running 99.final.ncl"
18.245 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
18.246 +
18.247 +# create a tar file from the final output
18.248 +echo "`date` - tarring up final output into all.tar"
18.249 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
18.250 +
19.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
19.2 +++ b/all/run_2-model_FMH.csh Thu Mar 26 14:02:21 2009 -0400
19.3 @@ -0,0 +1,254 @@
19.4 +#!/bin/csh -f
19.5 +#-------------------------------------------------------------------
19.6 +# note: user modifies ONLY the "user modification" section
19.7 +#
19.8 +# COMPARE: model1 vs model2
19.9 +# MODELn : model name
19.10 +# DIR_M : directory of model data
19.11 +# DIR_O : directory of observed data
19.12 +# DIR_S : directory of model surface data
19.13 +# DIR_SCRIPTS : directory of run scripts
19.14 +# FILE1 : time_mean climatology from CLM diagnostic package
19.15 +# FILE2 : 12-monthly climatology from CLM diagnostic package
19.16 +# FILE3 : 12-monthly climatology from ATM diagnostic package
19.17 +# leave it blank, if no ATM file:
19.18 +# set FILE3 =
19.19 +# FILE7 : timeseries file generated from ....
19.20 +# FILE8 : timeseries file generated from ....
19.21 +# GRID : T31, T42, or 1.9
19.22 +# BGC : cn or casa
19.23 +# ENERGY : new or old (fields in model data)
19.24 +#-------------------------------------------------------------------
19.25 +
19.26 +#*******************************************************
19.27 +# user modification-(1)
19.28 +
19.29 +# directory name of model comparison
19.30 +#et COMPARE = b30.061n_vs_b30.061m
19.31 +set COMPARE = CN_vs_CASA
19.32 +
19.33 +#*******************************************************
19.34 +# user modification-(2)
19.35 +
19.36 +# model1
19.37 +set MODEL1 = CASA
19.38 +set DIR_M = /lustre/wolf-ddn/scratch/hof/clamp_data/model/
19.39 +#set FILE1 = i01.10casa_1948-2004_ANN_climo.nc
19.40 +set FILE1 = i01.10casa_1975-2000_ANN_climo.nc
19.41 +set FILE2 = i01.10casa_1948-2004_MONS_climo.nc
19.42 +set FILE3 = f02.03casa_1876-1900_MONS_climo_atm.nc
19.43 +set FILE4 = i01.06casa_1980-2004_ANN_climo.nc
19.44 +set FILE5 = i01.10casa_1990-2004_ANN_climo.nc
19.45 +set FILE6 = i01.07casa_1990-2004_ANN_climo.nc
19.46 +set FILE7 = i01.10casa_Fire_C_1979-2004_monthly.nc
19.47 +set FILE8 = i01.10casa_ameriflux_1990-2004_monthly.nc
19.48 +set FILE9 = i01.10casa_2000-2004_ANN_climo.nc
19.49 +set FILE10 = i01.10casa_2000-2004_MONS_climo.nc
19.50 +set FILE11 = i01.10casa_2000_ANN_climo.nc
19.51 +set GRID = T42
19.52 +set BGC = casa
19.53 +set ENERGY = new
19.54 +
19.55 +# in the "CLAMP metric processing" section:
19.56 +# only 00.initial.ncl and 99.final.ncl are required,
19.57 +# user can comment out any one or more of the other ncl scripts,
19.58 +# e.g.
19.59 +# #ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
19.60 +
19.61 +# model surface data
19.62 +set DIR_S = /lustre/wolf-ddn/scratch/hof/clamp_data/surface_model/
19.63 +
19.64 +# observed data
19.65 +set DIR_O = /lustre/wolf-ddn/scratch/hof/clamp_data/observed/
19.66 +
19.67 +# directory for scripts, templates and ncl files
19.68 +set DIR_SCRIPTS = /lustre/wolf-ddn/scratch/hof/clamp/all/
19.69 +
19.70 +#********************************************************
19.71 +
19.72 +# create model1 and model1_vs_model2 directory by copying templates
19.73 +if ($FILE3 != "") then
19.74 + set TEMPLATE1 = template_1-model
19.75 + set TEMPLATE2 = template_2-model
19.76 +else
19.77 + set TEMPLATE1 = template_1-model_noCO2
19.78 + set TEMPLATE2 = template_2-model_noCO2
19.79 +endif
19.80 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL1
19.81 +#cp -r $DIR_SCRIPTS/$TEMPLATE2 $COMPARE
19.82 +rm -rf $MODEL1
19.83 +rm -rf $COMPARE
19.84 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
19.85 +mv $TEMPLATE1 $MODEL1
19.86 +tar xvpf $DIR_SCRIPTS/$TEMPLATE2.tar
19.87 +mv $TEMPLATE2 $COMPARE
19.88 +
19.89 +# add quote, to be usesd in INPUT_TEXT
19.90 +set MODELQ = \"$MODEL1\"
19.91 +set DIRMQ = \"$DIR_M\"
19.92 +set F1 = \"$FILE1\"
19.93 +set F2 = \"$FILE2\"
19.94 +set F3 = \"$FILE3\"
19.95 +set F4 = \"$FILE4\"
19.96 +set F5 = \"$FILE5\"
19.97 +set F6 = \"$FILE6\"
19.98 +set F7 = \"$FILE7\"
19.99 +set F8 = \"$FILE8\"
19.100 +set F9 = \"$FILE9\"
19.101 +set F10 = \"$FILE10\"
19.102 +set F11 = \"$FILE11\"
19.103 +set GRIDQ = \"$GRID\"
19.104 +set BGCQ = \"$BGC\"
19.105 +set ENERGYQ = \"$ENERGY\"
19.106 +set DIRSQ = \"$DIR_S\"
19.107 +set DIROQ = \"$DIR_O\"
19.108 +set DIRCQ = \"$DIR_SCRIPTS\"
19.109 +
19.110 +set COMPAREQ = \"$COMPARE\"
19.111 +set MODELN = \"model1\"
19.112 +
19.113 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 film11=$F11 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
19.114 +
19.115 +echo "`date` - Running diagnostics for model ${MODELQ}"
19.116 +# CLAMP metric processing of model1
19.117 +echo "`date` - Running 00.initial.ncl"
19.118 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
19.119 +echo "`date` - Running 01.npp.ncl"
19.120 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
19.121 +echo "`date` - Running 01.lai.ncl"
19.122 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
19.123 +
19.124 +if ($FILE3 != "") then
19.125 +echo "`date` - Running 03.co2.ncl"
19.126 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
19.127 +endif
19.128 +
19.129 +echo "`date` - Running 04.biomass.ncl"
19.130 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
19.131 +echo "`date` - Running 06.fluxnet.ncl"
19.132 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
19.133 +echo "`date` - Running 07.beta.ncl"
19.134 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
19.135 +echo "`date` - Running 08.turnover.ncl"
19.136 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
19.137 +
19.138 +if ($BGC != "casa") then
19.139 +echo "`date` - Running 09.carbon_sink.ncl"
19.140 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
19.141 +else
19.142 +echo "`date` - Running 09x.carbon_sink.ncl"
19.143 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
19.144 +endif
19.145 +
19.146 +if ($BGC != "casa") then
19.147 +echo "`date` - Running 10.fire.ncl"
19.148 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
19.149 +endif
19.150 +
19.151 +echo "`date` - Running 11.ameriflux.ncl"
19.152 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
19.153 +echo "`date` - Running 99.final.ncl"
19.154 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
19.155 +
19.156 +#*******************************************************
19.157 +# user modification-(3)
19.158 +
19.159 +# model2
19.160 +set MODEL2 = CN
19.161 +set DIR_M = /lustre/wolf-ddn/scratch/hof/clamp_data/model/
19.162 +#set FILE1 = i01.10cn_1948-2004_ANN_climo.nc
19.163 +set FILE1 = i01.10cn_1975-2000_ANN_climo.nc
19.164 +set FILE2 = i01.10cn_1948-2004_MONS_climo.nc
19.165 +set FILE3 = f02.03cn_1901-1925_MONS_climo_atm.nc
19.166 +set FILE4 = i01.06cn_1980-2004_ANN_climo.nc
19.167 +set FILE5 = i01.10cn_1990-2004_ANN_climo.nc
19.168 +set FILE6 = i01.07cn_1990-2004_ANN_climo.nc
19.169 +set FILE7 = i01.10cn_Fire_C_1979-2004_monthly.nc
19.170 +set FILE8 = i01.10cn_ameriflux_1990-2004_monthly.nc
19.171 +set FILE9 = i01.10cn_2000-2004_ANN_climo.nc
19.172 +set FILE10 = i01.10cn_2000-2004_MONS_climo.nc
19.173 +set FILE11 = i01.10cn_2000_ANN_climo.nc
19.174 +set GRID = T42
19.175 +set BGC = cn
19.176 +set ENERGY = new
19.177 +
19.178 +#*******************************************************
19.179 +# create model2 directory by copying templates
19.180 +if ($FILE3 != "") then
19.181 + set TEMPLATE1 = template_1-model
19.182 +else
19.183 + set TEMPLATE1 = template_1-model_noCO2
19.184 +endif
19.185 +#cp -r $DIR_SCRIPTS/$TEMPLATE1 $MODEL2
19.186 +rm -rf $MODEL2
19.187 +tar xvpf $DIR_SCRIPTS/$TEMPLATE1.tar
19.188 +mv $TEMPLATE1 $MODEL2
19.189 +
19.190 +# add quote, to be usesd in INPUT_TEXT
19.191 +set MODELQ = \"$MODEL2\"
19.192 +set DIRMQ = \"$DIR_M\"
19.193 +set F1 = \"$FILE1\"
19.194 +set F2 = \"$FILE2\"
19.195 +set F3 = \"$FILE3\"
19.196 +set F4 = \"$FILE4\"
19.197 +set F5 = \"$FILE5\"
19.198 +set F6 = \"$FILE6\"
19.199 +set F7 = \"$FILE7\"
19.200 +set F8 = \"$FILE8\"
19.201 +set F9 = \"$FILE9\"
19.202 +set F10 = \"$FILE10\"
19.203 +set F11 = \"$FILE11\"
19.204 +set GRIDQ = \"$GRID\"
19.205 +set BGCQ = \"$BGC\"
19.206 +set ENERGYQ = \"$ENERGY\"
19.207 +
19.208 +set COMPAREQ = \"$COMPARE\"
19.209 +set MODELN = \"model2\"
19.210 +
19.211 +set INPUT_TEXT = "model_name=$MODELQ model_grid=$GRIDQ dirm=$DIRMQ film1=$F1 film2=$F2 film3=$F3 film4=$F4 film5=$F5 film6=$F6 film7=$F7 film8=$F8 film9=$F9 film10=$F10 film11=$F11 BGC=$BGCQ ENERGY=$ENERGYQ dirs=$DIRSQ diro=$DIROQ dirscript=$DIRCQ modeln=$MODELN compare=$COMPAREQ"
19.212 +
19.213 +echo "`date` - Running diagnostics for model ${MODELQ}"
19.214 +# CLAMP metric processing of model2
19.215 +echo "`date` - Running 00.inital.ncl"
19.216 +ncl $INPUT_TEXT $DIR_SCRIPTS/00.initial.ncl
19.217 +echo "`date` - Running 01.npp.ncl"
19.218 +ncl $INPUT_TEXT $DIR_SCRIPTS/01.npp.ncl
19.219 +echo "`date` - Running 02.lai.ncl"
19.220 +ncl $INPUT_TEXT $DIR_SCRIPTS/02.lai.ncl
19.221 +
19.222 +if ($FILE3 != "") then
19.223 +echo "`date` - Running 03.co2.ncl"
19.224 +ncl $INPUT_TEXT $DIR_SCRIPTS/03.co2.ncl
19.225 +endif
19.226 +
19.227 +echo "`date` - Running 04.biomass.ncl"
19.228 +ncl $INPUT_TEXT $DIR_SCRIPTS/04.biomass.ncl
19.229 +echo "`date` - Running 06.fluxnet.ncl"
19.230 +ncl $INPUT_TEXT $DIR_SCRIPTS/06.fluxnet.ncl
19.231 +echo "`date` - Running 07.beta.ncl"
19.232 +ncl $INPUT_TEXT $DIR_SCRIPTS/07.beta.ncl
19.233 +echo "`date` - Running 08.turnover.ncl"
19.234 +ncl $INPUT_TEXT $DIR_SCRIPTS/08.turnover.ncl
19.235 +
19.236 +if ($BGC != "casa") then
19.237 +echo "`date` - Running 09.carbon_sink.ncl"
19.238 +ncl $INPUT_TEXT $DIR_SCRIPTS/09.carbon_sink.ncl
19.239 +else
19.240 +echo "`date` - Running 09x.carbon_sink.ncl"
19.241 +ncl $INPUT_TEXT $DIR_SCRIPTS/09x.carbon_sink.ncl
19.242 +endif
19.243 +
19.244 +if ($BGC != "casa") then
19.245 +echo "`date` - Running 10.fire.ncl"
19.246 +ncl $INPUT_TEXT $DIR_SCRIPTS/10.fire.ncl
19.247 +endif
19.248 +
19.249 +echo "`date` - Running 11.ameriflux.ncl"
19.250 +ncl $INPUT_TEXT $DIR_SCRIPTS/11.ameriflux.ncl
19.251 +echo "`date` - Running 99.final.ncl"
19.252 +ncl $INPUT_TEXT $DIR_SCRIPTS/99.final.ncl
19.253 +
19.254 +# create a tar file from the final output
19.255 +echo "`date` - tarring up final output into all.tar"
19.256 +tar cf - $MODEL1 $MODEL2 $COMPARE > all.tar
19.257 +
20.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
20.2 +++ b/all/run_clamp_diag_LENS.csh Thu Mar 26 14:02:21 2009 -0400
20.3 @@ -0,0 +1,31 @@
20.4 +#!/bin/csh -f
20.5 +#PBS -A cli017bgc
20.6 +#PBS -N clamp_diag
20.7 +##PBS -q batch
20.8 +#PBS -l nodes=1:ppn=1
20.9 +#PBS -l walltime=02:00:00
20.10 +#PBS -j oe
20.11 +#PBS -S /bin/csh -V
20.12 +#PBS -m abe
20.13 +#PBS -M forrest@climatemodeling.org
20.14 +##PBS -M forrest@climatemodeling.org,8656843670@messaging.sprintpcs.com
20.15 +##PBS -M forrest@climatemodeling.org,fmhoffman@ipipi.com
20.16 +
20.17 +cd /tmp/work/hof/clamp/all/
20.18 +
20.19 +if ($?tcsh) then
20.20 + set modules_shell="tcsh"
20.21 +else
20.22 + set modules_shell="csh"
20.23 +endif
20.24 +
20.25 +source /usr/Modules/init/${modules_shell}
20.26 +
20.27 +unset modules_shell
20.28 +
20.29 +module load nco
20.30 +module load ncl
20.31 +
20.32 +#time ./lnd_template4.6_ORNL_27cn29.csh
20.33 +#time ./lnd_template4.6_ORNL_27cn31.csh >& lnd_template4.6_ORNL_27cn31.log
20.34 +time ./run_2-model_FMH.csh >& run_2-model_FMH.log
21.1 Binary file all/template_1-model.tar has changed
22.1 --- a/all/template_1-model/index.html Mon Jan 26 22:08:20 2009 -0500
22.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
22.3 @@ -1,16 +0,0 @@
22.4 -<html>
22.5 -<head>
22.6 -<title> Score Sheet for CLAMP </title>
22.7 -<meta name="description" content="score CLAMP">
22.8 -<meta name="keywords" content="score BGC CLAMP CN CASA">
22.9 -<meta name="Authors" content="Jeff Lee">
22.10 -</head>
22.11 -
22.12 -<!----------------------------------------------------------------------------->
22.13 -<h2> <a href=http://www.climatemodeling.org/c-lamp/metrics4.pdf>CLAMP Score Sheet for Biogeochemical Model Evaluation</h2>
22.14 -<!----------------------------------------------------------------------------->
22.15 -
22.16 -<!--#include virtual="table.html"-->
22.17 -
22.18 -<!----------------------------------------------------------------------------->
22.19 -</html>
23.1 --- a/all/template_1-model/table.html Mon Jan 26 22:08:20 2009 -0500
23.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
23.3 @@ -1,407 +0,0 @@
23.4 -
23.5 -<!----------------------------------------------------------------------------->
23.6 -<table border=1 cellspacing=0 cellpadding=3 width=100%>
23.7 -<tr>
23.8 - <th bgcolor=DDDDDD width=8% rowspan=2> Metric </th>
23.9 - <th bgcolor=DDDDDD rowspan=2> Metric <br> components</th>
23.10 - <th bgcolor=DDDDDD rowspan=2> Observations & <br> comparison protocol</th>
23.11 - <th bgcolor=DDDDDD rowspan=2> Model<br> model_name </th>
23.12 - <th bgcolor=DDDDDD colspan=2> Score (points) </th>
23.13 -</tr>
23.14 -<tr>
23.15 - <th width=6% bgcolor=DDDDDD> Full </th>
23.16 - <th width=6% bgcolor=DDDDDD> model_name </th>
23.17 -</tr>
23.18 -
23.19 -<tr>
23.20 - <th rowspan=6>NPP</th>
23.21 -
23.22 - <th rowspan=2>EMDI NPP <br> observations</th>
23.23 -
23.24 - <th>
23.25 - <a href=./npp/table_site81_ob.html>
23.26 - Class_A_table</a>
23.27 - </th>
23.28 -
23.29 - <th>
23.30 - <a href=./npp/table_site81_model_vs_ob.html>
23.31 - table</a> <br>
23.32 - <a href=./npp/scatter_model_vs_ob_81.png>
23.33 - scatter_plot</a>
23.34 - </th>
23.35 -
23.36 - <th>2.5</th>
23.37 - <th>M_npp_S81</th>
23.38 -</tr>
23.39 -
23.40 -<tr>
23.41 - <th>
23.42 - <a href=./npp/table_site933_ob.html>
23.43 - Class_B_table</a>
23.44 - </th>
23.45 -
23.46 - <th>
23.47 - <a href=./npp/table_site933_model_vs_ob.html>
23.48 - table</a> <br>
23.49 - <a href=./npp/scatter_model_vs_ob_933.png>
23.50 - scatter_plot</a>
23.51 - </th>
23.52 -
23.53 - <th>2.5</th>
23.54 - <th>M_npp_S933</th>
23.55 -</tr>
23.56 -
23.57 -<tr>
23.58 - <th rowspan=2>EMDI NPP<br>normalized by PPT</th>
23.59 -
23.60 - <th>
23.61 - <a href=./npp/histogram_ob_81.png>
23.62 - Class_A_histogram</a>
23.63 - </th>
23.64 -
23.65 - <th>
23.66 - <a href=./npp/histogram_model_vs_ob_81.png>
23.67 - Class_A_histogram</a>
23.68 - </th>
23.69 -
23.70 - <th>2.5</th>
23.71 - <th>M_npp_H81</th>
23.72 -</tr>
23.73 -
23.74 -<tr>
23.75 - <th>
23.76 - <a href=./npp/histogram_ob_933.png>
23.77 - Class_B_histogram</a>
23.78 - </th>
23.79 -
23.80 - <th>
23.81 - <a href=./npp/histogram_model_vs_ob_933.png>
23.82 - Class_B_histogram</a>
23.83 - </th>
23.84 -
23.85 - <th>2.5</th>
23.86 - <th>M_npp_H933</th>
23.87 -</tr>
23.88 -
23.89 -<tr>
23.90 - <th>Correlation with MODIS obs.</th>
23.91 -
23.92 - <th>
23.93 - <a href=./npp/global_ob.png>
23.94 - global_map</a>
23.95 - </th>
23.96 -
23.97 - <th>
23.98 - <a href=./npp/global_model.png>
23.99 - model_map</a> <br>
23.100 - <a href=./npp/global_model_vs_ob.png>
23.101 - model_vs_obs</a>
23.102 - </th>
23.103 -
23.104 - <th>5</th>
23.105 - <th>M_npp_G</th>
23.106 -</tr>
23.107 -
23.108 -<tr>
23.109 - <th>Correlation with MODIS-zonal mean</th>
23.110 -
23.111 - <th>
23.112 - <a href=./npp/zonal_ob.png>
23.113 - zonal_mean_obs</a>
23.114 - </th>
23.115 -
23.116 - <th>
23.117 - <a href=./npp/zonal_model_vs_ob.png>
23.118 - zonal_mean <br>model_vs_obs_plot</a>
23.119 - </th>
23.120 -
23.121 - <th>5</th>
23.122 - <th>M_npp_Z</th>
23.123 -</tr>
23.124 -
23.125 -<tr>
23.126 - <th rowspan=3>LAI</th>
23.127 -
23.128 - <th>MODIS Mean</th>
23.129 -
23.130 - <th>
23.131 - <a href=./lai/global_class_ob.png>
23.132 - land_class_obs</a> <br>
23.133 - <a href=./lai/global_class_model.png>
23.134 - land_class_model</a> <br>
23.135 - <a href=./lai/global_Mean_ob.png>
23.136 - global_map</a>
23.137 - </th>
23.138 -
23.139 - <th>
23.140 - <a href=./lai/table_model_vs_ob.html>
23.141 - model_vs_obs_table</a> <br>
23.142 - <a href=./lai/global_Mean_model.png>
23.143 - global_map</a> <br>
23.144 - <a href=./lai/global_Mean_model_vs_ob.png>
23.145 - model_vs_obs</a>
23.146 - </th>
23.147 -
23.148 - <th>5</th>
23.149 - <th>M_lai_Mean</th>
23.150 -</tr>
23.151 -
23.152 -<tr>
23.153 - <th>MODIS Maximum</th>
23.154 -
23.155 - <th>
23.156 - <a href=./lai/global_Max_ob.png>
23.157 - global_map</a>
23.158 - </th>
23.159 -
23.160 - <th>
23.161 - <a href=./lai/global_Max_model.png>
23.162 - global_map</a> <br>
23.163 - <a href=./lai/global_Max_model_vs_ob.png>
23.164 - model_vs_obs</a>
23.165 - </th>
23.166 -
23.167 - <th>5</th>
23.168 - <th>M_lai_Max</th>
23.169 -</tr>
23.170 -<tr>
23.171 - <th>MODIS Phase</th>
23.172 -
23.173 - <th>
23.174 - <a href=./lai/global_Phase_ob.png>
23.175 - global_map</a>
23.176 - </th>
23.177 -
23.178 - <th>
23.179 - <a href=./lai/global_Phase_model.png>
23.180 - global_map</a> <br>
23.181 - <a href=./lai/global_Phase_model_vs_ob.png>
23.182 - model_vs_obs</a>
23.183 - </th>
23.184 -
23.185 - <th>5</th>
23.186 - <th>M_lai_Phase</th>
23.187 -</tr>
23.188 -
23.189 -<tr>
23.190 - <th>CO2 <br> Seasonal <br> Cycle</th>
23.191 - <th>Comparison with NOAA observations <br> phase and amplitude</th>
23.192 -
23.193 - <th>--</th>
23.194 -
23.195 - <th>
23.196 - <a href=./co2/score+line_vs_ob.html>
23.197 - model_vs_obs</a>
23.198 - </th>
23.199 -
23.200 - <th >20</th>
23.201 - <th >M_co2</th>
23.202 -</tr>
23.203 -
23.204 -<tr>
23.205 - <th rowspan=2>Carbon<br> Stocks</th>
23.206 -
23.207 - <th>Aboveground live biomass <br> in South America</th>
23.208 -
23.209 - <th>
23.210 - <a href=./biomass/global_ob.png>
23.211 - obs_amazon</a>
23.212 - </th>
23.213 -
23.214 - <th>
23.215 - <a href=./biomass/global_model.png>
23.216 - model_amazon</a> <br>
23.217 - <a href=./biomass/global_model_vs_ob.png>
23.218 - model_vs_obs</a>
23.219 - </th>
23.220 -
23.221 - <th>5</th>
23.222 - <th>M_biomass</th>
23.223 -</tr>
23.224 -
23.225 -<tr>
23.226 -
23.227 - <th>Aboveground live <br> biomass <br> within Amazon Basin <br>(sum within Legal Amazon)</th>
23.228 -
23.229 - <th>
23.230 - <a href=./biomass/mask_ob.png>
23.231 - mask</a> <br>
23.232 - <a href=./biomass/global_mask_ob.png>
23.233 - obs_masked</a> <br>
23.234 - Sum_biomass_ob (Pg C)
23.235 - </th>
23.236 -
23.237 - <th>
23.238 - <a href=./biomass/global_mask_model.png>
23.239 - model_masked</a> <br>
23.240 - <a href=./biomass/global_mask_vs_ob.png>
23.241 - model_vs_obs</a> <br>
23.242 - Sum_biomass_mod (Pg C)
23.243 - </th>
23.244 -
23.245 - <th>5</th>
23.246 - <th>M_biomask</th>
23.247 -</tr>
23.248 -
23.249 -<tr>
23.250 - <th rowspan=4>Energy and<br>C Fluxes<br>from Fluxnet</th>
23.251 -
23.252 - <th>NEE</th>
23.253 -
23.254 - <th rowspan=4>
23.255 - <a href=./fluxnet/line_ob.html>
23.256 - line_plot</a>
23.257 - </th>
23.258 -
23.259 - <th rowspan=4>
23.260 - <a href=./fluxnet/score+line_vs_ob.html>
23.261 - model_vs_obs</a>
23.262 - </th>
23.263 -
23.264 - <th>5</th>
23.265 - <th>M_fluxnet_nee</th>
23.266 -</tr>
23.267 -
23.268 -<tr>
23.269 - <th>Net radiation</th>
23.270 - <th>5</th>
23.271 - <th>M_fluxnet_rad</th>
23.272 -</tr>
23.273 -
23.274 -<tr>
23.275 - <th>Latent heat</th>
23.276 - <th>5</th>
23.277 - <th>M_fluxnet_lh</th>
23.278 -</tr>
23.279 -
23.280 -<tr>
23.281 - <th>Sensible heat</th>
23.282 - <th>5</th>
23.283 - <th>M_fluxnet_sh</th>
23.284 -</tr>
23.285 -
23.286 -<tr>
23.287 - <th rowspan=6>Energy and<br>C Fluxes<br>from Ameriflux</th>
23.288 -
23.289 - <th>NEE</th>
23.290 -
23.291 - <th rowspan=6>
23.292 - <a href=./ameriflux/line_ob.html>
23.293 - line_plot</a>
23.294 - </th>
23.295 -
23.296 - <th rowspan=6>
23.297 - <a href=./ameriflux/score+line_vs_ob.html>
23.298 - model_vs_obs</a> <br>
23.299 - <a href=./ameriflux/tseries_vs_ob.html>
23.300 - timeseries_plot</a>
23.301 - </th>
23.302 -
23.303 - <th>1</th>
23.304 - <th>M_ameriflux_nee</th>
23.305 -</tr>
23.306 -
23.307 -<tr>
23.308 - <th>Shortwave Incoming</th>
23.309 - <th>1</th>
23.310 - <th>M_ameriflux_rad</th>
23.311 -</tr>
23.312 -
23.313 -<tr>
23.314 - <th>Latent heat</th>
23.315 - <th>1</th>
23.316 - <th>M_ameriflux_lh</th>
23.317 -</tr>
23.318 -
23.319 -<tr>
23.320 - <th>Sensible heat</th>
23.321 - <th>1</th>
23.322 - <th>M_ameriflux_sh</th>
23.323 -</tr>
23.324 -
23.325 -<tr>
23.326 - <th>GPP</th>
23.327 - <th>1</th>
23.328 - <th>M_ameriflux_gpp</th>
23.329 -</tr>
23.330 -
23.331 -<tr>
23.332 - <th>ER</th>
23.333 - <th>1</th>
23.334 - <th>M_ameriflux_er</th>
23.335 -</tr>
23.336 -
23.337 -<tr>
23.338 - <th rowspan=4>Transient Dynamics</th>
23.339 - <th>Beta factor for NPP Stimulation from elevated CO2</th>
23.340 - <th>--</th>
23.341 - <th>
23.342 - <a href=./beta/table_station.html>
23.343 - FACE_Site_comparison</a> <br>
23.344 - <a href=./beta/table_biome.html>
23.345 - biome_table</a>
23.346 - </th>
23.347 - <th>3</th>
23.348 - <th>M_beta</th>
23.349 -</tr>
23.350 -
23.351 -<tr>
23.352 - <th>Turnover times and pool sizes</th>
23.353 - <th>--</th>
23.354 - <th>
23.355 - <a href=./turnover/table_Leaf.html>
23.356 - Leaf</a> <br>
23.357 - <a href=./turnover/table_Wood.html>
23.358 - Wood</a> <br>
23.359 - <a href=./turnover/table_Fine_Root.html>
23.360 - Fine_Root</a> <br>
23.361 - <a href=./turnover/table_Litter.html>
23.362 - Litter</a> <br>
23.363 - <a href=./turnover/table_Coarse_Woody_Debris.html>
23.364 - Coarse_Woody_Debris</a> <br>
23.365 - <a href=./turnover/table_Soil.html>
23.366 - Soil</a>
23.367 - </th>
23.368 - <th>3</th>
23.369 - <th>--</th>
23.370 -</tr>
23.371 -
23.372 -<tr>
23.373 - <th>Carbon Sinks<br>(1990-2004)</th>
23.374 - <th>--</th>
23.375 -
23.376 - <th>
23.377 - <a href=./carbon_sink/table_per_m2.html>
23.378 - biome_mean</a> <br>
23.379 - <a href=./carbon_sink/table_per_biome.html>
23.380 - biome_total</a>
23.381 - </th>
23.382 -
23.383 - <th>2</th>
23.384 - <th>--</th>
23.385 -</tr>
23.386 -
23.387 -<tr>
23.388 - <th>Fire Variability</th>
23.389 - <th>--</th>
23.390 -
23.391 - <th>
23.392 - <a href=./fire/global_model_vs_ob.png>
23.393 - global_spatial_comparison</a> <br>
23.394 - <a href=./fire/table_fire.html>
23.395 - temporal_dynamics_(1997-2004)</a>
23.396 - </th>
23.397 -
23.398 - <th>2</th>
23.399 - <th>M_fire</th>
23.400 -</tr>
23.401 -
23.402 -<tr>
23.403 - <th bgcolor=DDDDDD> Total </th>
23.404 - <th colspan=3> </th>
23.405 - <th bgcolor=DDDDDD>100</th>
23.406 - <th bgcolor=DDDDDD>M_total</th>
23.407 -</tr>
23.408 -
23.409 -</table>
23.410 -<!----------------------------------------------------------------------------->
24.1 --- a/all/template_1-model/tablerows.html Mon Jan 26 22:08:20 2009 -0500
24.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
24.3 @@ -1,13 +0,0 @@
24.4 -<!----------------------------------------------------------------------------->
24.5 -<tr>
24.6 -<td align=center rowspan=4 > NPP</td>
24.7 -<td >Site observationn1</td>
24.8 -</tr>
24.9 -<tr>
24.10 -<td test3</td>
24.11 -</tr>
24.12 -<tr>
24.13 -<td >Site observationn2</td>
24.14 -<td >Site observationn3</td>
24.15 -<td >Site observationn4</td>
24.16 -<!----------------------------------------------------------------------------->
25.1 Binary file all/template_1-model_noCO2.tar has changed
26.1 --- a/all/template_1-model_noCO2/index.html Mon Jan 26 22:08:20 2009 -0500
26.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
26.3 @@ -1,16 +0,0 @@
26.4 -<html>
26.5 -<head>
26.6 -<title> Score Sheet for CLAMP </title>
26.7 -<meta name="description" content="score CLAMP">
26.8 -<meta name="keywords" content="score BGC CLAMP CN CASA">
26.9 -<meta name="Authors" content="Jeff Lee">
26.10 -</head>
26.11 -
26.12 -<!----------------------------------------------------------------------------->
26.13 -<h2> <a href=http://www.climatemodeling.org/c-lamp/metrics4.pdf>CLAMP Score Sheet for Biogeochemical Model Evaluation</h2>
26.14 -<!----------------------------------------------------------------------------->
26.15 -
26.16 -<!--#include virtual="table.html"-->
26.17 -
26.18 -<!----------------------------------------------------------------------------->
26.19 -</html>
27.1 --- a/all/template_1-model_noCO2/table.html Mon Jan 26 22:08:20 2009 -0500
27.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
27.3 @@ -1,404 +0,0 @@
27.4 -
27.5 -<!----------------------------------------------------------------------------->
27.6 -<table border=1 cellspacing=0 cellpadding=3 width=100%>
27.7 -<tr>
27.8 - <th bgcolor=DDDDDD width=8% rowspan=2> Metric </th>
27.9 - <th bgcolor=DDDDDD rowspan=2> Metric <br> components</th>
27.10 - <th bgcolor=DDDDDD rowspan=2> Observations & <br> comparison protocol</th>
27.11 - <th bgcolor=DDDDDD rowspan=2> Model<br> model_name </th>
27.12 - <th bgcolor=DDDDDD colspan=2> Score (points) </th>
27.13 -</tr>
27.14 -<tr>
27.15 - <th width=6% bgcolor=DDDDDD> Full </th>
27.16 - <th width=6% bgcolor=DDDDDD> model_name </th>
27.17 -</tr>
27.18 -
27.19 -<tr>
27.20 - <th rowspan=6>NPP</th>
27.21 -
27.22 - <th rowspan=2>EMDI NPP <br> observations</th>
27.23 -
27.24 - <th>
27.25 - <a href=./npp/table_site81_ob.html>
27.26 - Class_A_table</a>
27.27 - </th>
27.28 -
27.29 - <th>
27.30 - <a href=./npp/table_site81_model_vs_ob.html>
27.31 - table</a> <br>
27.32 - <a href=./npp/scatter_model_vs_ob_81.png>
27.33 - scatter_plot</a>
27.34 - </th>
27.35 -
27.36 - <th>2.5</th>
27.37 - <th>M_npp_S81</th>
27.38 -</tr>
27.39 -
27.40 -<tr>
27.41 - <th>
27.42 - <a href=./npp/table_site933_ob.html>
27.43 - Class_B_table</a>
27.44 - </th>
27.45 -
27.46 - <th>
27.47 - <a href=./npp/table_site933_model_vs_ob.html>
27.48 - table</a> <br>
27.49 - <a href=./npp/scatter_model_vs_ob_933.png>
27.50 - scatter_plot</a>
27.51 - </th>
27.52 -
27.53 - <th>2.5</th>
27.54 - <th>M_npp_S933</th>
27.55 -</tr>
27.56 -
27.57 -<tr>
27.58 - <th rowspan=2>EMDI NPP<br>normalized by PPT</th>
27.59 -
27.60 - <th>
27.61 - <a href=./npp/histogram_ob_81.png>
27.62 - Class_A_histogram</a>
27.63 - </th>
27.64 -
27.65 - <th>
27.66 - <a href=./npp/histogram_model_vs_ob_81.png>
27.67 - Class_A_histogram</a>
27.68 - </th>
27.69 -
27.70 - <th>2.5</th>
27.71 - <th>M_npp_H81</th>
27.72 -</tr>
27.73 -
27.74 -<tr>
27.75 - <th>
27.76 - <a href=./npp/histogram_ob_933.png>
27.77 - Class_B_histogram</a>
27.78 - </th>
27.79 -
27.80 - <th>
27.81 - <a href=./npp/histogram_model_vs_ob_933.png>
27.82 - Class_B_histogram</a>
27.83 - </th>
27.84 -
27.85 - <th>2.5</th>
27.86 - <th>M_npp_H933</th>
27.87 -</tr>
27.88 -
27.89 -<tr>
27.90 - <th>Correlation with MODIS obs.</th>
27.91 -
27.92 - <th>
27.93 - <a href=./npp/global_ob.png>
27.94 - global_map</a>
27.95 - </th>
27.96 -
27.97 - <th>
27.98 - <a href=./npp/global_model.png>
27.99 - model_map</a> <br>
27.100 - <a href=./npp/global_model_vs_ob.png>
27.101 - model_vs_obs</a>
27.102 - </th>
27.103 -
27.104 - <th>5</th>
27.105 - <th>M_npp_G</th>
27.106 -</tr>
27.107 -
27.108 -<tr>
27.109 - <th>Correlation with MODIS-zonal mean</th>
27.110 -
27.111 - <th>
27.112 - <a href=./npp/zonal_ob.png>
27.113 - zonal_mean_obs</a>
27.114 - </th>
27.115 -
27.116 - <th>
27.117 - <a href=./npp/zonal_model_vs_ob.png>
27.118 - zonal_mean <br>model_vs_obs_plot</a>
27.119 - </th>
27.120 -
27.121 - <th>5</th>
27.122 - <th>M_npp_Z</th>
27.123 -</tr>
27.124 -
27.125 -<tr>
27.126 - <th rowspan=3>LAI</th>
27.127 -
27.128 - <th>MODIS Mean</th>
27.129 -
27.130 - <th>
27.131 - <a href=./lai/global_class_ob.png>
27.132 - land_class_obs</a> <br>
27.133 - <a href=./lai/global_class_model.png>
27.134 - land_class_model</a> <br>
27.135 - <a href=./lai/global_Mean_ob.png>
27.136 - global_map</a>
27.137 - </th>
27.138 -
27.139 - <th>
27.140 - <a href=./lai/table_model_vs_ob.html>
27.141 - model_vs_obs_table</a> <br>
27.142 - <a href=./lai/global_Mean_model.png>
27.143 - global_map</a> <br>
27.144 - <a href=./lai/global_Mean_model_vs_ob.png>
27.145 - model_vs_obs</a>
27.146 - </th>
27.147 -
27.148 - <th>5</th>
27.149 - <th>M_lai_Mean</th>
27.150 -</tr>
27.151 -
27.152 -<tr>
27.153 - <th>MODIS Maximum</th>
27.154 -
27.155 - <th>
27.156 - <a href=./lai/global_Max_ob.png>
27.157 - global_map</a>
27.158 - </th>
27.159 -
27.160 - <th>
27.161 - <a href=./lai/global_Max_model.png>
27.162 - global_map</a> <br>
27.163 - <a href=./lai/global_Max_model_vs_ob.png>
27.164 - model_vs_obs</a>
27.165 - </th>
27.166 -
27.167 - <th>5</th>
27.168 - <th>M_lai_Max</th>
27.169 -</tr>
27.170 -<tr>
27.171 - <th>MODIS Phase</th>
27.172 -
27.173 - <th>
27.174 - <a href=./lai/global_Phase_ob.png>
27.175 - global_map</a>
27.176 - </th>
27.177 -
27.178 - <th>
27.179 - <a href=./lai/global_Phase_model.png>
27.180 - global_map</a> <br>
27.181 - <a href=./lai/global_Phase_model_vs_ob.png>
27.182 - model_vs_obs</a>
27.183 - </th>
27.184 -
27.185 - <th>5</th>
27.186 - <th>M_lai_Phase</th>
27.187 -</tr>
27.188 -
27.189 -<tr>
27.190 - <th>CO2 <br> Seasonal <br> Cycle</th>
27.191 - <th>Comparison with NOAA observations <br> phase and amplitude</th>
27.192 -
27.193 - <th>--</th>
27.194 -
27.195 - <th>--</th>
27.196 -
27.197 - <th>20</th>
27.198 - <th>--</th>
27.199 -</tr>
27.200 -
27.201 -<tr>
27.202 - <th rowspan=2>Carbon<br> Stocks</th>
27.203 -
27.204 - <th>Aboveground live biomass <br> in South America</th>
27.205 -
27.206 - <th>
27.207 - <a href=./biomass/global_ob.png>
27.208 - obs_amazon</a>
27.209 - </th>
27.210 -
27.211 - <th>
27.212 - <a href=./biomass/global_model.png>
27.213 - model_amazon</a> <br>
27.214 - <a href=./biomass/global_model_vs_ob.png>
27.215 - model_vs_obs</a>
27.216 - </th>
27.217 -
27.218 - <th>5</th>
27.219 - <th>M_biomass</th>
27.220 -</tr>
27.221 -
27.222 -<tr>
27.223 -
27.224 - <th>Aboveground live <br> biomass <br> within Amazon Basin <br>(sum within Legal Amazon)</th>
27.225 -
27.226 - <th>
27.227 - <a href=./biomass/mask_ob.png>
27.228 - mask</a> <br>
27.229 - <a href=./biomass/global_mask_ob.png>
27.230 - obs_masked</a> <br>
27.231 - Sum_biomass_ob (Pg C)
27.232 - </th>
27.233 -
27.234 - <th>
27.235 - <a href=./biomass/global_mask_model.png>
27.236 - model_masked</a> <br>
27.237 - <a href=./biomass/global_mask_vs_ob.png>
27.238 - model_vs_obs</a> <br>
27.239 - Sum_biomass_mod (Pg C)
27.240 - </th>
27.241 -
27.242 - <th>5</th>
27.243 - <th>M_biomask</th>
27.244 -</tr>
27.245 -
27.246 -<tr>
27.247 - <th rowspan=4>Energy and<br>C Fluxes<br>from Fluxnet</th>
27.248 -
27.249 - <th>NEE</th>
27.250 -
27.251 - <th rowspan=4>
27.252 - <a href=./fluxnet/line_ob.html>
27.253 - line_plot</a>
27.254 - </th>
27.255 -
27.256 - <th rowspan=4>
27.257 - <a href=./fluxnet/score+line_vs_ob.html>
27.258 - model_vs_obs</a>
27.259 - </th>
27.260 -
27.261 - <th>5</th>
27.262 - <th>M_fluxnet_nee</th>
27.263 -</tr>
27.264 -
27.265 -<tr>
27.266 - <th>Net radiation</th>
27.267 - <th>5</th>
27.268 - <th>M_fluxnet_rad</th>
27.269 -</tr>
27.270 -
27.271 -<tr>
27.272 - <th>Latent heat</th>
27.273 - <th>5</th>
27.274 - <th>M_fluxnet_lh</th>
27.275 -</tr>
27.276 -
27.277 -<tr>
27.278 - <th>Sensible heat</th>
27.279 - <th>5</th>
27.280 - <th>M_fluxnet_sh</th>
27.281 -</tr>
27.282 -
27.283 -<tr>
27.284 - <th rowspan=6>Energy and<br>C Fluxes<br>from Ameriflux</th>
27.285 -
27.286 - <th>NEE</th>
27.287 -
27.288 - <th rowspan=6>
27.289 - <a href=./ameriflux/line_ob.html>
27.290 - line_plot</a>
27.291 - </th>
27.292 -
27.293 - <th rowspan=6>
27.294 - <a href=./ameriflux/score+line_vs_ob.html>
27.295 - model_vs_obs</a> <br>
27.296 - <a href=./ameriflux/tseries_vs_ob.html>
27.297 - timeseries_plot</a>
27.298 - </th>
27.299 -
27.300 - <th>1</th>
27.301 - <th>M_ameriflux_nee</th>
27.302 -</tr>
27.303 -
27.304 -<tr>
27.305 - <th>Shortwave Incoming</th>
27.306 - <th>1</th>
27.307 - <th>M_ameriflux_rad</th>
27.308 -</tr>
27.309 -
27.310 -<tr>
27.311 - <th>Latent heat</th>
27.312 - <th>1</th>
27.313 - <th>M_ameriflux_lh</th>
27.314 -</tr>
27.315 -
27.316 -<tr>
27.317 - <th>Sensible heat</th>
27.318 - <th>1</th>
27.319 - <th>M_ameriflux_sh</th>
27.320 -</tr>
27.321 -
27.322 -<tr>
27.323 - <th>GPP</th>
27.324 - <th>1</th>
27.325 - <th>M_ameriflux_gpp</th>
27.326 -</tr>
27.327 -
27.328 -<tr>
27.329 - <th>ER</th>
27.330 - <th>1</th>
27.331 - <th>M_ameriflux_er</th>
27.332 -</tr>
27.333 -
27.334 -<tr>
27.335 - <th rowspan=4>Transient Dynamics</th>
27.336 - <th>Beta factor for NPP Stimulation from elevated CO2</th>
27.337 - <th>--</th>
27.338 - <th>
27.339 - <a href=./beta/table_station.html>
27.340 - FACE_Site_comparison</a> <br>
27.341 - <a href=./beta/table_biome.html>
27.342 - biome_table</a>
27.343 - </th>
27.344 - <th>3</th>
27.345 - <th>M_beta</th>
27.346 -</tr>
27.347 -
27.348 -<tr>
27.349 - <th>Turnover times and pool sizes</th>
27.350 - <th>--</th>
27.351 - <th>
27.352 - <a href=./turnover/table_Leaf.html>
27.353 - Leaf</a> <br>
27.354 - <a href=./turnover/table_Wood.html>
27.355 - Wood</a> <br>
27.356 - <a href=./turnover/table_Fine_Root.html>
27.357 - Fine_Root</a> <br>
27.358 - <a href=./turnover/table_Litter.html>
27.359 - Litter</a> <br>
27.360 - <a href=./turnover/table_Coarse_Woody_Debris.html>
27.361 - Coarse_Woody_Debris</a> <br>
27.362 - <a href=./turnover/table_Soil.html>
27.363 - Soil</a>
27.364 - </th>
27.365 - <th>3</th>
27.366 - <th>--</th>
27.367 -</tr>
27.368 -
27.369 -<tr>
27.370 - <th>Carbon Sinks<br>(1990-2004)</th>
27.371 - <th>--</th>
27.372 -
27.373 - <th>
27.374 - <a href=./carbon_sink/table_per_m2.html>
27.375 - biome_mean</a> <br>
27.376 - <a href=./carbon_sink/table_per_biome.html>
27.377 - biome_total</a>
27.378 - </th>
27.379 -
27.380 - <th>2</th>
27.381 - <th>--</th>
27.382 -</tr>
27.383 -
27.384 -<tr>
27.385 - <th>Fire Variability</th>
27.386 - <th>--</th>
27.387 -
27.388 - <th>
27.389 - <a href=./fire/global_model_vs_ob.png>
27.390 - global_spatial_comparison</a> <br>
27.391 - <a href=./fire/table_fire.html>
27.392 - temporal_dynamics_(1997-2004)</a>
27.393 - </th>
27.394 -
27.395 - <th>2</th>
27.396 - <th>M_fire</th>
27.397 -</tr>
27.398 -
27.399 -<tr>
27.400 - <th bgcolor=DDDDDD> Total </th>
27.401 - <th colspan=3> </th>
27.402 - <th bgcolor=DDDDDD>100</th>
27.403 - <th bgcolor=DDDDDD>M_total</th>
27.404 -</tr>
27.405 -
27.406 -</table>
27.407 -<!----------------------------------------------------------------------------->
28.1 --- a/all/template_1-model_noCO2/tablerows.html Mon Jan 26 22:08:20 2009 -0500
28.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
28.3 @@ -1,13 +0,0 @@
28.4 -<!----------------------------------------------------------------------------->
28.5 -<tr>
28.6 -<td align=center rowspan=4 > NPP</td>
28.7 -<td >Site observationn1</td>
28.8 -</tr>
28.9 -<tr>
28.10 -<td test3</td>
28.11 -</tr>
28.12 -<tr>
28.13 -<td >Site observationn2</td>
28.14 -<td >Site observationn3</td>
28.15 -<td >Site observationn4</td>
28.16 -<!----------------------------------------------------------------------------->
29.1 Binary file all/template_2-model.1fire.tar has changed
30.1 Binary file all/template_2-model.2fire.tar has changed
31.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
31.2 +++ b/all/template_2-model.tar Thu Mar 26 14:02:21 2009 -0400
31.3 @@ -0,0 +1,1 @@
31.4 +template_2-model.1fire.tar
31.5 \ No newline at end of file
32.1 --- a/all/template_2-model/index.html Mon Jan 26 22:08:20 2009 -0500
32.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
32.3 @@ -1,16 +0,0 @@
32.4 -<html>
32.5 -<head>
32.6 -<title> Score Sheet for CLAMP </title>
32.7 -<meta name="description" content="score CLAMP">
32.8 -<meta name="keywords" content="score BGC CLAMP CN CASA">
32.9 -<meta name="Authors" content="Jeff Lee">
32.10 -</head>
32.11 -
32.12 -<!----------------------------------------------------------------------------->
32.13 -<h2> <a href=http://www.climatemodeling.org/c-lamp/metrics4.pdf>CLAMP Score Sheet for Biogeochemical Model Evaluation</h2>
32.14 -<!----------------------------------------------------------------------------->
32.15 -
32.16 -<!--#include virtual="table.html"-->
32.17 -
32.18 -<!----------------------------------------------------------------------------->
32.19 -</html>
33.1 --- a/all/template_2-model/table.html Mon Jan 26 22:08:20 2009 -0500
33.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
33.3 @@ -1,559 +0,0 @@
33.4 -
33.5 -<!----------------------------------------------------------------------------->
33.6 -<table border=1 cellspacing=0 cellpadding=3 width=100%>
33.7 -<tr>
33.8 - <th bgcolor=DDDDDD width=8% rowspan=2> Metric </th>
33.9 - <th bgcolor=DDDDDD rowspan=2> Metric <br> components</th>
33.10 - <th bgcolor=DDDDDD rowspan=2> Observations & <br> comparison protocol</th>
33.11 - <th bgcolor=DDDDDD rowspan=2> Model<br> model1 </th>
33.12 - <th bgcolor=DDDDDD rowspan=2> Model<br> model2 </th>
33.13 - <th bgcolor=DDDDDD colspan=3> Score (points) </th>
33.14 -</tr>
33.15 -<tr>
33.16 - <th width=6% bgcolor=DDDDDD> Full </th>
33.17 - <th width=6% bgcolor=DDDDDD> model1 </th>
33.18 - <th width=6% bgcolor=DDDDDD> model2 </th>
33.19 -</tr>
33.20 -
33.21 -<tr>
33.22 - <th rowspan=6>NPP</th>
33.23 -
33.24 - <th rowspan=2>EMDI NPP <br> observations</th>
33.25 -
33.26 - <th>
33.27 - <a href=../model1/npp/table_site81_ob.html>
33.28 - Class_A_table</a>
33.29 - </th>
33.30 -
33.31 - <th>
33.32 - <a href=../model1/npp/table_site81_model_vs_ob.html>
33.33 - table</a> <br>
33.34 - <a href=../model1/npp/scatter_model_vs_ob_81.png>
33.35 - scatter_plot</a>
33.36 - </th>
33.37 -
33.38 - <th>
33.39 - <a href=../model2/npp/table_site81_model_vs_ob.html>
33.40 - table</a> <br>
33.41 - <a href=../model2/npp/scatter_model_vs_ob_81.png>
33.42 - scatter_plot</a>
33.43 - </th>
33.44 -
33.45 - <th>2.5</th>
33.46 - <th>M_npp_S81</th>
33.47 - <th>M_npp_S81</th>
33.48 -</tr>
33.49 -
33.50 -<tr>
33.51 - <th>
33.52 - <a href=../model1/npp/table_site933_ob.html>
33.53 - Class_B_table</a>
33.54 - </th>
33.55 -
33.56 - <th>
33.57 - <a href=../model1/npp/table_site933_model_vs_ob.html>
33.58 - table</a> <br>
33.59 - <a href=../model1/npp/scatter_model_vs_ob_933.png>
33.60 - scatter_plot</a>
33.61 - </th>
33.62 -
33.63 - <th>
33.64 - <a href=../model2/npp/table_site933_model_vs_ob.html>
33.65 - table</a> <br>
33.66 - <a href=../model2/npp/scatter_model_vs_ob_933.png>
33.67 - scatter_plot</a>
33.68 - </th>
33.69 -
33.70 - <th>2.5</th>
33.71 - <th>M_npp_S933</th>
33.72 - <th>M_npp_S933</th>
33.73 -</tr>
33.74 -
33.75 -<tr>
33.76 - <th rowspan=2>EMDI NPP <br> normalized by PPT</th>
33.77 -
33.78 - <th>
33.79 - <a href=../model1/npp/histogram_ob_81.png>
33.80 - Class_A_histogram</a>
33.81 - </th>
33.82 -
33.83 - <th>
33.84 - <a href=../model1/npp/histogram_model_vs_ob_81.png>
33.85 - Class_A_histogram</a>
33.86 - </th>
33.87 -
33.88 - <th>
33.89 - <a href=../model2/npp/histogram_model_vs_ob_81.png>
33.90 - Class_A_histogram</a>
33.91 - </th>
33.92 -
33.93 - <th>2.5</th>
33.94 - <th>M_npp_H81</th>
33.95 - <th>M_npp_H81</th>
33.96 -</tr>
33.97 -
33.98 -<tr>
33.99 - <th>
33.100 - <a href=../model1/npp/histogram_ob_933.png>
33.101 - Class_B_histogram</a>
33.102 - </th>
33.103 -
33.104 - <th>
33.105 - <a href=../model1/npp/histogram_model_vs_ob_933.png>
33.106 - Class_B_histogram</a>
33.107 - </th>
33.108 -
33.109 - <th>
33.110 - <a href=../model2/npp/histogram_model_vs_ob_933.png>
33.111 - Class_B_histogram</a>
33.112 - </th>
33.113 -
33.114 - <th>2.5</th>
33.115 - <th>M_npp_H933</th>
33.116 - <th>M_npp_H933</th>
33.117 -</tr>
33.118 -
33.119 -<tr>
33.120 - <th>Correlation with MODIS obs.</th>
33.121 -
33.122 - <th>
33.123 - <a href=../model1/npp/global_ob.png>
33.124 - global_map</a>
33.125 - </th>
33.126 -
33.127 - <th>
33.128 - <a href=../model1/npp/global_model.png>
33.129 - model_map</a> <br>
33.130 - <a href=../model1/npp/global_model_vs_ob.png>
33.131 - model_vs_obs</a>
33.132 - </th>
33.133 -
33.134 - <th>
33.135 - <a href=../model2/npp/global_model.png>
33.136 - model_map</a> <br>
33.137 - <a href=../model2/npp/global_model_vs_ob.png>
33.138 - model_vs_obs</a>
33.139 - </th>
33.140 -
33.141 - <th>5</th>
33.142 - <th>M_npp_G</th>
33.143 - <th>M_npp_G</th>
33.144 -</tr>
33.145 -
33.146 -<tr>
33.147 - <th>Correlation with MODIS-zonal mean</th>
33.148 -
33.149 - <th>
33.150 - <a href=../model1/npp/zonal_ob.png>
33.151 - zonal_mean_obs</a>
33.152 - </th>
33.153 -
33.154 - <th>
33.155 - <a href=../model1/npp/zonal_model_vs_ob.png>
33.156 - zonal_mean <br> model_vs_obs_plot</a>
33.157 - </th>
33.158 -
33.159 - <th>
33.160 - <a href=../model2/npp/zonal_model_vs_ob.png>
33.161 - zonal_mean <br> model_vs_obs_plot</a>
33.162 - </th>
33.163 -
33.164 - <th>5</th>
33.165 - <th>M_npp_Z</th>
33.166 - <th>M_npp_Z</th>
33.167 -</tr>
33.168 -
33.169 -<tr>
33.170 - <th rowspan=3>LAI</th>
33.171 -
33.172 - <th>MODIS Mean</th>
33.173 -
33.174 - <th>
33.175 - <a href=../model1/lai/global_class_ob.png>
33.176 - land_class_obs</a> <br>
33.177 - <a href=../model1/lai/global_class_model.png>
33.178 - land_class_model</a> <br>
33.179 - <a href=../model1/lai/global_Mean_ob.png>
33.180 - global_map</a>
33.181 - </th>
33.182 -
33.183 - <th>
33.184 - <a href=../model1/lai/table_model_vs_ob.html>
33.185 - model_vs_obs_table</a> <br>
33.186 - <a href=../model1/lai/global_Mean_model.png>
33.187 - global_map</a> <br>
33.188 - <a href=../model1/lai/global_Mean_model_vs_ob.png>
33.189 - model_vs_obs</a>
33.190 - </th>
33.191 -
33.192 - <th>
33.193 - <a href=../model2/lai/table_model_vs_ob.html>
33.194 - model_vs_obs_table</a> <br>
33.195 - <a href=../model2/lai/global_Mean_model.png>
33.196 - global_map</a> <br>
33.197 - <a href=../model2/lai/global_Mean_model_vs_ob.png>
33.198 - model_vs_obs</a>
33.199 - </th>
33.200 -
33.201 - <th>5</th>
33.202 - <th>M_lai_Mean</th>
33.203 - <th>M_lai_Mean</th>
33.204 -</tr>
33.205 -
33.206 -<tr>
33.207 - <th>MODIS Maximum</th>
33.208 -
33.209 - <th>
33.210 - <a href=../model1/lai/global_Max_ob.png>
33.211 - global_map</a>
33.212 - </th>
33.213 -
33.214 - <th>
33.215 - <a href=../model1/lai/global_Max_model.png>
33.216 - global_map</a> <br>
33.217 - <a href=../model1/lai/global_Max_model_vs_ob.png>
33.218 - model_vs_obs</a>
33.219 - </th>
33.220 -
33.221 - <th>
33.222 - <a href=../model2/lai/global_Max_model.png>
33.223 - global_map</a> <br>
33.224 - <a href=../model2/lai/global_Max_model_vs_ob.png>
33.225 - model_vs_obs</a>
33.226 - </th>
33.227 -
33.228 - <th>5</th>
33.229 - <th>M_lai_Max</th>
33.230 - <th>M_lai_Max</th>
33.231 -</tr>
33.232 -<tr>
33.233 - <th>MODIS Phase</th>
33.234 -
33.235 - <th>
33.236 - <a href=../model1/lai/global_Phase_ob.png>
33.237 - global_map</a>
33.238 - </th>
33.239 -
33.240 - <th>
33.241 - <a href=../model1/lai/global_Phase_model.png>
33.242 - global_map</a> <br>
33.243 - <a href=../model1/lai/global_Phase_model_vs_ob.png>
33.244 - model_vs_obs</a>
33.245 - </th>
33.246 -
33.247 - <th>
33.248 - <a href=../model2/lai/global_Phase_model.png>
33.249 - global_map</a> <br>
33.250 - <a href=../model2/lai/global_Phase_model_vs_ob.png>
33.251 - model_vs_obs</a>
33.252 - </th>
33.253 -
33.254 - <th>5</th>
33.255 - <th>M_lai_Phase</th>
33.256 - <th>M_lai_Phase</th>
33.257 -</tr>
33.258 -
33.259 -<tr>
33.260 - <th>CO2<br> Seasonal<br> Cycle</th>
33.261 - <th>Comparison with NOAA observations <br> phase and amplitude</th>
33.262 - <th>--</th>
33.263 -
33.264 - <th>
33.265 - <a href=../model1/co2/score+line_vs_ob.html>
33.266 - model_vs_obs</a>
33.267 - </th>
33.268 -
33.269 - <th>
33.270 - <a href=../model2/co2/score+line_vs_ob.html>
33.271 - model_vs_obs</a>
33.272 - </th>
33.273 -
33.274 - <th>20</th>
33.275 - <th>M_co2</th>
33.276 - <th>M_co2</th>
33.277 -</tr>
33.278 -
33.279 -<tr>
33.280 - <th rowspan=2>Carbon<br> Stocks</th>
33.281 -
33.282 - <th>Aboveground live biomass <br> in South America</th>
33.283 -
33.284 - <th>
33.285 - <a href=../model1/biomass/global_ob.png>
33.286 - obs_amazon</a>
33.287 - </th>
33.288 -
33.289 - <th>
33.290 - <a href=../model1/biomass/global_model.png>
33.291 - model_amazon</a> <br>
33.292 - <a href=../model1/biomass/global_model_vs_ob.png>
33.293 - model_vs_obs</a>
33.294 - </th>
33.295 -
33.296 - <th>
33.297 - <a href=../model2/biomass/global_model.png>
33.298 - amazon_map</a> <br>
33.299 - <a href=../model2/biomass/global_model_vs_ob.png>
33.300 - model_vs_obs</a>
33.301 - </th>
33.302 -
33.303 - <th>5</th>
33.304 - <th>M_biomass</th>
33.305 - <th>M_biomass</th>
33.306 -</tr>
33.307 -
33.308 -<tr>
33.309 - <th>Aboveground live <br> biomass <br> within Amazon Basin <br>(sum within Legal Amazon)</th>
33.310 - <th>
33.311 - <a href=../model1/biomass/mask_ob.png>
33.312 - mask</a> <br>
33.313 - <a href=../model1/biomass/global_mask_ob.png>
33.314 - obs_masked</a> <br>
33.315 - Sum_biomass_ob (Pg C)
33.316 - </th>
33.317 -
33.318 - <th>
33.319 - <a href=../model1/biomass/global_mask_model.png>
33.320 - model_masked</a> <br>
33.321 - <a href=../model1/biomass/global_mask_vs_ob.png>
33.322 - model_vs_obs</a> <br>
33.323 - Sum_biomass_mod (Pg C)
33.324 - </th>
33.325 -
33.326 - <th>
33.327 - <a href=../model2/biomass/global_mask_model.png>
33.328 - model_masked</a> <br>
33.329 - <a href=../model2/biomass/global_mask_vs_ob.png>
33.330 - model_vs_obs</a> <br>
33.331 - Sum_biomass_mod (Pg C)
33.332 - </th>
33.333 -
33.334 - <th>5</th>
33.335 - <th>M_biomask</th>
33.336 - <th>M_biomask</th>
33.337 -</tr>
33.338 -
33.339 -<tr>
33.340 - <th rowspan=4>Energy and<br>C Fluxes<br>from Fluxnet</th>
33.341 -
33.342 - <th>NEE</th>
33.343 -
33.344 - <th rowspan=4>
33.345 - <a href=../model1/fluxnet/line_ob.html>
33.346 - line_plot</a>
33.347 - </th>
33.348 -
33.349 - <th rowspan=4>
33.350 - <a href=../model1/fluxnet/score+line_vs_ob.html>
33.351 - model_vs_obs</a>
33.352 - </th>
33.353 -
33.354 - <th rowspan=4>
33.355 - <a href=../model2/fluxnet/score+line_vs_ob.html>
33.356 - model_vs_obs</a>
33.357 - </th>
33.358 -
33.359 - <th>5</th>
33.360 - <th>M_fluxnet_nee</th>
33.361 - <th>M_fluxnet_nee</th>
33.362 -</tr>
33.363 -
33.364 -<tr>
33.365 - <th>Net radiation</th>
33.366 - <th>5</th>
33.367 - <th>M_fluxnet_rad</th>
33.368 - <th>M_fluxnet_rad</th>
33.369 -</tr>
33.370 -
33.371 -<tr>
33.372 - <th>Latent heat</th>
33.373 - <th>5</th>
33.374 - <th>M_fluxnet_lh</th>
33.375 - <th>M_fluxnet_lh</th>
33.376 -</tr>
33.377 -
33.378 -<tr>
33.379 - <th>Sensible heat</th>
33.380 - <th>5</th>
33.381 - <th>M_fluxnet_sh</th>
33.382 - <th>M_fluxnet_sh</th>
33.383 -</tr>
33.384 -
33.385 -<tr>
33.386 - <th rowspan=6>Energy and<br>C Fluxes<br>from Ameriflux</th>
33.387 -
33.388 - <th>NEE</th>
33.389 -
33.390 - <th rowspan=6>
33.391 - <a href=../model1/ameriflux/line_ob.html>
33.392 - line_plot</a>
33.393 - </th>
33.394 -
33.395 - <th rowspan=6>
33.396 - <a href=../model1/ameriflux/score+line_vs_ob.html>
33.397 - model_vs_obs</a> <br>
33.398 - <a href=../model1/ameriflux/tseries_vs_ob.html>
33.399 - timeseries_plot</a>
33.400 - </th>
33.401 -
33.402 - <th rowspan=6>
33.403 - <a href=../model2/ameriflux/score+line_vs_ob.html>
33.404 - model_vs_obs</a> <br>
33.405 - <a href=../model2/ameriflux/tseries_vs_ob.html>
33.406 - timeseries_plot</a>
33.407 - </th>
33.408 -
33.409 - <th>1</th>
33.410 - <th>M_ameriflux_nee</th>
33.411 - <th>M_ameriflux_nee</th>
33.412 -</tr>
33.413 -
33.414 -<tr>
33.415 - <th>Shortwave Incoming</th>
33.416 - <th>1</th>
33.417 - <th>M_ameriflux_rad</th>
33.418 - <th>M_ameriflux_rad</th>
33.419 -</tr>
33.420 -
33.421 -<tr>
33.422 - <th>Latent heat</th>
33.423 - <th>1</th>
33.424 - <th>M_ameriflux_lh</th>
33.425 - <th>M_ameriflux_lh</th>
33.426 -</tr>
33.427 -
33.428 -<tr>
33.429 - <th>Sensible heat</th>
33.430 - <th>1</th>
33.431 - <th>M_ameriflux_sh</th>
33.432 - <th>M_ameriflux_sh</th>
33.433 -</tr>
33.434 -
33.435 -<tr>
33.436 - <th>GPP</th>
33.437 - <th>1</th>
33.438 - <th>M_ameriflux_gpp</th>
33.439 - <th>M_ameriflux_gpp</th>
33.440 -</tr>
33.441 -
33.442 -<tr>
33.443 - <th>ER</th>
33.444 - <th>1</th>
33.445 - <th>M_ameriflux_er</th>
33.446 - <th>M_ameriflux_er</th>
33.447 -</tr>
33.448 -
33.449 -<tr>
33.450 - <th rowspan=4>Transient Dynamics</th>
33.451 - <th>Beta factor for NPP Stimulation from elevated CO2</th>
33.452 - <th>--</th>
33.453 -
33.454 - <th>
33.455 - <a href=../model1/beta/table_station.html>
33.456 - FACE_Site_comparison</a> <br>
33.457 - <a href=../model1/beta/table_biome.html>
33.458 - biome_table</a>
33.459 - </th>
33.460 -
33.461 - <th>
33.462 - <a href=../model2/beta/table_station.html>
33.463 - FACE_Site_comparison</a> <br>
33.464 - <a href=../model2/beta/table_biome.html>
33.465 - biome_table</a>
33.466 - </th>
33.467 -
33.468 - <th>3</th>
33.469 - <th>M_beta</th>
33.470 - <th>M_beta</th>
33.471 -</tr>
33.472 -
33.473 -<tr>
33.474 - <th>Turnover times and pool sizes</th>
33.475 - <th>--</th>
33.476 -
33.477 - <th>
33.478 - <a href=../model1/turnover/table_Leaf.html>
33.479 - Leaf</a> <br>
33.480 - <a href=../model1/turnover/table_Wood.html>
33.481 - Wood</a> <br>
33.482 - <a href=../model1/turnover/table_Fine_Root.html>
33.483 - Fine_Root</a> <br>
33.484 - <a href=../model1/turnover/table_Litter.html>
33.485 - Litter</a> <br>
33.486 - <a href=../model1/turnover/table_Coarse_Woody_Debris.html>
33.487 - Coarse_Woody_Debris</a> <br>
33.488 - <a href=../model1/turnover/table_Soil.html>
33.489 - Soil</a>
33.490 - </th>
33.491 -
33.492 - <th>
33.493 - <a href=../model2/turnover/table_Leaf.html>
33.494 - Leaf</a> <br>
33.495 - <a href=../model2/turnover/table_Wood.html>
33.496 - Wood</a> <br>
33.497 - <a href=../model2/turnover/table_Fine_Root.html>
33.498 - Fine_Root</a> <br>
33.499 - <a href=../model2/turnover/table_Litter.html>
33.500 - Litter</a> <br>
33.501 - <a href=../model2/turnover/table_Coarse_Woody_Debris.html>
33.502 - Coarse_Woody_Debris</a> <br>
33.503 - <a href=../model2/turnover/table_Soil.html>
33.504 - Soil</a>
33.505 - </th>
33.506 -
33.507 - <th>3</th>
33.508 - <th>--</th>
33.509 - <th>--</th>
33.510 -</tr>
33.511 -
33.512 -<tr>
33.513 - <th>Carbon Sinks<br>(1990-2004)</th>
33.514 - <th>--</th>
33.515 -
33.516 - <th>
33.517 - <a href=../model1/carbon_sink/table_per_m2.html>
33.518 - biome_mean</a> <br>
33.519 - <a href=../model1/carbon_sink/table_per_biome.html>
33.520 - biome_total</a>
33.521 - </th>
33.522 -
33.523 - <th>
33.524 - <a href=../model2/carbon_sink/table_per_m2.html>
33.525 - biome_mean</a> <br>
33.526 - <a href=../model2/carbon_sink/table_per_biome.html>
33.527 - biome_total</a>
33.528 - </th>
33.529 -
33.530 - <th>2</th>
33.531 - <th>--</th>
33.532 - <th>--</th>
33.533 -</tr>
33.534 -
33.535 -<tr>
33.536 - <th>Fire Variability</th>
33.537 - <th>--</th>
33.538 -
33.539 - <th>
33.540 - <a href=../model1/fire/global_model_vs_ob.png>
33.541 - global_spatial_comparison</a> <br>
33.542 - <a href=../model1/fire/table_fire.html>
33.543 - temporal_dynamics_(1997-2004)</a>
33.544 - </th>
33.545 -
33.546 - <th>--</th>
33.547 -
33.548 - <th>2</th>
33.549 - <th>M_fire</th>
33.550 - <th>--</th>
33.551 -</tr>
33.552 -
33.553 -<tr>
33.554 - <th bgcolor=DDDDDD> Total </th>
33.555 - <th colspan=4> </th>
33.556 - <th bgcolor=DDDDDD>100</th>
33.557 - <th bgcolor=DDDDDD>M_total</th>
33.558 - <th bgcolor=DDDDDD>M_total</th>
33.559 -</tr>
33.560 -
33.561 -</table>
33.562 -<!----------------------------------------------------------------------------->
34.1 --- a/all/template_2-model/tablerows.html Mon Jan 26 22:08:20 2009 -0500
34.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
34.3 @@ -1,13 +0,0 @@
34.4 -<!----------------------------------------------------------------------------->
34.5 -<tr>
34.6 -<td align=center rowspan=4 > NPP</td>
34.7 -<td >Site observationn1</td>
34.8 -</tr>
34.9 -<tr>
34.10 -<td test3</td>
34.11 -</tr>
34.12 -<tr>
34.13 -<td >Site observationn2</td>
34.14 -<td >Site observationn3</td>
34.15 -<td >Site observationn4</td>
34.16 -<!----------------------------------------------------------------------------->
35.1 Binary file all/template_2-model_noCO2.tar has changed
36.1 --- a/all/template_2-model_noCO2/index.html Mon Jan 26 22:08:20 2009 -0500
36.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
36.3 @@ -1,16 +0,0 @@
36.4 -<html>
36.5 -<head>
36.6 -<title> Score Sheet for CLAMP </title>
36.7 -<meta name="description" content="score CLAMP">
36.8 -<meta name="keywords" content="score BGC CLAMP CN CASA">
36.9 -<meta name="Authors" content="Jeff Lee">
36.10 -</head>
36.11 -
36.12 -<!----------------------------------------------------------------------------->
36.13 -<h2> <a href=http://www.climatemodeling.org/c-lamp/metrics4.pdf>CLAMP Score Sheet for Biogeochemical Model Evaluation</h2>
36.14 -<!----------------------------------------------------------------------------->
36.15 -
36.16 -<!--#include virtual="table.html"-->
36.17 -
36.18 -<!----------------------------------------------------------------------------->
36.19 -</html>
37.1 --- a/all/template_2-model_noCO2/table.html Mon Jan 26 22:08:20 2009 -0500
37.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
37.3 @@ -1,552 +0,0 @@
37.4 -
37.5 -<!----------------------------------------------------------------------------->
37.6 -<table border=1 cellspacing=0 cellpadding=3 width=100%>
37.7 -<tr>
37.8 - <th bgcolor=DDDDDD width=8% rowspan=2> Metric </th>
37.9 - <th bgcolor=DDDDDD rowspan=2> Metric <br> components</th>
37.10 - <th bgcolor=DDDDDD rowspan=2> Observations & <br> comparison protocol</th>
37.11 - <th bgcolor=DDDDDD rowspan=2> Model<br> model1 </th>
37.12 - <th bgcolor=DDDDDD rowspan=2> Model<br> model2 </th>
37.13 - <th bgcolor=DDDDDD colspan=3> Score (points) </th>
37.14 -</tr>
37.15 -<tr>
37.16 - <th width=6% bgcolor=DDDDDD> Full </th>
37.17 - <th width=6% bgcolor=DDDDDD> model1 </th>
37.18 - <th width=6% bgcolor=DDDDDD> model2 </th>
37.19 -</tr>
37.20 -
37.21 -<tr>
37.22 - <th rowspan=6>NPP</th>
37.23 -
37.24 - <th rowspan=2>EMDI NPP <br> observations</th>
37.25 -
37.26 - <th>
37.27 - <a href=../model1/npp/table_site81_ob.html>
37.28 - Class_A_table</a>
37.29 - </th>
37.30 -
37.31 - <th>
37.32 - <a href=../model1/npp/table_site81_model_vs_ob.html>
37.33 - table</a> <br>
37.34 - <a href=../model1/npp/scatter_model_vs_ob_81.png>
37.35 - scatter_plot</a>
37.36 - </th>
37.37 -
37.38 - <th>
37.39 - <a href=../model2/npp/table_site81_model_vs_ob.html>
37.40 - table</a> <br>
37.41 - <a href=../model2/npp/scatter_model_vs_ob_81.png>
37.42 - scatter_plot</a>
37.43 - </th>
37.44 -
37.45 - <th>2.5</th>
37.46 - <th>M_npp_S81</th>
37.47 - <th>M_npp_S81</th>
37.48 -</tr>
37.49 -
37.50 -<tr>
37.51 - <th>
37.52 - <a href=../model1/npp/table_site933_ob.html>
37.53 - Class_B_table</a>
37.54 - </th>
37.55 -
37.56 - <th>
37.57 - <a href=../model1/npp/table_site933_model_vs_ob.html>
37.58 - table</a> <br>
37.59 - <a href=../model1/npp/scatter_model_vs_ob_933.png>
37.60 - scatter_plot</a>
37.61 - </th>
37.62 -
37.63 - <th>
37.64 - <a href=../model2/npp/table_site933_model_vs_ob.html>
37.65 - table</a> <br>
37.66 - <a href=../model2/npp/scatter_model_vs_ob_933.png>
37.67 - scatter_plot</a>
37.68 - </th>
37.69 -
37.70 - <th>2.5</th>
37.71 - <th>M_npp_S933</th>
37.72 - <th>M_npp_S933</th>
37.73 -</tr>
37.74 -
37.75 -<tr>
37.76 - <th rowspan=2>EMDI NPP <br> normalized by PPT</th>
37.77 -
37.78 - <th>
37.79 - <a href=../model1/npp/histogram_ob_81.png>
37.80 - Class_A_histogram</a>
37.81 - </th>
37.82 -
37.83 - <th>
37.84 - <a href=../model1/npp/histogram_model_vs_ob_81.png>
37.85 - Class_A_histogram</a>
37.86 - </th>
37.87 -
37.88 - <th>
37.89 - <a href=../model2/npp/histogram_model_vs_ob_81.png>
37.90 - Class_A_histogram</a>
37.91 - </th>
37.92 -
37.93 - <th>2.5</th>
37.94 - <th>M_npp_H81</th>
37.95 - <th>M_npp_H81</th>
37.96 -</tr>
37.97 -
37.98 -<tr>
37.99 - <th>
37.100 - <a href=../model1/npp/histogram_ob_933.png>
37.101 - Class_B_histogram</a>
37.102 - </th>
37.103 -
37.104 - <th>
37.105 - <a href=../model1/npp/histogram_model_vs_ob_933.png>
37.106 - Class_B_histogram</a>
37.107 - </th>
37.108 -
37.109 - <th>
37.110 - <a href=../model2/npp/histogram_model_vs_ob_933.png>
37.111 - Class_B_histogram</a>
37.112 - </th>
37.113 -
37.114 - <th>2.5</th>
37.115 - <th>M_npp_H933</th>
37.116 - <th>M_npp_H933</th>
37.117 -</tr>
37.118 -
37.119 -<tr>
37.120 - <th>Correlation with MODIS obs.</th>
37.121 -
37.122 - <th>
37.123 - <a href=../model1/npp/global_ob.png>
37.124 - global_map</a>
37.125 - </th>
37.126 -
37.127 - <th>
37.128 - <a href=../model1/npp/global_model.png>
37.129 - model_map</a> <br>
37.130 - <a href=../model1/npp/global_model_vs_ob.png>
37.131 - model_vs_obs</a>
37.132 - </th>
37.133 -
37.134 - <th>
37.135 - <a href=../model2/npp/global_model.png>
37.136 - model_map</a> <br>
37.137 - <a href=../model2/npp/global_model_vs_ob.png>
37.138 - model_vs_obs</a>
37.139 - </th>
37.140 -
37.141 - <th>5</th>
37.142 - <th>M_npp_G</th>
37.143 - <th>M_npp_G</th>
37.144 -</tr>
37.145 -
37.146 -<tr>
37.147 - <th>Correlation with MODIS-zonal mean</th>
37.148 -
37.149 - <th>
37.150 - <a href=../model1/npp/zonal_ob.png>
37.151 - zonal_mean_obs</a>
37.152 - </th>
37.153 -
37.154 - <th>
37.155 - <a href=../model1/npp/zonal_model_vs_ob.png>
37.156 - zonal_mean <br> model_vs_obs_plot</a>
37.157 - </th>
37.158 -
37.159 - <th>
37.160 - <a href=../model2/npp/zonal_model_vs_ob.png>
37.161 - zonal_mean <br> model_vs_obs_plot</a>
37.162 - </th>
37.163 -
37.164 - <th>5</th>
37.165 - <th>M_npp_Z</th>
37.166 - <th>M_npp_Z</th>
37.167 -</tr>
37.168 -
37.169 -<tr>
37.170 - <th rowspan=3>LAI</th>
37.171 -
37.172 - <th>MODIS Mean</th>
37.173 -
37.174 - <th>
37.175 - <a href=../model1/lai/global_class_ob.png>
37.176 - land_class_obs</a> <br>
37.177 - <a href=../model1/lai/global_class_model.png>
37.178 - land_class_model</a> <br>
37.179 - <a href=../model1/lai/global_Mean_ob.png>
37.180 - global_map</a>
37.181 - </th>
37.182 -
37.183 - <th>
37.184 - <a href=../model1/lai/table_model_vs_ob.html>
37.185 - model_vs_obs_table</a> <br>
37.186 - <a href=../model1/lai/global_Mean_model.png>
37.187 - global_map</a> <br>
37.188 - <a href=../model1/lai/global_Mean_model_vs_ob.png>
37.189 - model_vs_obs</a>
37.190 - </th>
37.191 -
37.192 - <th>
37.193 - <a href=../model2/lai/table_model_vs_ob.html>
37.194 - model_vs_obs_table</a> <br>
37.195 - <a href=../model2/lai/global_Mean_model.png>
37.196 - global_map</a> <br>
37.197 - <a href=../model2/lai/global_Mean_model_vs_ob.png>
37.198 - model_vs_obs</a>
37.199 - </th>
37.200 -
37.201 - <th>5</th>
37.202 - <th>M_lai_Mean</th>
37.203 - <th>M_lai_Mean</th>
37.204 -</tr>
37.205 -
37.206 -<tr>
37.207 - <th>MODIS Maximum</th>
37.208 -
37.209 - <th>
37.210 - <a href=../model1/lai/global_Max_ob.png>
37.211 - global_map</a>
37.212 - </th>
37.213 -
37.214 - <th>
37.215 - <a href=../model1/lai/global_Max_model.png>
37.216 - global_map</a> <br>
37.217 - <a href=../model1/lai/global_Max_model_vs_ob.png>
37.218 - model_vs_obs</a>
37.219 - </th>
37.220 -
37.221 - <th>
37.222 - <a href=../model2/lai/global_Max_model.png>
37.223 - global_map</a> <br>
37.224 - <a href=../model2/lai/global_Max_model_vs_ob.png>
37.225 - model_vs_obs</a>
37.226 - </th>
37.227 -
37.228 - <th>5</th>
37.229 - <th>M_lai_Max</th>
37.230 - <th>M_lai_Max</th>
37.231 -</tr>
37.232 -<tr>
37.233 - <th>MODIS Phase</th>
37.234 -
37.235 - <th>
37.236 - <a href=../model1/lai/global_Phase_ob.png>
37.237 - global_map</a>
37.238 - </th>
37.239 -
37.240 - <th>
37.241 - <a href=../model1/lai/global_Phase_model.png>
37.242 - global_map</a> <br>
37.243 - <a href=../model1/lai/global_Phase_model_vs_ob.png>
37.244 - model_vs_obs</a>
37.245 - </th>
37.246 -
37.247 - <th>
37.248 - <a href=../model2/lai/global_Phase_model.png>
37.249 - global_map</a> <br>
37.250 - <a href=../model2/lai/global_Phase_model_vs_ob.png>
37.251 - model_vs_obs</a>
37.252 - </th>
37.253 -
37.254 - <th>5</th>
37.255 - <th>M_lai_Phase</th>
37.256 - <th>M_lai_Phase</th>
37.257 -</tr>
37.258 -
37.259 -<tr>
37.260 - <th>CO2<br> Seasonal<br> Cycle</th>
37.261 - <th>Comparison with NOAA observations <br> phase and amplitude</th>
37.262 - <th>--</th>
37.263 -
37.264 - <th>--</th>
37.265 - <th>--</th>
37.266 -
37.267 - <th>20</th>
37.268 - <th>--</th>
37.269 - <th>--</th>
37.270 -</tr>
37.271 -
37.272 -<tr>
37.273 - <th rowspan=2>Carbon<br> Stocks</th>
37.274 -
37.275 - <th>Aboveground live biomass <br> in South America</th>
37.276 -
37.277 - <th>
37.278 - <a href=../model1/biomass/global_ob.png>
37.279 - obs_amazon</a>
37.280 - </th>
37.281 -
37.282 - <th>
37.283 - <a href=../model1/biomass/global_model.png>
37.284 - model_amazon</a> <br>
37.285 - <a href=../model1/biomass/global_model_vs_ob.png>
37.286 - model_vs_obs</a>
37.287 - </th>
37.288 -
37.289 - <th>
37.290 - <a href=../model2/biomass/global_model.png>
37.291 - amazon_map</a> <br>
37.292 - <a href=../model2/biomass/global_model_vs_ob.png>
37.293 - model_vs_obs</a>
37.294 - </th>
37.295 -
37.296 - <th>5</th>
37.297 - <th>M_biomass</th>
37.298 - <th>M_biomass</th>
37.299 -</tr>
37.300 -
37.301 -<tr>
37.302 - <th>Aboveground live <br> biomass <br> within Amazon Basin <br>(sum within Legal Amazon)</th>
37.303 - <th>
37.304 - <a href=../model1/biomass/mask_ob.png>
37.305 - mask</a> <br>
37.306 - <a href=../model1/biomass/global_mask_ob.png>
37.307 - obs_masked</a> <br>
37.308 - Sum_biomass_ob (Pg C)
37.309 - </th>
37.310 -
37.311 - <th>
37.312 - <a href=../model1/biomass/global_mask_model.png>
37.313 - model_masked</a> <br>
37.314 - <a href=../model1/biomass/global_mask_vs_ob.png>
37.315 - model_vs_obs</a> <br>
37.316 - Sum_biomass_mod (Pg C)
37.317 - </th>
37.318 -
37.319 - <th>
37.320 - <a href=../model2/biomass/global_mask_model.png>
37.321 - model_masked</a> <br>
37.322 - <a href=../model2/biomass/global_mask_vs_ob.png>
37.323 - model_vs_obs</a> <br>
37.324 - Sum_biomass_mod (Pg C)
37.325 - </th>
37.326 -
37.327 - <th>5</th>
37.328 - <th>M_biomask</th>
37.329 - <th>M_biomask</th>
37.330 -</tr>
37.331 -
37.332 -<tr>
37.333 - <th rowspan=4>Energy and<br>C Fluxes<br>from Fluxnet</th>
37.334 -
37.335 - <th>NEE</th>
37.336 -
37.337 - <th rowspan=4>
37.338 - <a href=../model1/fluxnet/line_ob.html>
37.339 - line_plot</a>
37.340 - </th>
37.341 -
37.342 - <th rowspan=4>
37.343 - <a href=../model1/fluxnet/score+line_vs_ob.html>
37.344 - model_vs_obs</a>
37.345 - </th>
37.346 -
37.347 - <th rowspan=4>
37.348 - <a href=../model2/fluxnet/score+line_vs_ob.html>
37.349 - model_vs_obs</a>
37.350 - </th>
37.351 -
37.352 - <th>5</th>
37.353 - <th>M_fluxnet_nee</th>
37.354 - <th>M_fluxnet_nee</th>
37.355 -</tr>
37.356 -
37.357 -<tr>
37.358 - <th>Net radiation</th>
37.359 - <th>5</th>
37.360 - <th>M_fluxnet_rad</th>
37.361 - <th>M_fluxnet_rad</th>
37.362 -</tr>
37.363 -
37.364 -<tr>
37.365 - <th>Latent heat</th>
37.366 - <th>5</th>
37.367 - <th>M_fluxnet_lh</th>
37.368 - <th>M_fluxnet_lh</th>
37.369 -</tr>
37.370 -
37.371 -<tr>
37.372 - <th>Sensible heat</th>
37.373 - <th>5</th>
37.374 - <th>M_fluxnet_sh</th>
37.375 - <th>M_fluxnet_sh</th>
37.376 -</tr>
37.377 -
37.378 -<tr>
37.379 - <th rowspan=6>Energy and<br>C Fluxes<br>from Ameriflux</th>
37.380 -
37.381 - <th>NEE</th>
37.382 -
37.383 - <th rowspan=6>
37.384 - <a href=../model1/ameriflux/line_ob.html>
37.385 - line_plot</a>
37.386 - </th>
37.387 -
37.388 - <th rowspan=6>
37.389 - <a href=../model1/ameriflux/score+line_vs_ob.html>
37.390 - model_vs_obs</a> <br>
37.391 - <a href=../model1/ameriflux/tseries_vs_ob.html>
37.392 - timeseries_plot</a>
37.393 - </th>
37.394 -
37.395 - <th rowspan=6>
37.396 - <a href=../model2/ameriflux/score+line_vs_ob.html>
37.397 - model_vs_obs</a> <br>
37.398 - <a href=../model2/ameriflux/tseries_vs_ob.html>
37.399 - timeseries_plot</a>
37.400 - </th>
37.401 -
37.402 - <th>1</th>
37.403 - <th>M_ameriflux_nee</th>
37.404 - <th>M_ameriflux_nee</th>
37.405 -</tr>
37.406 -
37.407 -<tr>
37.408 - <th>Shortwave Incoming</th>
37.409 - <th>1</th>
37.410 - <th>M_ameriflux_rad</th>
37.411 - <th>M_ameriflux_rad</th>
37.412 -</tr>
37.413 -
37.414 -<tr>
37.415 - <th>Latent heat</th>
37.416 - <th>1</th>
37.417 - <th>M_ameriflux_lh</th>
37.418 - <th>M_ameriflux_lh</th>
37.419 -</tr>
37.420 -
37.421 -<tr>
37.422 - <th>Sensible heat</th>
37.423 - <th>1</th>
37.424 - <th>M_ameriflux_sh</th>
37.425 - <th>M_ameriflux_sh</th>
37.426 -</tr>
37.427 -
37.428 -<tr>
37.429 - <th>GPP</th>
37.430 - <th>1</th>
37.431 - <th>M_ameriflux_gpp</th>
37.432 - <th>M_ameriflux_gpp</th>
37.433 -</tr>
37.434 -
37.435 -<tr>
37.436 - <th>ER</th>
37.437 - <th>1</th>
37.438 - <th>M_ameriflux_er</th>
37.439 - <th>M_ameriflux_er</th>
37.440 -</tr>
37.441 -
37.442 -<tr>
37.443 - <th rowspan=4>Transient Dynamics</th>
37.444 - <th>Beta factor for NPP Stimulation from elevated CO2</th>
37.445 - <th>--</th>
37.446 -
37.447 - <th>
37.448 - <a href=../model1/beta/table_station.html>
37.449 - FACE_Site_comparison</a> <br>
37.450 - <a href=../model1/beta/table_biome.html>
37.451 - biome_table</a>
37.452 - </th>
37.453 -
37.454 - <th>
37.455 - <a href=../model2/beta/table_station.html>
37.456 - FACE_Site_comparison</a> <br>
37.457 - <a href=../model2/beta/table_biome.html>
37.458 - biome_table</a>
37.459 - </th>
37.460 -
37.461 - <th>3</th>
37.462 - <th>M_beta</th>
37.463 - <th>M_beta</th>
37.464 -</tr>
37.465 -
37.466 -<tr>
37.467 - <th>Turnover times and pool sizes</th>
37.468 - <th>--</th>
37.469 -
37.470 - <th>
37.471 - <a href=../model1/turnover/table_Leaf.html>
37.472 - Leaf</a> <br>
37.473 - <a href=../model1/turnover/table_Wood.html>
37.474 - Wood</a> <br>
37.475 - <a href=../model1/turnover/table_Fine_Root.html>
37.476 - Fine_Root</a> <br>
37.477 - <a href=../model1/turnover/table_Litter.html>
37.478 - Litter</a> <br>
37.479 - <a href=../model1/turnover/table_Coarse_Woody_Debris.html>
37.480 - Coarse_Woody_Debris</a> <br>
37.481 - <a href=../model1/turnover/table_Soil.html>
37.482 - Soil</a>
37.483 - </th>
37.484 -
37.485 - <th>
37.486 - <a href=../model2/turnover/table_Leaf.html>
37.487 - Leaf</a> <br>
37.488 - <a href=../model2/turnover/table_Wood.html>
37.489 - Wood</a> <br>
37.490 - <a href=../model2/turnover/table_Fine_Root.html>
37.491 - Fine_Root</a> <br>
37.492 - <a href=../model2/turnover/table_Litter.html>
37.493 - Litter</a> <br>
37.494 - <a href=../model2/turnover/table_Coarse_Woody_Debris.html>
37.495 - Coarse_Woody_Debris</a> <br>
37.496 - <a href=../model2/turnover/table_Soil.html>
37.497 - Soil</a>
37.498 - </th>
37.499 -
37.500 - <th>3</th>
37.501 - <th>--</th>
37.502 - <th>--</th>
37.503 -</tr>
37.504 -
37.505 -<tr>
37.506 - <th>Carbon Sinks<br>(1990-2004)</th>
37.507 - <th>--</th>
37.508 -
37.509 - <th>
37.510 - <a href=../model1/carbon_sink/table_per_m2.html>
37.511 - biome_mean</a> <br>
37.512 - <a href=../model1/carbon_sink/table_per_biome.html>
37.513 - biome_total</a>
37.514 - </th>
37.515 -
37.516 - <th>
37.517 - <a href=../model2/carbon_sink/table_per_m2.html>
37.518 - biome_mean</a> <br>
37.519 - <a href=../model2/carbon_sink/table_per_biome.html>
37.520 - biome_total</a>
37.521 - </th>
37.522 -
37.523 - <th>2</th>
37.524 - <th>--</th>
37.525 - <th>--</th>
37.526 -</tr>
37.527 -
37.528 -<tr>
37.529 - <th>Fire Variability</th>
37.530 - <th>--</th>
37.531 -
37.532 - <th>
37.533 - <a href=../model1/fire/global_model_vs_ob.png>
37.534 - global_spatial_comparison</a> <br>
37.535 - <a href=../model1/fire/table_fire.html>
37.536 - temporal_dynamics_(1997-2004)</a>
37.537 - </th>
37.538 -
37.539 - <th>--</th>
37.540 -
37.541 - <th>2</th>
37.542 - <th>M_fire</th>
37.543 - <th>--</th>
37.544 -</tr>
37.545 -
37.546 -<tr>
37.547 - <th bgcolor=DDDDDD> Total </th>
37.548 - <th colspan=4> </th>
37.549 - <th bgcolor=DDDDDD>100</th>
37.550 - <th bgcolor=DDDDDD>M_total</th>
37.551 - <th bgcolor=DDDDDD>M_total</th>
37.552 -</tr>
37.553 -
37.554 -</table>
37.555 -<!----------------------------------------------------------------------------->
38.1 --- a/all/template_2-model_noCO2/tablerows.html Mon Jan 26 22:08:20 2009 -0500
38.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
38.3 @@ -1,13 +0,0 @@
38.4 -<!----------------------------------------------------------------------------->
38.5 -<tr>
38.6 -<td align=center rowspan=4 > NPP</td>
38.7 -<td >Site observationn1</td>
38.8 -</tr>
38.9 -<tr>
38.10 -<td test3</td>
38.11 -</tr>
38.12 -<tr>
38.13 -<td >Site observationn2</td>
38.14 -<td >Site observationn3</td>
38.15 -<td >Site observationn4</td>
38.16 -<!----------------------------------------------------------------------------->
39.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
39.2 +++ b/time_series/10.write_ameriflux_cn_FMH36cn.ncl Thu Mar 26 14:02:21 2009 -0400
39.3 @@ -0,0 +1,208 @@
39.4 +;************************************************
39.5 +; Read ascii, Write nc
39.6 +; output: lat: N->S lon: -180W->180E
39.7 +;************************************************
39.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
39.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
39.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
39.11 +;************************************************
39.12 +begin
39.13 +
39.14 +; output
39.15 +
39.16 + model_name = "i01.36cn"
39.17 +
39.18 + ;diro = "/ptmp/jeff/"
39.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.36cn_out/"
39.20 + filo = model_name + "_ameriflux_2076-2100_monthly.nc"
39.21 + c = addfile(diro+filo,"c")
39.22 + filedimdef(c,"year",-1,True)
39.23 +
39.24 +; input data
39.25 +
39.26 + nlat = 96
39.27 + nlon = 144
39.28 +
39.29 + year_start = 2076
39.30 + year_end = 2100
39.31 +
39.32 + nyear = year_end - year_start + 1
39.33 + nmonth = 12
39.34 +
39.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
39.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
39.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
39.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
39.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
39.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
39.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
39.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
39.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
39.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
39.45 + date = new((/nyear,nmonth/),integer)
39.46 +
39.47 +; name dimensions and assign coordinate variables
39.48 +
39.49 + data1!0 ="year"
39.50 + data1!1 ="month"
39.51 + data1!2 = "lat"
39.52 + data1!3 = "lon"
39.53 +
39.54 + data2!0 ="year"
39.55 + data2!1 ="month"
39.56 + data2!2 = "lat"
39.57 + data2!3 = "lon"
39.58 +
39.59 + data3!0 ="year"
39.60 + data3!1 ="month"
39.61 + data3!2 = "lat"
39.62 + data3!3 = "lon"
39.63 +
39.64 + ;data4!0 ="year"
39.65 + ;data4!1 ="month"
39.66 + ;data4!2 = "lat"
39.67 + ;data4!3 = "lon"
39.68 +
39.69 + ;data5!0 ="year"
39.70 + ;data5!1 ="month"
39.71 + ;data5!2 = "lat"
39.72 + ;data5!3 = "lon"
39.73 +
39.74 + data6!0 ="year"
39.75 + data6!1 ="month"
39.76 + data6!2 = "lat"
39.77 + data6!3 = "lon"
39.78 +
39.79 + data7!0 ="year"
39.80 + data7!1 ="month"
39.81 + data7!2 = "lat"
39.82 + data7!3 = "lon"
39.83 +
39.84 + data8!0 ="year"
39.85 + data8!1 ="month"
39.86 + data8!2 = "lat"
39.87 + data8!3 = "lon"
39.88 +
39.89 + data9!0 ="year"
39.90 + data9!1 ="month"
39.91 + data9!2 = "lat"
39.92 + data9!3 = "lon"
39.93 +
39.94 + data10!0 ="year"
39.95 + data10!1 ="month"
39.96 + data10!2 = "lat"
39.97 + data10!3 = "lon"
39.98 +
39.99 + date!0 ="year"
39.100 + date!1 ="month"
39.101 + date@long_name = "date: yyyymm"
39.102 +
39.103 +; input dir
39.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
39.105 +
39.106 + do m = 0,nyear-1
39.107 + year = year_start + m
39.108 + do n = 0,nmonth-1
39.109 + nn = n+1
39.110 + date(m,n) = year*100 +nn
39.111 +
39.112 +; input file
39.113 + if (nn .ge. 10) then
39.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
39.115 + else
39.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
39.117 + end if
39.118 +
39.119 + print (fili)
39.120 +
39.121 + g = addfile (diri+fili,"r")
39.122 +
39.123 + b = g->NEE
39.124 + data1(m,n,:,:) = (/b(0,:,:)/)
39.125 + data1@long_name = b@long_name
39.126 + data1@units = b@units
39.127 + data1@_FillValue = b@_FillValue
39.128 + delete (b)
39.129 +
39.130 + b = g->GPP
39.131 + data2(m,n,:,:) = (/b(0,:,:)/)
39.132 + data2@long_name = b@long_name
39.133 + data2@units = b@units
39.134 + data2@_FillValue = b@_FillValue
39.135 + delete (b)
39.136 +
39.137 + b = g->ER
39.138 + data3(m,n,:,:) = (/b(0,:,:)/)
39.139 + data3@long_name = b@long_name
39.140 + data3@units = b@units
39.141 + data3@_FillValue = b@_FillValue
39.142 + delete (b)
39.143 +
39.144 + ;b = g->NETRAD
39.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
39.146 + ;data4@long_name = b@long_name
39.147 + ;data4@units = b@units
39.148 + ;data4@_FillValue = b@_FillValue
39.149 + ;delete (b)
39.150 +
39.151 + ;b = g->LATENT
39.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
39.153 + ;data5@long_name = b@long_name
39.154 + ;data5@units = b@units
39.155 + ;data5@_FillValue = b@_FillValue
39.156 + ;delete (b)
39.157 +
39.158 + b = g->FSH
39.159 + data6(m,n,:,:) = (/b(0,:,:)/)
39.160 + data6@long_name = b@long_name
39.161 + data6@units = b@units
39.162 + data6@_FillValue = b@_FillValue
39.163 + delete (b)
39.164 +
39.165 + b = g->FSDS
39.166 + data7(m,n,:,:) = (/b(0,:,:)/)
39.167 + data7@long_name = b@long_name
39.168 + data7@units = b@units
39.169 + data7@_FillValue = b@_FillValue
39.170 + delete (b)
39.171 +
39.172 + b = g->FCEV
39.173 + data8(m,n,:,:) = (/b(0,:,:)/)
39.174 + data8@long_name = b@long_name
39.175 + data8@units = b@units
39.176 + data8@_FillValue = b@_FillValue
39.177 + delete (b)
39.178 +
39.179 + b = g->FCTR
39.180 + data9(m,n,:,:) = (/b(0,:,:)/)
39.181 + data9@long_name = b@long_name
39.182 + data9@units = b@units
39.183 + data9@_FillValue = b@_FillValue
39.184 + delete (b)
39.185 +
39.186 + b = g->FGEV
39.187 + data10(m,n,:,:) = (/b(0,:,:)/)
39.188 + data10@long_name = b@long_name
39.189 + data10@units = b@units
39.190 + data10@_FillValue = b@_FillValue
39.191 + delete (b)
39.192 +
39.193 + end do
39.194 + end do
39.195 +
39.196 + c->NEE = data1
39.197 + c->GPP = data2
39.198 + c->ER = data3
39.199 + ;c->NETRAD = data4
39.200 + ;c->LATENT = data5
39.201 + c->FSH = data6
39.202 + c->FSDS = data7
39.203 + c->FCEV = data8
39.204 + c->FCTR = data9
39.205 + c->FGEV = data10
39.206 + c->date = date
39.207 + c->area = g->area
39.208 +
39.209 + print (date)
39.210 +
39.211 +end
40.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
40.2 +++ b/time_series/10.write_ameriflux_cn_FMH37cn_cont.ncl Thu Mar 26 14:02:21 2009 -0400
40.3 @@ -0,0 +1,208 @@
40.4 +;************************************************
40.5 +; Read ascii, Write nc
40.6 +; output: lat: N->S lon: -180W->180E
40.7 +;************************************************
40.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
40.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
40.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
40.11 +;************************************************
40.12 +begin
40.13 +
40.14 +; output
40.15 +
40.16 + model_name = "i01.37cn_cont"
40.17 +
40.18 + ;diro = "/ptmp/jeff/"
40.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases/i01.37cn_cont_out/"
40.20 + filo = model_name + "_ameriflux_2976-3000_monthly.nc"
40.21 + c = addfile(diro+filo,"c")
40.22 + filedimdef(c,"year",-1,True)
40.23 +
40.24 +; input data
40.25 +
40.26 + nlat = 96
40.27 + nlon = 144
40.28 +
40.29 + year_start = 2976
40.30 + year_end = 3000
40.31 +
40.32 + nyear = year_end - year_start + 1
40.33 + nmonth = 12
40.34 +
40.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
40.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
40.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
40.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
40.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
40.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
40.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
40.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
40.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
40.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
40.45 + date = new((/nyear,nmonth/),integer)
40.46 +
40.47 +; name dimensions and assign coordinate variables
40.48 +
40.49 + data1!0 ="year"
40.50 + data1!1 ="month"
40.51 + data1!2 = "lat"
40.52 + data1!3 = "lon"
40.53 +
40.54 + data2!0 ="year"
40.55 + data2!1 ="month"
40.56 + data2!2 = "lat"
40.57 + data2!3 = "lon"
40.58 +
40.59 + data3!0 ="year"
40.60 + data3!1 ="month"
40.61 + data3!2 = "lat"
40.62 + data3!3 = "lon"
40.63 +
40.64 + ;data4!0 ="year"
40.65 + ;data4!1 ="month"
40.66 + ;data4!2 = "lat"
40.67 + ;data4!3 = "lon"
40.68 +
40.69 + ;data5!0 ="year"
40.70 + ;data5!1 ="month"
40.71 + ;data5!2 = "lat"
40.72 + ;data5!3 = "lon"
40.73 +
40.74 + data6!0 ="year"
40.75 + data6!1 ="month"
40.76 + data6!2 = "lat"
40.77 + data6!3 = "lon"
40.78 +
40.79 + data7!0 ="year"
40.80 + data7!1 ="month"
40.81 + data7!2 = "lat"
40.82 + data7!3 = "lon"
40.83 +
40.84 + data8!0 ="year"
40.85 + data8!1 ="month"
40.86 + data8!2 = "lat"
40.87 + data8!3 = "lon"
40.88 +
40.89 + data9!0 ="year"
40.90 + data9!1 ="month"
40.91 + data9!2 = "lat"
40.92 + data9!3 = "lon"
40.93 +
40.94 + data10!0 ="year"
40.95 + data10!1 ="month"
40.96 + data10!2 = "lat"
40.97 + data10!3 = "lon"
40.98 +
40.99 + date!0 ="year"
40.100 + date!1 ="month"
40.101 + date@long_name = "date: yyyymm"
40.102 +
40.103 +; input dir
40.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases/"+model_name+"/"
40.105 +
40.106 + do m = 0,nyear-1
40.107 + year = year_start + m
40.108 + do n = 0,nmonth-1
40.109 + nn = n+1
40.110 + date(m,n) = year*100 +nn
40.111 +
40.112 +; input file
40.113 + if (nn .ge. 10) then
40.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
40.115 + else
40.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
40.117 + end if
40.118 +
40.119 + print (fili)
40.120 +
40.121 + g = addfile (diri+fili,"r")
40.122 +
40.123 + b = g->NEE
40.124 + data1(m,n,:,:) = (/b(0,:,:)/)
40.125 + data1@long_name = b@long_name
40.126 + data1@units = b@units
40.127 + data1@_FillValue = b@_FillValue
40.128 + delete (b)
40.129 +
40.130 + b = g->GPP
40.131 + data2(m,n,:,:) = (/b(0,:,:)/)
40.132 + data2@long_name = b@long_name
40.133 + data2@units = b@units
40.134 + data2@_FillValue = b@_FillValue
40.135 + delete (b)
40.136 +
40.137 + b = g->ER
40.138 + data3(m,n,:,:) = (/b(0,:,:)/)
40.139 + data3@long_name = b@long_name
40.140 + data3@units = b@units
40.141 + data3@_FillValue = b@_FillValue
40.142 + delete (b)
40.143 +
40.144 + ;b = g->NETRAD
40.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
40.146 + ;data4@long_name = b@long_name
40.147 + ;data4@units = b@units
40.148 + ;data4@_FillValue = b@_FillValue
40.149 + ;delete (b)
40.150 +
40.151 + ;b = g->LATENT
40.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
40.153 + ;data5@long_name = b@long_name
40.154 + ;data5@units = b@units
40.155 + ;data5@_FillValue = b@_FillValue
40.156 + ;delete (b)
40.157 +
40.158 + b = g->FSH
40.159 + data6(m,n,:,:) = (/b(0,:,:)/)
40.160 + data6@long_name = b@long_name
40.161 + data6@units = b@units
40.162 + data6@_FillValue = b@_FillValue
40.163 + delete (b)
40.164 +
40.165 + b = g->FSDS
40.166 + data7(m,n,:,:) = (/b(0,:,:)/)
40.167 + data7@long_name = b@long_name
40.168 + data7@units = b@units
40.169 + data7@_FillValue = b@_FillValue
40.170 + delete (b)
40.171 +
40.172 + b = g->FCEV
40.173 + data8(m,n,:,:) = (/b(0,:,:)/)
40.174 + data8@long_name = b@long_name
40.175 + data8@units = b@units
40.176 + data8@_FillValue = b@_FillValue
40.177 + delete (b)
40.178 +
40.179 + b = g->FCTR
40.180 + data9(m,n,:,:) = (/b(0,:,:)/)
40.181 + data9@long_name = b@long_name
40.182 + data9@units = b@units
40.183 + data9@_FillValue = b@_FillValue
40.184 + delete (b)
40.185 +
40.186 + b = g->FGEV
40.187 + data10(m,n,:,:) = (/b(0,:,:)/)
40.188 + data10@long_name = b@long_name
40.189 + data10@units = b@units
40.190 + data10@_FillValue = b@_FillValue
40.191 + delete (b)
40.192 +
40.193 + end do
40.194 + end do
40.195 +
40.196 + c->NEE = data1
40.197 + c->GPP = data2
40.198 + c->ER = data3
40.199 + ;c->NETRAD = data4
40.200 + ;c->LATENT = data5
40.201 + c->FSH = data6
40.202 + c->FSDS = data7
40.203 + c->FCEV = data8
40.204 + c->FCTR = data9
40.205 + c->FGEV = data10
40.206 + c->date = date
40.207 + c->area = g->area
40.208 +
40.209 + print (date)
40.210 +
40.211 +end
41.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
41.2 +++ b/time_series/10.write_ameriflux_cn_FMH38cn.ncl Thu Mar 26 14:02:21 2009 -0400
41.3 @@ -0,0 +1,208 @@
41.4 +;************************************************
41.5 +; Read ascii, Write nc
41.6 +; output: lat: N->S lon: -180W->180E
41.7 +;************************************************
41.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
41.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
41.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
41.11 +;************************************************
41.12 +begin
41.13 +
41.14 +; output
41.15 +
41.16 + model_name = "i01.38cn"
41.17 +
41.18 + ;diro = "/ptmp/jeff/"
41.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.38cn_out/"
41.20 + filo = model_name + "_ameriflux_2151-2175_monthly.nc"
41.21 + c = addfile(diro+filo,"c")
41.22 + filedimdef(c,"year",-1,True)
41.23 +
41.24 +; input data
41.25 +
41.26 + nlat = 96
41.27 + nlon = 144
41.28 +
41.29 + year_start = 2151
41.30 + year_end = 2175
41.31 +
41.32 + nyear = year_end - year_start + 1
41.33 + nmonth = 12
41.34 +
41.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
41.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
41.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
41.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
41.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
41.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
41.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
41.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
41.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
41.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
41.45 + date = new((/nyear,nmonth/),integer)
41.46 +
41.47 +; name dimensions and assign coordinate variables
41.48 +
41.49 + data1!0 ="year"
41.50 + data1!1 ="month"
41.51 + data1!2 = "lat"
41.52 + data1!3 = "lon"
41.53 +
41.54 + data2!0 ="year"
41.55 + data2!1 ="month"
41.56 + data2!2 = "lat"
41.57 + data2!3 = "lon"
41.58 +
41.59 + data3!0 ="year"
41.60 + data3!1 ="month"
41.61 + data3!2 = "lat"
41.62 + data3!3 = "lon"
41.63 +
41.64 + ;data4!0 ="year"
41.65 + ;data4!1 ="month"
41.66 + ;data4!2 = "lat"
41.67 + ;data4!3 = "lon"
41.68 +
41.69 + ;data5!0 ="year"
41.70 + ;data5!1 ="month"
41.71 + ;data5!2 = "lat"
41.72 + ;data5!3 = "lon"
41.73 +
41.74 + data6!0 ="year"
41.75 + data6!1 ="month"
41.76 + data6!2 = "lat"
41.77 + data6!3 = "lon"
41.78 +
41.79 + data7!0 ="year"
41.80 + data7!1 ="month"
41.81 + data7!2 = "lat"
41.82 + data7!3 = "lon"
41.83 +
41.84 + data8!0 ="year"
41.85 + data8!1 ="month"
41.86 + data8!2 = "lat"
41.87 + data8!3 = "lon"
41.88 +
41.89 + data9!0 ="year"
41.90 + data9!1 ="month"
41.91 + data9!2 = "lat"
41.92 + data9!3 = "lon"
41.93 +
41.94 + data10!0 ="year"
41.95 + data10!1 ="month"
41.96 + data10!2 = "lat"
41.97 + data10!3 = "lon"
41.98 +
41.99 + date!0 ="year"
41.100 + date!1 ="month"
41.101 + date@long_name = "date: yyyymm"
41.102 +
41.103 +; input dir
41.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
41.105 +
41.106 + do m = 0,nyear-1
41.107 + year = year_start + m
41.108 + do n = 0,nmonth-1
41.109 + nn = n+1
41.110 + date(m,n) = year*100 +nn
41.111 +
41.112 +; input file
41.113 + if (nn .ge. 10) then
41.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
41.115 + else
41.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
41.117 + end if
41.118 +
41.119 + print (fili)
41.120 +
41.121 + g = addfile (diri+fili,"r")
41.122 +
41.123 + b = g->NEE
41.124 + data1(m,n,:,:) = (/b(0,:,:)/)
41.125 + data1@long_name = b@long_name
41.126 + data1@units = b@units
41.127 + data1@_FillValue = b@_FillValue
41.128 + delete (b)
41.129 +
41.130 + b = g->GPP
41.131 + data2(m,n,:,:) = (/b(0,:,:)/)
41.132 + data2@long_name = b@long_name
41.133 + data2@units = b@units
41.134 + data2@_FillValue = b@_FillValue
41.135 + delete (b)
41.136 +
41.137 + b = g->ER
41.138 + data3(m,n,:,:) = (/b(0,:,:)/)
41.139 + data3@long_name = b@long_name
41.140 + data3@units = b@units
41.141 + data3@_FillValue = b@_FillValue
41.142 + delete (b)
41.143 +
41.144 + ;b = g->NETRAD
41.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
41.146 + ;data4@long_name = b@long_name
41.147 + ;data4@units = b@units
41.148 + ;data4@_FillValue = b@_FillValue
41.149 + ;delete (b)
41.150 +
41.151 + ;b = g->LATENT
41.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
41.153 + ;data5@long_name = b@long_name
41.154 + ;data5@units = b@units
41.155 + ;data5@_FillValue = b@_FillValue
41.156 + ;delete (b)
41.157 +
41.158 + b = g->FSH
41.159 + data6(m,n,:,:) = (/b(0,:,:)/)
41.160 + data6@long_name = b@long_name
41.161 + data6@units = b@units
41.162 + data6@_FillValue = b@_FillValue
41.163 + delete (b)
41.164 +
41.165 + b = g->FSDS
41.166 + data7(m,n,:,:) = (/b(0,:,:)/)
41.167 + data7@long_name = b@long_name
41.168 + data7@units = b@units
41.169 + data7@_FillValue = b@_FillValue
41.170 + delete (b)
41.171 +
41.172 + b = g->FCEV
41.173 + data8(m,n,:,:) = (/b(0,:,:)/)
41.174 + data8@long_name = b@long_name
41.175 + data8@units = b@units
41.176 + data8@_FillValue = b@_FillValue
41.177 + delete (b)
41.178 +
41.179 + b = g->FCTR
41.180 + data9(m,n,:,:) = (/b(0,:,:)/)
41.181 + data9@long_name = b@long_name
41.182 + data9@units = b@units
41.183 + data9@_FillValue = b@_FillValue
41.184 + delete (b)
41.185 +
41.186 + b = g->FGEV
41.187 + data10(m,n,:,:) = (/b(0,:,:)/)
41.188 + data10@long_name = b@long_name
41.189 + data10@units = b@units
41.190 + data10@_FillValue = b@_FillValue
41.191 + delete (b)
41.192 +
41.193 + end do
41.194 + end do
41.195 +
41.196 + c->NEE = data1
41.197 + c->GPP = data2
41.198 + c->ER = data3
41.199 + ;c->NETRAD = data4
41.200 + ;c->LATENT = data5
41.201 + c->FSH = data6
41.202 + c->FSDS = data7
41.203 + c->FCEV = data8
41.204 + c->FCTR = data9
41.205 + c->FGEV = data10
41.206 + c->date = date
41.207 + c->area = g->area
41.208 +
41.209 + print (date)
41.210 +
41.211 +end
42.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
42.2 +++ b/time_series/10.write_ameriflux_cn_FMH39cn.ncl Thu Mar 26 14:02:21 2009 -0400
42.3 @@ -0,0 +1,208 @@
42.4 +;************************************************
42.5 +; Read ascii, Write nc
42.6 +; output: lat: N->S lon: -180W->180E
42.7 +;************************************************
42.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
42.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
42.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
42.11 +;************************************************
42.12 +begin
42.13 +
42.14 +; output
42.15 +
42.16 + model_name = "i01.39cn"
42.17 +
42.18 + ;diro = "/ptmp/jeff/"
42.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.39cn_out/"
42.20 + filo = model_name + "_ameriflux_2101-2125_monthly.nc"
42.21 + c = addfile(diro+filo,"c")
42.22 + filedimdef(c,"year",-1,True)
42.23 +
42.24 +; input data
42.25 +
42.26 + nlat = 96
42.27 + nlon = 144
42.28 +
42.29 + year_start = 2101
42.30 + year_end = 2125
42.31 +
42.32 + nyear = year_end - year_start + 1
42.33 + nmonth = 12
42.34 +
42.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
42.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
42.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
42.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
42.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
42.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
42.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
42.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
42.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
42.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
42.45 + date = new((/nyear,nmonth/),integer)
42.46 +
42.47 +; name dimensions and assign coordinate variables
42.48 +
42.49 + data1!0 ="year"
42.50 + data1!1 ="month"
42.51 + data1!2 = "lat"
42.52 + data1!3 = "lon"
42.53 +
42.54 + data2!0 ="year"
42.55 + data2!1 ="month"
42.56 + data2!2 = "lat"
42.57 + data2!3 = "lon"
42.58 +
42.59 + data3!0 ="year"
42.60 + data3!1 ="month"
42.61 + data3!2 = "lat"
42.62 + data3!3 = "lon"
42.63 +
42.64 + ;data4!0 ="year"
42.65 + ;data4!1 ="month"
42.66 + ;data4!2 = "lat"
42.67 + ;data4!3 = "lon"
42.68 +
42.69 + ;data5!0 ="year"
42.70 + ;data5!1 ="month"
42.71 + ;data5!2 = "lat"
42.72 + ;data5!3 = "lon"
42.73 +
42.74 + data6!0 ="year"
42.75 + data6!1 ="month"
42.76 + data6!2 = "lat"
42.77 + data6!3 = "lon"
42.78 +
42.79 + data7!0 ="year"
42.80 + data7!1 ="month"
42.81 + data7!2 = "lat"
42.82 + data7!3 = "lon"
42.83 +
42.84 + data8!0 ="year"
42.85 + data8!1 ="month"
42.86 + data8!2 = "lat"
42.87 + data8!3 = "lon"
42.88 +
42.89 + data9!0 ="year"
42.90 + data9!1 ="month"
42.91 + data9!2 = "lat"
42.92 + data9!3 = "lon"
42.93 +
42.94 + data10!0 ="year"
42.95 + data10!1 ="month"
42.96 + data10!2 = "lat"
42.97 + data10!3 = "lon"
42.98 +
42.99 + date!0 ="year"
42.100 + date!1 ="month"
42.101 + date@long_name = "date: yyyymm"
42.102 +
42.103 +; input dir
42.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
42.105 +
42.106 + do m = 0,nyear-1
42.107 + year = year_start + m
42.108 + do n = 0,nmonth-1
42.109 + nn = n+1
42.110 + date(m,n) = year*100 +nn
42.111 +
42.112 +; input file
42.113 + if (nn .ge. 10) then
42.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
42.115 + else
42.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
42.117 + end if
42.118 +
42.119 + print (fili)
42.120 +
42.121 + g = addfile (diri+fili,"r")
42.122 +
42.123 + b = g->NEE
42.124 + data1(m,n,:,:) = (/b(0,:,:)/)
42.125 + data1@long_name = b@long_name
42.126 + data1@units = b@units
42.127 + data1@_FillValue = b@_FillValue
42.128 + delete (b)
42.129 +
42.130 + b = g->GPP
42.131 + data2(m,n,:,:) = (/b(0,:,:)/)
42.132 + data2@long_name = b@long_name
42.133 + data2@units = b@units
42.134 + data2@_FillValue = b@_FillValue
42.135 + delete (b)
42.136 +
42.137 + b = g->ER
42.138 + data3(m,n,:,:) = (/b(0,:,:)/)
42.139 + data3@long_name = b@long_name
42.140 + data3@units = b@units
42.141 + data3@_FillValue = b@_FillValue
42.142 + delete (b)
42.143 +
42.144 + ;b = g->NETRAD
42.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
42.146 + ;data4@long_name = b@long_name
42.147 + ;data4@units = b@units
42.148 + ;data4@_FillValue = b@_FillValue
42.149 + ;delete (b)
42.150 +
42.151 + ;b = g->LATENT
42.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
42.153 + ;data5@long_name = b@long_name
42.154 + ;data5@units = b@units
42.155 + ;data5@_FillValue = b@_FillValue
42.156 + ;delete (b)
42.157 +
42.158 + b = g->FSH
42.159 + data6(m,n,:,:) = (/b(0,:,:)/)
42.160 + data6@long_name = b@long_name
42.161 + data6@units = b@units
42.162 + data6@_FillValue = b@_FillValue
42.163 + delete (b)
42.164 +
42.165 + b = g->FSDS
42.166 + data7(m,n,:,:) = (/b(0,:,:)/)
42.167 + data7@long_name = b@long_name
42.168 + data7@units = b@units
42.169 + data7@_FillValue = b@_FillValue
42.170 + delete (b)
42.171 +
42.172 + b = g->FCEV
42.173 + data8(m,n,:,:) = (/b(0,:,:)/)
42.174 + data8@long_name = b@long_name
42.175 + data8@units = b@units
42.176 + data8@_FillValue = b@_FillValue
42.177 + delete (b)
42.178 +
42.179 + b = g->FCTR
42.180 + data9(m,n,:,:) = (/b(0,:,:)/)
42.181 + data9@long_name = b@long_name
42.182 + data9@units = b@units
42.183 + data9@_FillValue = b@_FillValue
42.184 + delete (b)
42.185 +
42.186 + b = g->FGEV
42.187 + data10(m,n,:,:) = (/b(0,:,:)/)
42.188 + data10@long_name = b@long_name
42.189 + data10@units = b@units
42.190 + data10@_FillValue = b@_FillValue
42.191 + delete (b)
42.192 +
42.193 + end do
42.194 + end do
42.195 +
42.196 + c->NEE = data1
42.197 + c->GPP = data2
42.198 + c->ER = data3
42.199 + ;c->NETRAD = data4
42.200 + ;c->LATENT = data5
42.201 + c->FSH = data6
42.202 + c->FSDS = data7
42.203 + c->FCEV = data8
42.204 + c->FCTR = data9
42.205 + c->FGEV = data10
42.206 + c->date = date
42.207 + c->area = g->area
42.208 +
42.209 + print (date)
42.210 +
42.211 +end
43.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
43.2 +++ b/time_series/10.write_ameriflux_cn_FMH40cn.ncl Thu Mar 26 14:02:21 2009 -0400
43.3 @@ -0,0 +1,208 @@
43.4 +;************************************************
43.5 +; Read ascii, Write nc
43.6 +; output: lat: N->S lon: -180W->180E
43.7 +;************************************************
43.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
43.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
43.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
43.11 +;************************************************
43.12 +begin
43.13 +
43.14 +; output
43.15 +
43.16 + model_name = "i01.40cn"
43.17 +
43.18 + ;diro = "/ptmp/jeff/"
43.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.40cn_out/"
43.20 + filo = model_name + "_ameriflux_2076-2100_monthly.nc"
43.21 + c = addfile(diro+filo,"c")
43.22 + filedimdef(c,"year",-1,True)
43.23 +
43.24 +; input data
43.25 +
43.26 + nlat = 96
43.27 + nlon = 144
43.28 +
43.29 + year_start = 2076
43.30 + year_end = 2100
43.31 +
43.32 + nyear = year_end - year_start + 1
43.33 + nmonth = 12
43.34 +
43.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
43.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
43.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
43.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
43.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
43.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
43.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
43.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
43.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
43.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
43.45 + date = new((/nyear,nmonth/),integer)
43.46 +
43.47 +; name dimensions and assign coordinate variables
43.48 +
43.49 + data1!0 ="year"
43.50 + data1!1 ="month"
43.51 + data1!2 = "lat"
43.52 + data1!3 = "lon"
43.53 +
43.54 + data2!0 ="year"
43.55 + data2!1 ="month"
43.56 + data2!2 = "lat"
43.57 + data2!3 = "lon"
43.58 +
43.59 + data3!0 ="year"
43.60 + data3!1 ="month"
43.61 + data3!2 = "lat"
43.62 + data3!3 = "lon"
43.63 +
43.64 + ;data4!0 ="year"
43.65 + ;data4!1 ="month"
43.66 + ;data4!2 = "lat"
43.67 + ;data4!3 = "lon"
43.68 +
43.69 + ;data5!0 ="year"
43.70 + ;data5!1 ="month"
43.71 + ;data5!2 = "lat"
43.72 + ;data5!3 = "lon"
43.73 +
43.74 + data6!0 ="year"
43.75 + data6!1 ="month"
43.76 + data6!2 = "lat"
43.77 + data6!3 = "lon"
43.78 +
43.79 + data7!0 ="year"
43.80 + data7!1 ="month"
43.81 + data7!2 = "lat"
43.82 + data7!3 = "lon"
43.83 +
43.84 + data8!0 ="year"
43.85 + data8!1 ="month"
43.86 + data8!2 = "lat"
43.87 + data8!3 = "lon"
43.88 +
43.89 + data9!0 ="year"
43.90 + data9!1 ="month"
43.91 + data9!2 = "lat"
43.92 + data9!3 = "lon"
43.93 +
43.94 + data10!0 ="year"
43.95 + data10!1 ="month"
43.96 + data10!2 = "lat"
43.97 + data10!3 = "lon"
43.98 +
43.99 + date!0 ="year"
43.100 + date!1 ="month"
43.101 + date@long_name = "date: yyyymm"
43.102 +
43.103 +; input dir
43.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
43.105 +
43.106 + do m = 0,nyear-1
43.107 + year = year_start + m
43.108 + do n = 0,nmonth-1
43.109 + nn = n+1
43.110 + date(m,n) = year*100 +nn
43.111 +
43.112 +; input file
43.113 + if (nn .ge. 10) then
43.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
43.115 + else
43.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
43.117 + end if
43.118 +
43.119 + print (fili)
43.120 +
43.121 + g = addfile (diri+fili,"r")
43.122 +
43.123 + b = g->NEE
43.124 + data1(m,n,:,:) = (/b(0,:,:)/)
43.125 + data1@long_name = b@long_name
43.126 + data1@units = b@units
43.127 + data1@_FillValue = b@_FillValue
43.128 + delete (b)
43.129 +
43.130 + b = g->GPP
43.131 + data2(m,n,:,:) = (/b(0,:,:)/)
43.132 + data2@long_name = b@long_name
43.133 + data2@units = b@units
43.134 + data2@_FillValue = b@_FillValue
43.135 + delete (b)
43.136 +
43.137 + b = g->ER
43.138 + data3(m,n,:,:) = (/b(0,:,:)/)
43.139 + data3@long_name = b@long_name
43.140 + data3@units = b@units
43.141 + data3@_FillValue = b@_FillValue
43.142 + delete (b)
43.143 +
43.144 + ;b = g->NETRAD
43.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
43.146 + ;data4@long_name = b@long_name
43.147 + ;data4@units = b@units
43.148 + ;data4@_FillValue = b@_FillValue
43.149 + ;delete (b)
43.150 +
43.151 + ;b = g->LATENT
43.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
43.153 + ;data5@long_name = b@long_name
43.154 + ;data5@units = b@units
43.155 + ;data5@_FillValue = b@_FillValue
43.156 + ;delete (b)
43.157 +
43.158 + b = g->FSH
43.159 + data6(m,n,:,:) = (/b(0,:,:)/)
43.160 + data6@long_name = b@long_name
43.161 + data6@units = b@units
43.162 + data6@_FillValue = b@_FillValue
43.163 + delete (b)
43.164 +
43.165 + b = g->FSDS
43.166 + data7(m,n,:,:) = (/b(0,:,:)/)
43.167 + data7@long_name = b@long_name
43.168 + data7@units = b@units
43.169 + data7@_FillValue = b@_FillValue
43.170 + delete (b)
43.171 +
43.172 + b = g->FCEV
43.173 + data8(m,n,:,:) = (/b(0,:,:)/)
43.174 + data8@long_name = b@long_name
43.175 + data8@units = b@units
43.176 + data8@_FillValue = b@_FillValue
43.177 + delete (b)
43.178 +
43.179 + b = g->FCTR
43.180 + data9(m,n,:,:) = (/b(0,:,:)/)
43.181 + data9@long_name = b@long_name
43.182 + data9@units = b@units
43.183 + data9@_FillValue = b@_FillValue
43.184 + delete (b)
43.185 +
43.186 + b = g->FGEV
43.187 + data10(m,n,:,:) = (/b(0,:,:)/)
43.188 + data10@long_name = b@long_name
43.189 + data10@units = b@units
43.190 + data10@_FillValue = b@_FillValue
43.191 + delete (b)
43.192 +
43.193 + end do
43.194 + end do
43.195 +
43.196 + c->NEE = data1
43.197 + c->GPP = data2
43.198 + c->ER = data3
43.199 + ;c->NETRAD = data4
43.200 + ;c->LATENT = data5
43.201 + c->FSH = data6
43.202 + c->FSDS = data7
43.203 + c->FCEV = data8
43.204 + c->FCTR = data9
43.205 + c->FGEV = data10
43.206 + c->date = date
43.207 + c->area = g->area
43.208 +
43.209 + print (date)
43.210 +
43.211 +end
44.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
44.2 +++ b/time_series/10.write_ameriflux_cn_FMH41cn.ncl Thu Mar 26 14:02:21 2009 -0400
44.3 @@ -0,0 +1,208 @@
44.4 +;************************************************
44.5 +; Read ascii, Write nc
44.6 +; output: lat: N->S lon: -180W->180E
44.7 +;************************************************
44.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
44.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
44.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
44.11 +;************************************************
44.12 +begin
44.13 +
44.14 +; output
44.15 +
44.16 + model_name = "i01.41cn"
44.17 +
44.18 + ;diro = "/ptmp/jeff/"
44.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.41cn_out/"
44.20 + filo = model_name + "_ameriflux_2076-2100_monthly.nc"
44.21 + c = addfile(diro+filo,"c")
44.22 + filedimdef(c,"year",-1,True)
44.23 +
44.24 +; input data
44.25 +
44.26 + nlat = 96
44.27 + nlon = 144
44.28 +
44.29 + year_start = 2076
44.30 + year_end = 2100
44.31 +
44.32 + nyear = year_end - year_start + 1
44.33 + nmonth = 12
44.34 +
44.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
44.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
44.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
44.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
44.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
44.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
44.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
44.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
44.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
44.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
44.45 + date = new((/nyear,nmonth/),integer)
44.46 +
44.47 +; name dimensions and assign coordinate variables
44.48 +
44.49 + data1!0 ="year"
44.50 + data1!1 ="month"
44.51 + data1!2 = "lat"
44.52 + data1!3 = "lon"
44.53 +
44.54 + data2!0 ="year"
44.55 + data2!1 ="month"
44.56 + data2!2 = "lat"
44.57 + data2!3 = "lon"
44.58 +
44.59 + data3!0 ="year"
44.60 + data3!1 ="month"
44.61 + data3!2 = "lat"
44.62 + data3!3 = "lon"
44.63 +
44.64 + ;data4!0 ="year"
44.65 + ;data4!1 ="month"
44.66 + ;data4!2 = "lat"
44.67 + ;data4!3 = "lon"
44.68 +
44.69 + ;data5!0 ="year"
44.70 + ;data5!1 ="month"
44.71 + ;data5!2 = "lat"
44.72 + ;data5!3 = "lon"
44.73 +
44.74 + data6!0 ="year"
44.75 + data6!1 ="month"
44.76 + data6!2 = "lat"
44.77 + data6!3 = "lon"
44.78 +
44.79 + data7!0 ="year"
44.80 + data7!1 ="month"
44.81 + data7!2 = "lat"
44.82 + data7!3 = "lon"
44.83 +
44.84 + data8!0 ="year"
44.85 + data8!1 ="month"
44.86 + data8!2 = "lat"
44.87 + data8!3 = "lon"
44.88 +
44.89 + data9!0 ="year"
44.90 + data9!1 ="month"
44.91 + data9!2 = "lat"
44.92 + data9!3 = "lon"
44.93 +
44.94 + data10!0 ="year"
44.95 + data10!1 ="month"
44.96 + data10!2 = "lat"
44.97 + data10!3 = "lon"
44.98 +
44.99 + date!0 ="year"
44.100 + date!1 ="month"
44.101 + date@long_name = "date: yyyymm"
44.102 +
44.103 +; input dir
44.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
44.105 +
44.106 + do m = 0,nyear-1
44.107 + year = year_start + m
44.108 + do n = 0,nmonth-1
44.109 + nn = n+1
44.110 + date(m,n) = year*100 +nn
44.111 +
44.112 +; input file
44.113 + if (nn .ge. 10) then
44.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
44.115 + else
44.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
44.117 + end if
44.118 +
44.119 + print (fili)
44.120 +
44.121 + g = addfile (diri+fili,"r")
44.122 +
44.123 + b = g->NEE
44.124 + data1(m,n,:,:) = (/b(0,:,:)/)
44.125 + data1@long_name = b@long_name
44.126 + data1@units = b@units
44.127 + data1@_FillValue = b@_FillValue
44.128 + delete (b)
44.129 +
44.130 + b = g->GPP
44.131 + data2(m,n,:,:) = (/b(0,:,:)/)
44.132 + data2@long_name = b@long_name
44.133 + data2@units = b@units
44.134 + data2@_FillValue = b@_FillValue
44.135 + delete (b)
44.136 +
44.137 + b = g->ER
44.138 + data3(m,n,:,:) = (/b(0,:,:)/)
44.139 + data3@long_name = b@long_name
44.140 + data3@units = b@units
44.141 + data3@_FillValue = b@_FillValue
44.142 + delete (b)
44.143 +
44.144 + ;b = g->NETRAD
44.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
44.146 + ;data4@long_name = b@long_name
44.147 + ;data4@units = b@units
44.148 + ;data4@_FillValue = b@_FillValue
44.149 + ;delete (b)
44.150 +
44.151 + ;b = g->LATENT
44.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
44.153 + ;data5@long_name = b@long_name
44.154 + ;data5@units = b@units
44.155 + ;data5@_FillValue = b@_FillValue
44.156 + ;delete (b)
44.157 +
44.158 + b = g->FSH
44.159 + data6(m,n,:,:) = (/b(0,:,:)/)
44.160 + data6@long_name = b@long_name
44.161 + data6@units = b@units
44.162 + data6@_FillValue = b@_FillValue
44.163 + delete (b)
44.164 +
44.165 + b = g->FSDS
44.166 + data7(m,n,:,:) = (/b(0,:,:)/)
44.167 + data7@long_name = b@long_name
44.168 + data7@units = b@units
44.169 + data7@_FillValue = b@_FillValue
44.170 + delete (b)
44.171 +
44.172 + b = g->FCEV
44.173 + data8(m,n,:,:) = (/b(0,:,:)/)
44.174 + data8@long_name = b@long_name
44.175 + data8@units = b@units
44.176 + data8@_FillValue = b@_FillValue
44.177 + delete (b)
44.178 +
44.179 + b = g->FCTR
44.180 + data9(m,n,:,:) = (/b(0,:,:)/)
44.181 + data9@long_name = b@long_name
44.182 + data9@units = b@units
44.183 + data9@_FillValue = b@_FillValue
44.184 + delete (b)
44.185 +
44.186 + b = g->FGEV
44.187 + data10(m,n,:,:) = (/b(0,:,:)/)
44.188 + data10@long_name = b@long_name
44.189 + data10@units = b@units
44.190 + data10@_FillValue = b@_FillValue
44.191 + delete (b)
44.192 +
44.193 + end do
44.194 + end do
44.195 +
44.196 + c->NEE = data1
44.197 + c->GPP = data2
44.198 + c->ER = data3
44.199 + ;c->NETRAD = data4
44.200 + ;c->LATENT = data5
44.201 + c->FSH = data6
44.202 + c->FSDS = data7
44.203 + c->FCEV = data8
44.204 + c->FCTR = data9
44.205 + c->FGEV = data10
44.206 + c->date = date
44.207 + c->area = g->area
44.208 +
44.209 + print (date)
44.210 +
44.211 +end
45.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
45.2 +++ b/time_series/10.write_ameriflux_cn_FMH42cn.ncl Thu Mar 26 14:02:21 2009 -0400
45.3 @@ -0,0 +1,208 @@
45.4 +;************************************************
45.5 +; Read ascii, Write nc
45.6 +; output: lat: N->S lon: -180W->180E
45.7 +;************************************************
45.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
45.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
45.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
45.11 +;************************************************
45.12 +begin
45.13 +
45.14 +; output
45.15 +
45.16 + model_name = "i01.42cn"
45.17 +
45.18 + ;diro = "/ptmp/jeff/"
45.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases/i01.42cn_out/"
45.20 + filo = model_name + "_ameriflux_2976-3000_monthly.nc"
45.21 + c = addfile(diro+filo,"c")
45.22 + filedimdef(c,"year",-1,True)
45.23 +
45.24 +; input data
45.25 +
45.26 + nlat = 96
45.27 + nlon = 144
45.28 +
45.29 + year_start = 2976
45.30 + year_end = 3000
45.31 +
45.32 + nyear = year_end - year_start + 1
45.33 + nmonth = 12
45.34 +
45.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
45.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
45.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
45.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
45.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
45.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
45.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
45.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
45.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
45.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
45.45 + date = new((/nyear,nmonth/),integer)
45.46 +
45.47 +; name dimensions and assign coordinate variables
45.48 +
45.49 + data1!0 ="year"
45.50 + data1!1 ="month"
45.51 + data1!2 = "lat"
45.52 + data1!3 = "lon"
45.53 +
45.54 + data2!0 ="year"
45.55 + data2!1 ="month"
45.56 + data2!2 = "lat"
45.57 + data2!3 = "lon"
45.58 +
45.59 + data3!0 ="year"
45.60 + data3!1 ="month"
45.61 + data3!2 = "lat"
45.62 + data3!3 = "lon"
45.63 +
45.64 + ;data4!0 ="year"
45.65 + ;data4!1 ="month"
45.66 + ;data4!2 = "lat"
45.67 + ;data4!3 = "lon"
45.68 +
45.69 + ;data5!0 ="year"
45.70 + ;data5!1 ="month"
45.71 + ;data5!2 = "lat"
45.72 + ;data5!3 = "lon"
45.73 +
45.74 + data6!0 ="year"
45.75 + data6!1 ="month"
45.76 + data6!2 = "lat"
45.77 + data6!3 = "lon"
45.78 +
45.79 + data7!0 ="year"
45.80 + data7!1 ="month"
45.81 + data7!2 = "lat"
45.82 + data7!3 = "lon"
45.83 +
45.84 + data8!0 ="year"
45.85 + data8!1 ="month"
45.86 + data8!2 = "lat"
45.87 + data8!3 = "lon"
45.88 +
45.89 + data9!0 ="year"
45.90 + data9!1 ="month"
45.91 + data9!2 = "lat"
45.92 + data9!3 = "lon"
45.93 +
45.94 + data10!0 ="year"
45.95 + data10!1 ="month"
45.96 + data10!2 = "lat"
45.97 + data10!3 = "lon"
45.98 +
45.99 + date!0 ="year"
45.100 + date!1 ="month"
45.101 + date@long_name = "date: yyyymm"
45.102 +
45.103 +; input dir
45.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases/"+model_name+"/"
45.105 +
45.106 + do m = 0,nyear-1
45.107 + year = year_start + m
45.108 + do n = 0,nmonth-1
45.109 + nn = n+1
45.110 + date(m,n) = year*100 +nn
45.111 +
45.112 +; input file
45.113 + if (nn .ge. 10) then
45.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
45.115 + else
45.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
45.117 + end if
45.118 +
45.119 + print (fili)
45.120 +
45.121 + g = addfile (diri+fili,"r")
45.122 +
45.123 + b = g->NEE
45.124 + data1(m,n,:,:) = (/b(0,:,:)/)
45.125 + data1@long_name = b@long_name
45.126 + data1@units = b@units
45.127 + data1@_FillValue = b@_FillValue
45.128 + delete (b)
45.129 +
45.130 + b = g->GPP
45.131 + data2(m,n,:,:) = (/b(0,:,:)/)
45.132 + data2@long_name = b@long_name
45.133 + data2@units = b@units
45.134 + data2@_FillValue = b@_FillValue
45.135 + delete (b)
45.136 +
45.137 + b = g->ER
45.138 + data3(m,n,:,:) = (/b(0,:,:)/)
45.139 + data3@long_name = b@long_name
45.140 + data3@units = b@units
45.141 + data3@_FillValue = b@_FillValue
45.142 + delete (b)
45.143 +
45.144 + ;b = g->NETRAD
45.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
45.146 + ;data4@long_name = b@long_name
45.147 + ;data4@units = b@units
45.148 + ;data4@_FillValue = b@_FillValue
45.149 + ;delete (b)
45.150 +
45.151 + ;b = g->LATENT
45.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
45.153 + ;data5@long_name = b@long_name
45.154 + ;data5@units = b@units
45.155 + ;data5@_FillValue = b@_FillValue
45.156 + ;delete (b)
45.157 +
45.158 + b = g->FSH
45.159 + data6(m,n,:,:) = (/b(0,:,:)/)
45.160 + data6@long_name = b@long_name
45.161 + data6@units = b@units
45.162 + data6@_FillValue = b@_FillValue
45.163 + delete (b)
45.164 +
45.165 + b = g->FSDS
45.166 + data7(m,n,:,:) = (/b(0,:,:)/)
45.167 + data7@long_name = b@long_name
45.168 + data7@units = b@units
45.169 + data7@_FillValue = b@_FillValue
45.170 + delete (b)
45.171 +
45.172 + b = g->FCEV
45.173 + data8(m,n,:,:) = (/b(0,:,:)/)
45.174 + data8@long_name = b@long_name
45.175 + data8@units = b@units
45.176 + data8@_FillValue = b@_FillValue
45.177 + delete (b)
45.178 +
45.179 + b = g->FCTR
45.180 + data9(m,n,:,:) = (/b(0,:,:)/)
45.181 + data9@long_name = b@long_name
45.182 + data9@units = b@units
45.183 + data9@_FillValue = b@_FillValue
45.184 + delete (b)
45.185 +
45.186 + b = g->FGEV
45.187 + data10(m,n,:,:) = (/b(0,:,:)/)
45.188 + data10@long_name = b@long_name
45.189 + data10@units = b@units
45.190 + data10@_FillValue = b@_FillValue
45.191 + delete (b)
45.192 +
45.193 + end do
45.194 + end do
45.195 +
45.196 + c->NEE = data1
45.197 + c->GPP = data2
45.198 + c->ER = data3
45.199 + ;c->NETRAD = data4
45.200 + ;c->LATENT = data5
45.201 + c->FSH = data6
45.202 + c->FSDS = data7
45.203 + c->FCEV = data8
45.204 + c->FCTR = data9
45.205 + c->FGEV = data10
45.206 + c->date = date
45.207 + c->area = g->area
45.208 +
45.209 + print (date)
45.210 +
45.211 +end
46.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
46.2 +++ b/time_series/10.write_ameriflux_cn_FMH43cn.ncl Thu Mar 26 14:02:21 2009 -0400
46.3 @@ -0,0 +1,208 @@
46.4 +;************************************************
46.5 +; Read ascii, Write nc
46.6 +; output: lat: N->S lon: -180W->180E
46.7 +;************************************************
46.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
46.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
46.10 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
46.11 +;************************************************
46.12 +begin
46.13 +
46.14 +; output
46.15 +
46.16 + model_name = "i01.43cn"
46.17 +
46.18 + ;diro = "/ptmp/jeff/"
46.19 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.43cn_out/"
46.20 + filo = model_name + "_ameriflux_2876-2900_monthly.nc"
46.21 + c = addfile(diro+filo,"c")
46.22 + filedimdef(c,"year",-1,True)
46.23 +
46.24 +; input data
46.25 +
46.26 + nlat = 96
46.27 + nlon = 144
46.28 +
46.29 + year_start = 2876
46.30 + year_end = 2900
46.31 +
46.32 + nyear = year_end - year_start + 1
46.33 + nmonth = 12
46.34 +
46.35 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
46.36 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
46.37 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
46.38 + ;data4 = new((/nyear,nmonth,nlat,nlon/),float)
46.39 + ;data5 = new((/nyear,nmonth,nlat,nlon/),float)
46.40 + data6 = new((/nyear,nmonth,nlat,nlon/),float)
46.41 + data7 = new((/nyear,nmonth,nlat,nlon/),float)
46.42 + data8 = new((/nyear,nmonth,nlat,nlon/),float)
46.43 + data9 = new((/nyear,nmonth,nlat,nlon/),float)
46.44 + data10 = new((/nyear,nmonth,nlat,nlon/),float)
46.45 + date = new((/nyear,nmonth/),integer)
46.46 +
46.47 +; name dimensions and assign coordinate variables
46.48 +
46.49 + data1!0 ="year"
46.50 + data1!1 ="month"
46.51 + data1!2 = "lat"
46.52 + data1!3 = "lon"
46.53 +
46.54 + data2!0 ="year"
46.55 + data2!1 ="month"
46.56 + data2!2 = "lat"
46.57 + data2!3 = "lon"
46.58 +
46.59 + data3!0 ="year"
46.60 + data3!1 ="month"
46.61 + data3!2 = "lat"
46.62 + data3!3 = "lon"
46.63 +
46.64 + ;data4!0 ="year"
46.65 + ;data4!1 ="month"
46.66 + ;data4!2 = "lat"
46.67 + ;data4!3 = "lon"
46.68 +
46.69 + ;data5!0 ="year"
46.70 + ;data5!1 ="month"
46.71 + ;data5!2 = "lat"
46.72 + ;data5!3 = "lon"
46.73 +
46.74 + data6!0 ="year"
46.75 + data6!1 ="month"
46.76 + data6!2 = "lat"
46.77 + data6!3 = "lon"
46.78 +
46.79 + data7!0 ="year"
46.80 + data7!1 ="month"
46.81 + data7!2 = "lat"
46.82 + data7!3 = "lon"
46.83 +
46.84 + data8!0 ="year"
46.85 + data8!1 ="month"
46.86 + data8!2 = "lat"
46.87 + data8!3 = "lon"
46.88 +
46.89 + data9!0 ="year"
46.90 + data9!1 ="month"
46.91 + data9!2 = "lat"
46.92 + data9!3 = "lon"
46.93 +
46.94 + data10!0 ="year"
46.95 + data10!1 ="month"
46.96 + data10!2 = "lat"
46.97 + data10!3 = "lon"
46.98 +
46.99 + date!0 ="year"
46.100 + date!1 ="month"
46.101 + date@long_name = "date: yyyymm"
46.102 +
46.103 +; input dir
46.104 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
46.105 +
46.106 + do m = 0,nyear-1
46.107 + year = year_start + m
46.108 + do n = 0,nmonth-1
46.109 + nn = n+1
46.110 + date(m,n) = year*100 +nn
46.111 +
46.112 +; input file
46.113 + if (nn .ge. 10) then
46.114 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
46.115 + else
46.116 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
46.117 + end if
46.118 +
46.119 + print (fili)
46.120 +
46.121 + g = addfile (diri+fili,"r")
46.122 +
46.123 + b = g->NEE
46.124 + data1(m,n,:,:) = (/b(0,:,:)/)
46.125 + data1@long_name = b@long_name
46.126 + data1@units = b@units
46.127 + data1@_FillValue = b@_FillValue
46.128 + delete (b)
46.129 +
46.130 + b = g->GPP
46.131 + data2(m,n,:,:) = (/b(0,:,:)/)
46.132 + data2@long_name = b@long_name
46.133 + data2@units = b@units
46.134 + data2@_FillValue = b@_FillValue
46.135 + delete (b)
46.136 +
46.137 + b = g->ER
46.138 + data3(m,n,:,:) = (/b(0,:,:)/)
46.139 + data3@long_name = b@long_name
46.140 + data3@units = b@units
46.141 + data3@_FillValue = b@_FillValue
46.142 + delete (b)
46.143 +
46.144 + ;b = g->NETRAD
46.145 + ;data4(m,n,:,:) = (/b(0,:,:)/)
46.146 + ;data4@long_name = b@long_name
46.147 + ;data4@units = b@units
46.148 + ;data4@_FillValue = b@_FillValue
46.149 + ;delete (b)
46.150 +
46.151 + ;b = g->LATENT
46.152 + ;data5(m,n,:,:) = (/b(0,:,:)/)
46.153 + ;data5@long_name = b@long_name
46.154 + ;data5@units = b@units
46.155 + ;data5@_FillValue = b@_FillValue
46.156 + ;delete (b)
46.157 +
46.158 + b = g->FSH
46.159 + data6(m,n,:,:) = (/b(0,:,:)/)
46.160 + data6@long_name = b@long_name
46.161 + data6@units = b@units
46.162 + data6@_FillValue = b@_FillValue
46.163 + delete (b)
46.164 +
46.165 + b = g->FSDS
46.166 + data7(m,n,:,:) = (/b(0,:,:)/)
46.167 + data7@long_name = b@long_name
46.168 + data7@units = b@units
46.169 + data7@_FillValue = b@_FillValue
46.170 + delete (b)
46.171 +
46.172 + b = g->FCEV
46.173 + data8(m,n,:,:) = (/b(0,:,:)/)
46.174 + data8@long_name = b@long_name
46.175 + data8@units = b@units
46.176 + data8@_FillValue = b@_FillValue
46.177 + delete (b)
46.178 +
46.179 + b = g->FCTR
46.180 + data9(m,n,:,:) = (/b(0,:,:)/)
46.181 + data9@long_name = b@long_name
46.182 + data9@units = b@units
46.183 + data9@_FillValue = b@_FillValue
46.184 + delete (b)
46.185 +
46.186 + b = g->FGEV
46.187 + data10(m,n,:,:) = (/b(0,:,:)/)
46.188 + data10@long_name = b@long_name
46.189 + data10@units = b@units
46.190 + data10@_FillValue = b@_FillValue
46.191 + delete (b)
46.192 +
46.193 + end do
46.194 + end do
46.195 +
46.196 + c->NEE = data1
46.197 + c->GPP = data2
46.198 + c->ER = data3
46.199 + ;c->NETRAD = data4
46.200 + ;c->LATENT = data5
46.201 + c->FSH = data6
46.202 + c->FSDS = data7
46.203 + c->FCEV = data8
46.204 + c->FCTR = data9
46.205 + c->FGEV = data10
46.206 + c->date = date
46.207 + c->area = g->area
46.208 +
46.209 + print (date)
46.210 +
46.211 +end
47.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
47.2 +++ b/time_series/20.write_fire_cn_FMH36cn.ncl Thu Mar 26 14:02:21 2009 -0400
47.3 @@ -0,0 +1,104 @@
47.4 +;************************************************
47.5 +; output: lat: N->S lon: -180W->180E
47.6 +;************************************************
47.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
47.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
47.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
47.10 +;************************************************
47.11 +begin
47.12 +
47.13 +; output
47.14 +
47.15 + model_name = "i01.36cn"
47.16 +
47.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.36cn_out/"
47.18 + filo = model_name + "_Fire_C_2076-2100_monthly.nc"
47.19 + c = addfile(diro+filo,"c")
47.20 + filedimdef(c,"year",-1,True)
47.21 +
47.22 +; input data
47.23 +
47.24 + nlat = 96
47.25 + nlon = 144
47.26 +
47.27 + year_start = 2076
47.28 + year_end = 2100
47.29 +
47.30 + nyear = year_end - year_start + 1
47.31 + nmonth = 12
47.32 +
47.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
47.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
47.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
47.36 + date = new((/nyear,nmonth/),integer)
47.37 +
47.38 +; input dir
47.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
47.40 +
47.41 + do m = 0,nyear-1
47.42 + year = year_start + m
47.43 + do n = 0,nmonth-1
47.44 + nn = n+1
47.45 + date(m,n) = year*100 +nn
47.46 +
47.47 +; input file
47.48 + if (nn .ge. 10) then
47.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
47.50 + else
47.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
47.52 + end if
47.53 +
47.54 +; print (fili)
47.55 +
47.56 + g = addfile (diri+fili,"r")
47.57 +
47.58 + b1 = g->COL_FIRE_CLOSS
47.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
47.60 +
47.61 + b2 = g->NPP
47.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
47.63 +
47.64 + b3 = g->NEE
47.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
47.66 + end do
47.67 + end do
47.68 +
47.69 +; name dimensions and assign coordinate variables
47.70 +
47.71 + data1!0 ="year"
47.72 + data1!1 ="month"
47.73 + data1!2 = "lat"
47.74 + data1!3 = "lon"
47.75 + data1@long_name = b1@long_name
47.76 + data1@units = b1@units
47.77 + data1@_FillValue = b1@_FillValue
47.78 +
47.79 + data2!0 ="year"
47.80 + data2!1 ="month"
47.81 + data2!2 = "lat"
47.82 + data2!3 = "lon"
47.83 + data2@long_name = b2@long_name
47.84 + data2@units = b2@units
47.85 + data2@_FillValue = b2@_FillValue
47.86 +
47.87 + data3!0 ="year"
47.88 + data3!1 ="month"
47.89 + data3!2 = "lat"
47.90 + data3!3 = "lon"
47.91 + data3@long_name = b3@long_name
47.92 + data3@units = b3@units
47.93 + data3@_FillValue = b3@_FillValue
47.94 +
47.95 + date!0 ="year"
47.96 + date!1 ="month"
47.97 + date@long_name = "date: yyyymm"
47.98 +
47.99 + c->COL_FIRE_CLOSS = data1
47.100 + c->NPP = data2
47.101 + c->NEE = data3
47.102 + c->date = date
47.103 + c->area = g->area
47.104 +
47.105 + print (date)
47.106 +
47.107 +end
48.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
48.2 +++ b/time_series/20.write_fire_cn_FMH37cn_cont.ncl Thu Mar 26 14:02:21 2009 -0400
48.3 @@ -0,0 +1,104 @@
48.4 +;************************************************
48.5 +; output: lat: N->S lon: -180W->180E
48.6 +;************************************************
48.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
48.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
48.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
48.10 +;************************************************
48.11 +begin
48.12 +
48.13 +; output
48.14 +
48.15 + model_name = "i01.37cn_cont"
48.16 +
48.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases/i01.37cn_cont_out/"
48.18 + filo = model_name + "_Fire_C_2976-3000_monthly.nc"
48.19 + c = addfile(diro+filo,"c")
48.20 + filedimdef(c,"year",-1,True)
48.21 +
48.22 +; input data
48.23 +
48.24 + nlat = 96
48.25 + nlon = 144
48.26 +
48.27 + year_start = 2976
48.28 + year_end = 3000
48.29 +
48.30 + nyear = year_end - year_start + 1
48.31 + nmonth = 12
48.32 +
48.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
48.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
48.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
48.36 + date = new((/nyear,nmonth/),integer)
48.37 +
48.38 +; input dir
48.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases/"+model_name+"/"
48.40 +
48.41 + do m = 0,nyear-1
48.42 + year = year_start + m
48.43 + do n = 0,nmonth-1
48.44 + nn = n+1
48.45 + date(m,n) = year*100 +nn
48.46 +
48.47 +; input file
48.48 + if (nn .ge. 10) then
48.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
48.50 + else
48.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
48.52 + end if
48.53 +
48.54 +; print (fili)
48.55 +
48.56 + g = addfile (diri+fili,"r")
48.57 +
48.58 + b1 = g->COL_FIRE_CLOSS
48.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
48.60 +
48.61 + b2 = g->NPP
48.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
48.63 +
48.64 + b3 = g->NEE
48.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
48.66 + end do
48.67 + end do
48.68 +
48.69 +; name dimensions and assign coordinate variables
48.70 +
48.71 + data1!0 ="year"
48.72 + data1!1 ="month"
48.73 + data1!2 = "lat"
48.74 + data1!3 = "lon"
48.75 + data1@long_name = b1@long_name
48.76 + data1@units = b1@units
48.77 + data1@_FillValue = b1@_FillValue
48.78 +
48.79 + data2!0 ="year"
48.80 + data2!1 ="month"
48.81 + data2!2 = "lat"
48.82 + data2!3 = "lon"
48.83 + data2@long_name = b2@long_name
48.84 + data2@units = b2@units
48.85 + data2@_FillValue = b2@_FillValue
48.86 +
48.87 + data3!0 ="year"
48.88 + data3!1 ="month"
48.89 + data3!2 = "lat"
48.90 + data3!3 = "lon"
48.91 + data3@long_name = b3@long_name
48.92 + data3@units = b3@units
48.93 + data3@_FillValue = b3@_FillValue
48.94 +
48.95 + date!0 ="year"
48.96 + date!1 ="month"
48.97 + date@long_name = "date: yyyymm"
48.98 +
48.99 + c->COL_FIRE_CLOSS = data1
48.100 + c->NPP = data2
48.101 + c->NEE = data3
48.102 + c->date = date
48.103 + c->area = g->area
48.104 +
48.105 + print (date)
48.106 +
48.107 +end
49.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
49.2 +++ b/time_series/20.write_fire_cn_FMH38cn.ncl Thu Mar 26 14:02:21 2009 -0400
49.3 @@ -0,0 +1,104 @@
49.4 +;************************************************
49.5 +; output: lat: N->S lon: -180W->180E
49.6 +;************************************************
49.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
49.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
49.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
49.10 +;************************************************
49.11 +begin
49.12 +
49.13 +; output
49.14 +
49.15 + model_name = "i01.38cn"
49.16 +
49.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.38cn_out/"
49.18 + filo = model_name + "_Fire_C_2151-2175_monthly.nc"
49.19 + c = addfile(diro+filo,"c")
49.20 + filedimdef(c,"year",-1,True)
49.21 +
49.22 +; input data
49.23 +
49.24 + nlat = 96
49.25 + nlon = 144
49.26 +
49.27 + year_start = 2151
49.28 + year_end = 2175
49.29 +
49.30 + nyear = year_end - year_start + 1
49.31 + nmonth = 12
49.32 +
49.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
49.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
49.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
49.36 + date = new((/nyear,nmonth/),integer)
49.37 +
49.38 +; input dir
49.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
49.40 +
49.41 + do m = 0,nyear-1
49.42 + year = year_start + m
49.43 + do n = 0,nmonth-1
49.44 + nn = n+1
49.45 + date(m,n) = year*100 +nn
49.46 +
49.47 +; input file
49.48 + if (nn .ge. 10) then
49.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
49.50 + else
49.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
49.52 + end if
49.53 +
49.54 +; print (fili)
49.55 +
49.56 + g = addfile (diri+fili,"r")
49.57 +
49.58 + b1 = g->COL_FIRE_CLOSS
49.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
49.60 +
49.61 + b2 = g->NPP
49.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
49.63 +
49.64 + b3 = g->NEE
49.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
49.66 + end do
49.67 + end do
49.68 +
49.69 +; name dimensions and assign coordinate variables
49.70 +
49.71 + data1!0 ="year"
49.72 + data1!1 ="month"
49.73 + data1!2 = "lat"
49.74 + data1!3 = "lon"
49.75 + data1@long_name = b1@long_name
49.76 + data1@units = b1@units
49.77 + data1@_FillValue = b1@_FillValue
49.78 +
49.79 + data2!0 ="year"
49.80 + data2!1 ="month"
49.81 + data2!2 = "lat"
49.82 + data2!3 = "lon"
49.83 + data2@long_name = b2@long_name
49.84 + data2@units = b2@units
49.85 + data2@_FillValue = b2@_FillValue
49.86 +
49.87 + data3!0 ="year"
49.88 + data3!1 ="month"
49.89 + data3!2 = "lat"
49.90 + data3!3 = "lon"
49.91 + data3@long_name = b3@long_name
49.92 + data3@units = b3@units
49.93 + data3@_FillValue = b3@_FillValue
49.94 +
49.95 + date!0 ="year"
49.96 + date!1 ="month"
49.97 + date@long_name = "date: yyyymm"
49.98 +
49.99 + c->COL_FIRE_CLOSS = data1
49.100 + c->NPP = data2
49.101 + c->NEE = data3
49.102 + c->date = date
49.103 + c->area = g->area
49.104 +
49.105 + print (date)
49.106 +
49.107 +end
50.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
50.2 +++ b/time_series/20.write_fire_cn_FMH39cn.ncl Thu Mar 26 14:02:21 2009 -0400
50.3 @@ -0,0 +1,104 @@
50.4 +;************************************************
50.5 +; output: lat: N->S lon: -180W->180E
50.6 +;************************************************
50.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
50.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
50.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
50.10 +;************************************************
50.11 +begin
50.12 +
50.13 +; output
50.14 +
50.15 + model_name = "i01.39cn"
50.16 +
50.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.39cn_out/"
50.18 + filo = model_name + "_Fire_C_2101-2125_monthly.nc"
50.19 + c = addfile(diro+filo,"c")
50.20 + filedimdef(c,"year",-1,True)
50.21 +
50.22 +; input data
50.23 +
50.24 + nlat = 96
50.25 + nlon = 144
50.26 +
50.27 + year_start = 2101
50.28 + year_end = 2125
50.29 +
50.30 + nyear = year_end - year_start + 1
50.31 + nmonth = 12
50.32 +
50.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
50.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
50.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
50.36 + date = new((/nyear,nmonth/),integer)
50.37 +
50.38 +; input dir
50.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
50.40 +
50.41 + do m = 0,nyear-1
50.42 + year = year_start + m
50.43 + do n = 0,nmonth-1
50.44 + nn = n+1
50.45 + date(m,n) = year*100 +nn
50.46 +
50.47 +; input file
50.48 + if (nn .ge. 10) then
50.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
50.50 + else
50.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
50.52 + end if
50.53 +
50.54 +; print (fili)
50.55 +
50.56 + g = addfile (diri+fili,"r")
50.57 +
50.58 + b1 = g->COL_FIRE_CLOSS
50.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
50.60 +
50.61 + b2 = g->NPP
50.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
50.63 +
50.64 + b3 = g->NEE
50.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
50.66 + end do
50.67 + end do
50.68 +
50.69 +; name dimensions and assign coordinate variables
50.70 +
50.71 + data1!0 ="year"
50.72 + data1!1 ="month"
50.73 + data1!2 = "lat"
50.74 + data1!3 = "lon"
50.75 + data1@long_name = b1@long_name
50.76 + data1@units = b1@units
50.77 + data1@_FillValue = b1@_FillValue
50.78 +
50.79 + data2!0 ="year"
50.80 + data2!1 ="month"
50.81 + data2!2 = "lat"
50.82 + data2!3 = "lon"
50.83 + data2@long_name = b2@long_name
50.84 + data2@units = b2@units
50.85 + data2@_FillValue = b2@_FillValue
50.86 +
50.87 + data3!0 ="year"
50.88 + data3!1 ="month"
50.89 + data3!2 = "lat"
50.90 + data3!3 = "lon"
50.91 + data3@long_name = b3@long_name
50.92 + data3@units = b3@units
50.93 + data3@_FillValue = b3@_FillValue
50.94 +
50.95 + date!0 ="year"
50.96 + date!1 ="month"
50.97 + date@long_name = "date: yyyymm"
50.98 +
50.99 + c->COL_FIRE_CLOSS = data1
50.100 + c->NPP = data2
50.101 + c->NEE = data3
50.102 + c->date = date
50.103 + c->area = g->area
50.104 +
50.105 + print (date)
50.106 +
50.107 +end
51.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
51.2 +++ b/time_series/20.write_fire_cn_FMH40cn.ncl Thu Mar 26 14:02:21 2009 -0400
51.3 @@ -0,0 +1,104 @@
51.4 +;************************************************
51.5 +; output: lat: N->S lon: -180W->180E
51.6 +;************************************************
51.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
51.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
51.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
51.10 +;************************************************
51.11 +begin
51.12 +
51.13 +; output
51.14 +
51.15 + model_name = "i01.40cn"
51.16 +
51.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.40cn_out/"
51.18 + filo = model_name + "_Fire_C_2076-2100_monthly.nc"
51.19 + c = addfile(diro+filo,"c")
51.20 + filedimdef(c,"year",-1,True)
51.21 +
51.22 +; input data
51.23 +
51.24 + nlat = 96
51.25 + nlon = 144
51.26 +
51.27 + year_start = 2076
51.28 + year_end = 2100
51.29 +
51.30 + nyear = year_end - year_start + 1
51.31 + nmonth = 12
51.32 +
51.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
51.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
51.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
51.36 + date = new((/nyear,nmonth/),integer)
51.37 +
51.38 +; input dir
51.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
51.40 +
51.41 + do m = 0,nyear-1
51.42 + year = year_start + m
51.43 + do n = 0,nmonth-1
51.44 + nn = n+1
51.45 + date(m,n) = year*100 +nn
51.46 +
51.47 +; input file
51.48 + if (nn .ge. 10) then
51.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
51.50 + else
51.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
51.52 + end if
51.53 +
51.54 +; print (fili)
51.55 +
51.56 + g = addfile (diri+fili,"r")
51.57 +
51.58 + b1 = g->COL_FIRE_CLOSS
51.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
51.60 +
51.61 + b2 = g->NPP
51.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
51.63 +
51.64 + b3 = g->NEE
51.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
51.66 + end do
51.67 + end do
51.68 +
51.69 +; name dimensions and assign coordinate variables
51.70 +
51.71 + data1!0 ="year"
51.72 + data1!1 ="month"
51.73 + data1!2 = "lat"
51.74 + data1!3 = "lon"
51.75 + data1@long_name = b1@long_name
51.76 + data1@units = b1@units
51.77 + data1@_FillValue = b1@_FillValue
51.78 +
51.79 + data2!0 ="year"
51.80 + data2!1 ="month"
51.81 + data2!2 = "lat"
51.82 + data2!3 = "lon"
51.83 + data2@long_name = b2@long_name
51.84 + data2@units = b2@units
51.85 + data2@_FillValue = b2@_FillValue
51.86 +
51.87 + data3!0 ="year"
51.88 + data3!1 ="month"
51.89 + data3!2 = "lat"
51.90 + data3!3 = "lon"
51.91 + data3@long_name = b3@long_name
51.92 + data3@units = b3@units
51.93 + data3@_FillValue = b3@_FillValue
51.94 +
51.95 + date!0 ="year"
51.96 + date!1 ="month"
51.97 + date@long_name = "date: yyyymm"
51.98 +
51.99 + c->COL_FIRE_CLOSS = data1
51.100 + c->NPP = data2
51.101 + c->NEE = data3
51.102 + c->date = date
51.103 + c->area = g->area
51.104 +
51.105 + print (date)
51.106 +
51.107 +end
52.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
52.2 +++ b/time_series/20.write_fire_cn_FMH41cn.ncl Thu Mar 26 14:02:21 2009 -0400
52.3 @@ -0,0 +1,104 @@
52.4 +;************************************************
52.5 +; output: lat: N->S lon: -180W->180E
52.6 +;************************************************
52.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
52.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
52.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
52.10 +;************************************************
52.11 +begin
52.12 +
52.13 +; output
52.14 +
52.15 + model_name = "i01.41cn"
52.16 +
52.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.41cn_out/"
52.18 + filo = model_name + "_Fire_C_2076-2100_monthly.nc"
52.19 + c = addfile(diro+filo,"c")
52.20 + filedimdef(c,"year",-1,True)
52.21 +
52.22 +; input data
52.23 +
52.24 + nlat = 96
52.25 + nlon = 144
52.26 +
52.27 + year_start = 2076
52.28 + year_end = 2100
52.29 +
52.30 + nyear = year_end - year_start + 1
52.31 + nmonth = 12
52.32 +
52.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
52.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
52.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
52.36 + date = new((/nyear,nmonth/),integer)
52.37 +
52.38 +; input dir
52.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
52.40 +
52.41 + do m = 0,nyear-1
52.42 + year = year_start + m
52.43 + do n = 0,nmonth-1
52.44 + nn = n+1
52.45 + date(m,n) = year*100 +nn
52.46 +
52.47 +; input file
52.48 + if (nn .ge. 10) then
52.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
52.50 + else
52.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
52.52 + end if
52.53 +
52.54 +; print (fili)
52.55 +
52.56 + g = addfile (diri+fili,"r")
52.57 +
52.58 + b1 = g->COL_FIRE_CLOSS
52.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
52.60 +
52.61 + b2 = g->NPP
52.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
52.63 +
52.64 + b3 = g->NEE
52.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
52.66 + end do
52.67 + end do
52.68 +
52.69 +; name dimensions and assign coordinate variables
52.70 +
52.71 + data1!0 ="year"
52.72 + data1!1 ="month"
52.73 + data1!2 = "lat"
52.74 + data1!3 = "lon"
52.75 + data1@long_name = b1@long_name
52.76 + data1@units = b1@units
52.77 + data1@_FillValue = b1@_FillValue
52.78 +
52.79 + data2!0 ="year"
52.80 + data2!1 ="month"
52.81 + data2!2 = "lat"
52.82 + data2!3 = "lon"
52.83 + data2@long_name = b2@long_name
52.84 + data2@units = b2@units
52.85 + data2@_FillValue = b2@_FillValue
52.86 +
52.87 + data3!0 ="year"
52.88 + data3!1 ="month"
52.89 + data3!2 = "lat"
52.90 + data3!3 = "lon"
52.91 + data3@long_name = b3@long_name
52.92 + data3@units = b3@units
52.93 + data3@_FillValue = b3@_FillValue
52.94 +
52.95 + date!0 ="year"
52.96 + date!1 ="month"
52.97 + date@long_name = "date: yyyymm"
52.98 +
52.99 + c->COL_FIRE_CLOSS = data1
52.100 + c->NPP = data2
52.101 + c->NEE = data3
52.102 + c->date = date
52.103 + c->area = g->area
52.104 +
52.105 + print (date)
52.106 +
52.107 +end
53.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
53.2 +++ b/time_series/20.write_fire_cn_FMH42cn.ncl Thu Mar 26 14:02:21 2009 -0400
53.3 @@ -0,0 +1,104 @@
53.4 +;************************************************
53.5 +; output: lat: N->S lon: -180W->180E
53.6 +;************************************************
53.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
53.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
53.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
53.10 +;************************************************
53.11 +begin
53.12 +
53.13 +; output
53.14 +
53.15 + model_name = "i01.42cn"
53.16 +
53.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases/i01.42cn_out/"
53.18 + filo = model_name + "_Fire_C_2976-3000_monthly.nc"
53.19 + c = addfile(diro+filo,"c")
53.20 + filedimdef(c,"year",-1,True)
53.21 +
53.22 +; input data
53.23 +
53.24 + nlat = 96
53.25 + nlon = 144
53.26 +
53.27 + year_start = 2976
53.28 + year_end = 3000
53.29 +
53.30 + nyear = year_end - year_start + 1
53.31 + nmonth = 12
53.32 +
53.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
53.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
53.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
53.36 + date = new((/nyear,nmonth/),integer)
53.37 +
53.38 +; input dir
53.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases/"+model_name+"/"
53.40 +
53.41 + do m = 0,nyear-1
53.42 + year = year_start + m
53.43 + do n = 0,nmonth-1
53.44 + nn = n+1
53.45 + date(m,n) = year*100 +nn
53.46 +
53.47 +; input file
53.48 + if (nn .ge. 10) then
53.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
53.50 + else
53.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
53.52 + end if
53.53 +
53.54 +; print (fili)
53.55 +
53.56 + g = addfile (diri+fili,"r")
53.57 +
53.58 + b1 = g->COL_FIRE_CLOSS
53.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
53.60 +
53.61 + b2 = g->NPP
53.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
53.63 +
53.64 + b3 = g->NEE
53.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
53.66 + end do
53.67 + end do
53.68 +
53.69 +; name dimensions and assign coordinate variables
53.70 +
53.71 + data1!0 ="year"
53.72 + data1!1 ="month"
53.73 + data1!2 = "lat"
53.74 + data1!3 = "lon"
53.75 + data1@long_name = b1@long_name
53.76 + data1@units = b1@units
53.77 + data1@_FillValue = b1@_FillValue
53.78 +
53.79 + data2!0 ="year"
53.80 + data2!1 ="month"
53.81 + data2!2 = "lat"
53.82 + data2!3 = "lon"
53.83 + data2@long_name = b2@long_name
53.84 + data2@units = b2@units
53.85 + data2@_FillValue = b2@_FillValue
53.86 +
53.87 + data3!0 ="year"
53.88 + data3!1 ="month"
53.89 + data3!2 = "lat"
53.90 + data3!3 = "lon"
53.91 + data3@long_name = b3@long_name
53.92 + data3@units = b3@units
53.93 + data3@_FillValue = b3@_FillValue
53.94 +
53.95 + date!0 ="year"
53.96 + date!1 ="month"
53.97 + date@long_name = "date: yyyymm"
53.98 +
53.99 + c->COL_FIRE_CLOSS = data1
53.100 + c->NPP = data2
53.101 + c->NEE = data3
53.102 + c->date = date
53.103 + c->area = g->area
53.104 +
53.105 + print (date)
53.106 +
53.107 +end
54.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
54.2 +++ b/time_series/20.write_fire_cn_FMH43cn.ncl Thu Mar 26 14:02:21 2009 -0400
54.3 @@ -0,0 +1,104 @@
54.4 +;************************************************
54.5 +; output: lat: N->S lon: -180W->180E
54.6 +;************************************************
54.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
54.8 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
54.9 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
54.10 +;************************************************
54.11 +begin
54.12 +
54.13 +; output
54.14 +
54.15 + model_name = "i01.43cn"
54.16 +
54.17 + diro = "/lustre/wolf-ddn/scratch/hof/cases1/i01.43cn_out/"
54.18 + filo = model_name + "_Fire_C_2876-2900_monthly.nc"
54.19 + c = addfile(diro+filo,"c")
54.20 + filedimdef(c,"year",-1,True)
54.21 +
54.22 +; input data
54.23 +
54.24 + nlat = 96
54.25 + nlon = 144
54.26 +
54.27 + year_start = 2876
54.28 + year_end = 2900
54.29 +
54.30 + nyear = year_end - year_start + 1
54.31 + nmonth = 12
54.32 +
54.33 + data1 = new((/nyear,nmonth,nlat,nlon/),float)
54.34 + data2 = new((/nyear,nmonth,nlat,nlon/),float)
54.35 + data3 = new((/nyear,nmonth,nlat,nlon/),float)
54.36 + date = new((/nyear,nmonth/),integer)
54.37 +
54.38 +; input dir
54.39 + diri = "/lustre/wolf-ddn/scratch/hof/cases1/"+model_name+"/"
54.40 +
54.41 + do m = 0,nyear-1
54.42 + year = year_start + m
54.43 + do n = 0,nmonth-1
54.44 + nn = n+1
54.45 + date(m,n) = year*100 +nn
54.46 +
54.47 +; input file
54.48 + if (nn .ge. 10) then
54.49 + fili = model_name+".clm2.h0."+year+"-"+nn+".nc"
54.50 + else
54.51 + fili = model_name+".clm2.h0."+year+"-0"+nn+".nc"
54.52 + end if
54.53 +
54.54 +; print (fili)
54.55 +
54.56 + g = addfile (diri+fili,"r")
54.57 +
54.58 + b1 = g->COL_FIRE_CLOSS
54.59 + data1(m,n,:,:) = (/b1(0,:,:)/)
54.60 +
54.61 + b2 = g->NPP
54.62 + data2(m,n,:,:) = (/b2(0,:,:)/)
54.63 +
54.64 + b3 = g->NEE
54.65 + data3(m,n,:,:) = (/b3(0,:,:)/)
54.66 + end do
54.67 + end do
54.68 +
54.69 +; name dimensions and assign coordinate variables
54.70 +
54.71 + data1!0 ="year"
54.72 + data1!1 ="month"
54.73 + data1!2 = "lat"
54.74 + data1!3 = "lon"
54.75 + data1@long_name = b1@long_name
54.76 + data1@units = b1@units
54.77 + data1@_FillValue = b1@_FillValue
54.78 +
54.79 + data2!0 ="year"
54.80 + data2!1 ="month"
54.81 + data2!2 = "lat"
54.82 + data2!3 = "lon"
54.83 + data2@long_name = b2@long_name
54.84 + data2@units = b2@units
54.85 + data2@_FillValue = b2@_FillValue
54.86 +
54.87 + data3!0 ="year"
54.88 + data3!1 ="month"
54.89 + data3!2 = "lat"
54.90 + data3!3 = "lon"
54.91 + data3@long_name = b3@long_name
54.92 + data3@units = b3@units
54.93 + data3@_FillValue = b3@_FillValue
54.94 +
54.95 + date!0 ="year"
54.96 + date!1 ="month"
54.97 + date@long_name = "date: yyyymm"
54.98 +
54.99 + c->COL_FIRE_CLOSS = data1
54.100 + c->NPP = data2
54.101 + c->NEE = data3
54.102 + c->date = date
54.103 + c->area = g->area
54.104 +
54.105 + print (date)
54.106 +
54.107 +end