Re: Bug in wrf_user_getvar in 6.1.0-Beta?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 22 2012 - 06:59:29 MDT

Can you please send to ncl-talk and wrfhelp@ucar.edu the output from:

     if (isfilevar(infile,"XLAT")) then
         xlat = infile->XLAT
         printVarSummary(xlat)
     end if
     if (isfilevar(infile,"XLAT_M")) then
         xlatm = infile->XLAT_M
         printVarSummary(xlatm)
     end if

On 6/22/12 5:49 AM, Robert Schuster wrote:
> Hello,
>
> this script works fine in NCL 6.0.0:
>
> 1load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> 2load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
> 3 infile =addfile("wrfout_d02_2006-07-03_19:00:00.nc","r")
> 4 lat =wrf_user_getvar(infile,"lat", 0)
> 5printVarSummary(lat)
> 6
>
> It opens a WRF output file and reads the latitudes. The WRF output file
> was created with WRF 3.3.1.
>
> When I run the same script with NCL 6.1.0-Beta, I get the following error:
> fatal:Number of subscripts do not match number of dimensions of
> variable, (1) subscripts used, (3) subscripts expected
> fatal:["Execute.c":7556]:Execute: Error occurred at or near line 1978 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
> fatal:["Execute.c":7556]:Execute: Error occurred at or near line 5 in
> file wrf_test.ncl
>
> That seems to be a bug in the new NCL version.
>
> Robert
>
>
> _______________________________________________
> 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 Fri Jun 22 06:59:40 2012

This archive was generated by hypermail 2.1.8 : Mon Jun 25 2012 - 09:57:23 MDT