[ncl-talk] Issue
Mary Haley
haley at ucar.edu
Thu Dec 31 13:44:52 MST 2015
The error is telling you that you are trying to assign one variable to
another, but that the variable on the left side of the "=" is a different
size than the one on the right side.
I believe it is this line that's the issue:
times = wrf_user_getvar(a,"times",-1) ; get all times in the file
If each WRF file has a different number of timesteps, then "times" is going
to be a different size every time in the loop.
You can use the reassignment operator to force the reassignment to happen:
times := wrf_user_getvar(a,"times",-1) ; get all times in the file
For future reference, you can go to our "error messages" page to find some
common errors and how to fix them. See:
http://www.ncl.ucar.edu/Document/Language/error_messages.shtml
--Mary
On Wed, Dec 30, 2015 at 7:40 PM, Muhammad Omer Mughal <
m.mughal1 at postgrad.curtin.edu.au> wrote:
>
> Hi
>
>
> I am trying to use the attached script to retrieve wind speed over a
> couple of wrfoutput files. But I am hitting this error
>
>
> fatal:Dimension sizes of left hand side and right hand side of assignment
> do not match
> fatal:["Execute.c":8578]:Execute: Error occurred at or near line 21 in
> file wrfwindspeed.ncl
>
>
> Can anyone help please.
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151231/71b022c8/attachment.html
More information about the ncl-talk
mailing list