Re: (no subject)

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 16 2013 - 10:18:32 MDT

Hi David,

Without seeing your whole script, its hard to say. But it certainly sounds like the variable "a" is not a file-variable. Can you confirm either way (e.g., print(a))?

On Aug 16, 2013, at 9:41 AM, "Agee, David" <> wrote:

> Hi all,
> I am attempting to plot rainfall totals using a WRF precip sample script from ncl. My code is reading in 24 hourly output files and as soon as it prints to the command line I receive an error message of:
> fatal:Argument type mismatch on argument (0) of (wrf_user_getvar) can not coerce
> fatal:Execute: Error occurred at or near line 46 in file precip.ncl
> and here are the lines of the script that the error stems from:
> times = wrf_user_getvar(a,"times",-1) ; get all times in the file (line 46)
> ntimes = dimsizes(times) ; number of times in the file (line 47)
> Any time I comment out the line and re-run the script the error message jumps to the next line where wrf_user_getvar is called. The script seems to work for my co-workers but not for me. I've searched the archives for similar errors experienced by other users and nothing has proven to be the solution yet.
> I appreciate any information anyone can provide.
> Thanks,
> David R. Agee
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Aug 16 10:18:43 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 21 2013 - 13:54:15 MDT