Modifications to scoring and graphics production for the final version of code for the C-LAMP paper in GCB.
1 ; ***********************************************
2 ; interpolate into model grids (T42)
3 ; output: lat: S->N lon: 0->360
4 ; input : lat: N->S lon: -180->180
5 ; ***********************************************
6 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
7 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
8 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
9 ;************************************************
14 ;************************************************
16 ;************************************************
17 diro = "/fis/cgd/cseg/people/jeff/clamp_data/lai/"
18 ; filo = "land_class_T42.nc"
19 filo = "land_class_T42_new.nc"
20 c = addfile(diro+filo,"c")
22 ;************************************************
23 ; read in observed data
24 ;************************************************
25 diri = "/fis/cgd/cseg/people/jeff/clamp_data/lai/"
26 fili = "land_class_0.25deg.nc"
27 fili = "land_class_0.25deg_new.nc"
28 g = addfile (diri+fili,"r")
33 ;************************************************
34 ; change into 0-360E, 90S-90N
35 ;************************************************
65 ;************************************************
67 ;************************************************
68 diri2 = "/fis/cgd/cseg/people/jeff/clamp_data/model/"
69 fili2 = "i01.03cn_1545-1569_ANN_climo.nc"
70 f = addfile (diri2+fili2,"r")
82 bo = new((/nlat,nlon/),integer)
83 count = new((/nclass/),integer)
86 if (j.eq.0 .or. j.eq.nlat-1) then
89 LATN = lat(j)+0.5*(lat(j+1)-lat(j))
92 LATS = lat(j)-0.5*(lat(j)-lat(j-1))
96 LATS = lat(j)-0.5*(lat(j)-lat(j-1))
97 LATN = lat(j)+0.5*(lat(j+1)-lat(j))
101 if (i.eq.0 .or. i.eq.nlon-1) then
104 LONR = lon(i)+0.5*(lon(i+1)-lon(i))
106 if (i.eq.nlon-1) then
107 LONL = lon(i)-0.5*(lon(i)-lon(i-1))
111 LONL = lon(i)-0.5*(lon(i)-lon(i-1))
112 LONR = lon(i)+0.5*(lon(i+1)-lon(i))
123 count(n) = num (bi({LATS:LATN},{LONL:LONR}).eq.n)
126 bo(j,i) = maxind(count)
135 bo@long_name = bi@long_name
136 bo@_FillValue = bi@_FillValue
138 print (min(bo) + "/" + max(bo))