Bug in wrf_user_getvar in 6.1.0-Beta?

From: Robert Schuster <rxschuster_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 22 2012 - 05:49:46 MDT

Hello,

this script works fine in NCL 6.0.0:
1 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
2 load "$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)
5 printVarSummary(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
Received on Fri Jun 22 05:50:00 2012

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