Modifications to scoring and graphics production for the final version of code for the C-LAMP paper in GCB.
1 ;************************************************
3 ; output: lat: N->S lon: -180W->180E
4 ;************************************************
5 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
6 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
7 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
8 ;************************************************
10 ;---------------------------------------------------
12 diro = "/fis/cgd/cseg/people/jeff/clamp_data/lai/"
13 filo = "land_class_0.25deg.nc"
14 c = addfile(diro+filo,"c")
15 ; filedimdef(c,"time",-1,True)
20 t = new((/nlat,nlon/),integer)
21 lon = new((/nlon/),float)
22 lat = new((/nlat/),float)
23 ;---------------------------------------------------
25 diri = "/fis/cgd/cseg/people/jeff/clamp_data/lai/modis_landcover_qdeg/"
26 fili = "modis_landcover_class_qd.asc"
29 lat = latGlobeFo(nlat, "lat", "latitude", "degrees_north")
30 lat = (/ lat(::-1) /) ; make N->S
31 lon = lonGlobeFo(nlon, "lon", "longitude", "degrees_east")
32 lon = (/ lon - 180. /) ; subtract 180 from all values
33 lon&lon = lon ; update coordinates
34 lat&lat = lat ; update coordinates
36 ;=============================
37 ; name dimensions of t and assign coordinate variables
38 ;============================
43 t@long_name = "landcover class"
46 t@missing_value= -9999
48 t = asciiread(b,(/nlat,nlon/),"integer")
54 print (min(t) + "/" + max(t))