[ncl-talk] Problems with plotting Cyclone Track

Rick Brownrigg brownrig at ucar.edu
Thu Jun 20 09:56:15 MDT 2019


Hi,

The error message is telling you exactly the problem -- the dimensions of
the expression on the right hand side of an assignment must match the
dimensions of the variable on the left. More specifically, line 61 in your
script is:

    time(ifs) = wrf_user_list_times(f)

Time is a one dimension variable, declared as:

     time = new(ndate,string)

and wrf_user_list_time() returns an array of available times, so line 61 is
an attempt to assign an *element* of the time array to a 1D array of
indeterminate length.

Hope that helps...
Rick

On Wed, Jun 19, 2019 at 1:07 AM Saurav Dey Shuvo via ncl-talk <
ncl-talk at ucar.edu> wrote:

> Dear Respected Sir/Madam,
> I am trying to plot a cyclone track. But I am getting this -
>
> ncl WRF_track_1.ncl
>  Copyright (C) 1995-2017 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.4.0
>  The use of this software is governed by a License Agreement.
>  See http://www.ncl.ucar.edu/ for more details.
> (0) Check input data:1 .ne. 8
>
>
> Variable: times
> Type: string
> Total Size: 264 bytes
>             33 values
> Number of Dimensions: 1
> Dimensions and sizes: [33]
> Coordinates:
> Number Of Attributes: 2
>   description : times in file
>   _FillValue : missing
> (0) 2017-10-17_00:00:00
> (1) 2017-10-17_03:00:00
> (2) 2017-10-17_06:00:00
> (3) 2017-10-17_09:00:00
> (4) 2017-10-17_12:00:00
> (5) 2017-10-17_15:00:00
> (6) 2017-10-17_18:00:00
> (7) 2017-10-17_21:00:00
> (8) 2017-10-18_00:00:00
> (9) 2017-10-18_03:00:00
> (10) 2017-10-18_06:00:00
> (11) 2017-10-18_09:00:00
> (12) 2017-10-18_12:00:00
> (13) 2017-10-18_15:00:00
> (14) 2017-10-18_18:00:00
> (15) 2017-10-18_21:00:00
> (16) 2017-10-19_00:00:00
> (17) 2017-10-19_03:00:00
> (18) 2017-10-19_06:00:00
> (19) 2017-10-19_09:00:00
> (20) 2017-10-19_12:00:00
> (21) 2017-10-19_15:00:00
> (22) 2017-10-19_18:00:00
> (23) 2017-10-19_21:00:00
> (24) 2017-10-20_00:00:00
> (25) 2017-10-20_03:00:00
> (26) 2017-10-20_06:00:00
> (27) 2017-10-20_09:00:00
> (28) 2017-10-20_12:00:00
> (29) 2017-10-20_15:00:00
> (30) 2017-10-20_18:00:00
> (31) 2017-10-20_21:00:00
> (32) 2017-10-21_00:00:00
> fatal:Dimension sizes on right hand side of assignment do not match
> dimension sizes of left hand side
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 61 in
> file WRF_track_1.ncl
>
> Could you please help me in sorting out my problem.
>
> Sincerely -
> --
> Saurav Dey Shuvo
> M.Sc. in Meteorology at Department of Meteorology, University of Dhaka
> B.S. in Geography and Environment at Department of Geography and
> Environment, University of Dhaka
>
> _______________________________________________
> 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/20190620/e1a20cdc/attachment.html>


More information about the ncl-talk mailing list