Re: Using NCL to generate WRF Ensemble plots

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun Dec 26 2010 - 09:13:21 MST

> I'm new the NCL mailing list and was wondering if someone could answer a quick question. Is it possible to take a collection of WRF simulations...either the WRF netCDF or Grib and generate ensemble images, such as mean, spread, spaghetti using NCL.


NCL can handle either netCDF or GRIB formatted data files.
If you have or WRF_1.grb or WRF_2.grb
          : or WRF_N.grb
  load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
  dirw = "/my/wrf_files/"    ; input directory
  filw = systemfunc("cd "+dirw+" ; ls WRF_*nc)   ; or WRF_*grb
  f    = addfiles (dirw+filw, "r")   ; note the "s" of addfile
  ListSetType (f, "join")
  T    = f[:]->T                     ; read T from all files
  printVarSummary (T) ; (ncl_join,Time,bottom_top,south_north,west_east)
The ncl_join dimension will be size N, corresponding to each
ensemble member.
  Te   = dim_avg_n_Wrap(T, 0)   ; average over all ensemble members
Use assorted NCL graphics to generated what you want. See:
Above functions:
See Example 2
The netCDF Operator (NCO) named "ncea" could be used on WRF netCDF files
to generate ensemble averages and be saved to a netCDF file.
good Luck
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Sun Dec 26 09:13:28 2010

This archive was generated by hypermail 2.1.8 : Tue Jan 04 2011 - 09:16:52 MST