Re: Does anyone have a WRF-based script...

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 21 Oct 2008 09:31:50 -0600

   load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"

load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

   a = addfile("wrfout_d01_2000-01-24_12:00:00.nc","r")

   time = 0
   slp = wrf_user_getvar(a,"slp",time) ; slp
   u10 = wrf_user_getvar(a,"U10",time) ; u at 10 m
   v10 = wrf_user_getvar(a,"V10",time) ; v at 10 m

   printVarSummary(slp)

   system("/bin/rm -f foo.nc")
   aout = addfile("foo.nc", "c")
   aout->SLP = slp
   aout->U10 = u10
   aout->V10 = v10

You will likely have to add more ... like the time
and XAT/XLONG

D

Mary Haley wrote:
> Gerry,
>
> I'm not sure what you mean by extracting "to" a netCDF file. Did you
> mean "from"?
>
> You might want to check out the "wrf_user_getvar" function:
>
> http://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_getvar.shtml
>
> Let me know if this isn't what you need.
>
> --Mary
>
>
> On Mon, 20 Oct 2008, Gerry Creager wrote:
>
>> that extracts u10, v10 and SLP to a netCDF file? Before I go reinvent
>> something?
>>
>> Or something similar?
>>
>> Thanks, Gerry
>> --
>> Gerry Creager -- gerry.creager_at_tamu.edu
>> Texas Mesonet -- AATLT, Texas A&M University
>> Cell: 979.229.5301 Office: 979.862.3982 FAX: 979.862.3983
>> Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
>>
>> _______________________________________________
>> 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
Received on Tue Oct 21 2008 - 09:31:50 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 22 2008 - 13:49:07 MDT