lai/04.lai_ensemble_T31.ncl
author Forrest Hoffman <forrest@climatemodeling.org>
Thu, 26 Mar 2009 14:02:21 -0400
changeset 1 4be95183fbcd
permissions -rw-r--r--
Modifications to scoring and graphics production for the final version of code for the C-LAMP paper in GCB.
forrest@0
     1
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"  
forrest@0
     2
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
forrest@0
     3
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"  
forrest@0
     4
forrest@0
     5
begin 
forrest@0
     6
;----------------------------------------------------------
forrest@0
     7
  year_start = 2000
forrest@0
     8
  year_end   = 2005
forrest@0
     9
;----------------------------------------------------------
forrest@0
    10
  diri  = "/fis/cgd/cseg/people/jeff/clamp_data/lai/ob/"
forrest@0
    11
forrest@0
    12
  diro  = "/fis/cgd/cseg/people/jeff/clamp_data/lai/ob/"
forrest@0
    13
  filo1 = "LAI_"+year_start+"-"+year_end+"_MONS_T31_3.nc"
forrest@0
    14
  filo2 = "LAI_"+year_start+"-"+year_end+"_ANN_T31_3.nc"
forrest@0
    15
  c = addfile(diro+filo1,"c")
forrest@0
    16
  d = addfile(diro+filo2,"c")
forrest@0
    17
forrest@0
    18
  nyear = year_end - year_start + 1
forrest@0
    19
forrest@0
    20
  files  = new((/nyear/),"string")
forrest@0
    21
forrest@0
    22
  do n = year_start,year_end
forrest@0
    23
     i = n - year_start
forrest@0
    24
     files(i)= diri + "LAI_" + n + "_monthly_T31.nc"
forrest@0
    25
  end do
forrest@0
    26
  print (files)  
forrest@0
    27
forrest@0
    28
  file_list = addfiles(files,"r")
forrest@0
    29
  ListSetType(file_list,"join")
forrest@0
    30
  x = addfiles_GetVar(file_list, files, "LAI")
forrest@0
    31
  printVarSummary (x)
forrest@0
    32
  x@_FillValue = 1.e+36
forrest@0
    33
forrest@0
    34
  y = dim_avg_Wrap(x(time|:,lat|:,lon|:,case|:))
forrest@0
    35
  printVarSummary (y)
forrest@0
    36
  y@_FillValue = 1.e+36
forrest@0
    37
 
forrest@0
    38
  c->LAI  = y
forrest@0
    39
forrest@0
    40
  z = dim_avg_Wrap(y(lat|:,lon|:,time|:))
forrest@0
    41
  printVarSummary (z)
forrest@0
    42
  z@_FillValue = 1.e+36
forrest@0
    43
  
forrest@0
    44
  d->LAI  = z     
forrest@0
    45
end
forrest@0
    46