npp/51.zonavg_ob.ncl
author Forrest Hoffman <forrest@climatemodeling.org>
Mon, 26 Jan 2009 22:08:20 -0500
changeset 0 0c6405ab2ff4
permissions -rw-r--r--
Initial commit of C-LAMP Diagnostics from Jeff Lee
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