author | Forrest Hoffman <forrest@climatemodeling.org> |
Thu, 26 Mar 2009 14:02:21 -0400 | |
changeset 1 | 4be95183fbcd |
permissions | -rw-r--r-- |
forrest@0 | 1 |
; *********************************************** |
forrest@0 | 2 |
; xy_4.ncl |
forrest@0 | 3 |
; *********************************************** |
forrest@0 | 4 |
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" |
forrest@0 | 5 |
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" |
forrest@0 | 6 |
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" |
forrest@0 | 7 |
;************************************************ |
forrest@0 | 8 |
begin |
forrest@0 | 9 |
;************************************************ |
forrest@0 | 10 |
; read in data |
forrest@0 | 11 |
;************************************************ |
forrest@0 | 12 |
g = addfile ("Npp_T31_mean.nc","r") |
forrest@0 | 13 |
c = g->NPP |
forrest@0 | 14 |
u = zonalAve(c) |
forrest@0 | 15 |
|
forrest@0 | 16 |
;f = addfile ("i01.03cn_1545-1569_ANN_climo.nc","r") |
forrest@0 | 17 |
f = addfile ("i01.04casa_1605-1629_ANN_climo.nc","r") |
forrest@0 | 18 |
b = f->NPP |
forrest@0 | 19 |
|
forrest@0 | 20 |
sec_to_year = 86400.*365. |
forrest@0 | 21 |
|
forrest@0 | 22 |
b = b * sec_to_year |
forrest@0 | 23 |
v = zonalAve(b) |
forrest@0 | 24 |
|
forrest@0 | 25 |
b@long_name = "NPP (gC/m2/year)" |
forrest@0 | 26 |
|
forrest@0 | 27 |
ccr = esccr(u,v(0,:),0) |
forrest@0 | 28 |
|
forrest@0 | 29 |
print (ccr) |
forrest@0 | 30 |
|
forrest@0 | 31 |
end |