Hi TJ,
I've upgraded WRFUserARW.ncl so that the following functions allow input from the "addfiles" command as well as "addfiles":
- wrf_user_getvar
- wrf_user_list_times
- wrf_user_ll_to_ij
- wrf_user_ij_to_ll
I've attached the new script if you want to try it out. The input should look pretty much the same. Here's an example:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "./WRFUserARW.ncl"
begin
;---Open a list of wrfout files
filenames = systemfunc("ls -1 wrfout_d01_2008*") + ".nc"
f = addfiles(filenames,"r")
;---Get the times
times = wrf_user_list_times(f)
ntimes = dimsizes(times)
;---Read off a variable
td = wrf_user_getvar(f, "td", -1)
end
--Mary
On May 8, 2011, at 12:42 AM, wxtofly wrote:
> Did 6.0 get a wrf_user_get_var that will cross multiple netCDF wrf output files added using the addfiles( ) command?
>
> TJ Olney
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Wed May 25 2011 - 09:35:33 MDT