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_1.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 |
f = addfile ("Npp_T31_mean.nc","r") |
forrest@0 | 13 |
u = f->NPP |
forrest@0 | 14 |
v = zonalAve(u) |
forrest@0 | 15 |
|
forrest@0 | 16 |
v@long_name = "NPP (gC/m2/year)" |
forrest@0 | 17 |
;************************************************ |
forrest@0 | 18 |
; plotting parameters |
forrest@0 | 19 |
;************************************************ |
forrest@0 | 20 |
wks = gsn_open_wks ("png","xy") |
forrest@0 | 21 |
|
forrest@0 | 22 |
res = True |
forrest@0 | 23 |
res@tiMainString = "Observed" |
forrest@0 | 24 |
|
forrest@0 | 25 |
plot = gsn_csm_xy (wks,v&lat,v,res) |
forrest@0 | 26 |
end |