1 ;************************************************
3 ;************************************************
4 ;load "/fs/cgd/data0/shea/nclGSUN/gsn_code.ncl"
5 ;load "/fs/cgd/data0/shea/nclGSUN/gsn_csm.ncl"
6 ;load "/fs/cgd/data0/shea/nclGSUN/shea_util.ncl"
7 ;************************************************
9 ;---------------------------------------------------
11 c = addfile("Npp_0.05deg_mean4.nc","c")
12 filedimdef(c,"time",-1,True)
17 ;---------------------------------------------------
19 b = "Npp_0.05deg_mean.ASCII2"
21 t = new((/1,nlat,nlon/),float)
22 lon = new((/nlon/),float)
23 lat = new((/nlat/),float)
24 time = new((/1/),integer)
27 ; lon = fspan(-180.,179.95,nlon)
28 ; lat = fspan(-90. , 89.95,nlat)
31 lon(i) = -180. + i*(360./nlon)
35 lat(j) = -90. + j*(180./nlat)
43 ;=============================
44 ; create lat and long coordinate variables
45 ;============================
48 lon@units = "degrees-east"
53 lat@units = "degrees_north"
55 ;=============================
56 ; name dimensions of t and assign coordinate variables
57 ;============================
64 t@long_name = "net primary production"
65 t@units = "gC/m^2/year"
67 t@missing_value= 1.e+36
69 t(0,:,:) = asciiread(b,(/nlat,nlon/),"float")
78 if (t(0,j,i) .gt. 0.) then