Re: Plotting rainfall totals using NCL sample scripts.

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 16 2013 - 14:57:07 MDT

A previous response asked you to indicate what 'a' was.
Why did you not include this information?

printVarSummary(a)

Argument "a" of this function is argument (0)

times = wrf_user_getvar(a,"times",-1)

On 08/16/2013 02:29 PM, 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 have attached the entire script in a word document as well.
>
> I appreciate any information anyone can provide.
>
> Thanks,
>
> David R. Agee
>
>
> _______________________________________________
> 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 Aug 16 14:57:16 2013

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