Modifications to scoring and graphics production for the final version of code for the C-LAMP paper in GCB.
1 ;************************************************
3 ;************************************************
4 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
5 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
6 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
7 ;************************************************
9 ;---------------------------------------------------
11 c = addfile("Npp_0.05deg_mean_2.nc","c")
12 filedimdef(c,"time",-1,True)
17 ;---------------------------------------------------
19 b = "Npp_0.05deg_mean.int16"
21 x = new((/nlat*nlon/),float)
22 t = new((/1,nlat,nlon/),float)
23 lon = new((/nlon/),float)
24 lat = new((/nlat/),float)
25 time = new((/1/),integer)
28 ; lon = fspan(-180.,179.95,nlon)
29 ; lat = fspan(-90. , 89.95,nlat)
32 lon(i) = -180. + i*(360./nlon)
36 lat(j) = -90. + j*(180./nlat)
44 ;=============================
45 ; create lat and long coordinate variables
46 ;============================
49 lon@units = "degrees-east"
54 lat@units = "degrees_north"
56 ;=============================
57 ; name dimensions of t and assign coordinate variables
58 ;============================
65 t@long_name = "net primary production"
66 t@units = "gC/m^2/year"
68 t@missing_value= 1.e+36
70 ; t = fbinrecread(b,0,(/nlat,nlon/),"float")
76 x(nrec) = fbindirread(b,nrec,1,"float")
80 t = onedtond(x,(/nlat,nlon/))
89 ; if (t(0,j,i) .gt. 0.) then