[ncl-talk] fatal:Dimension sizes on right hand side of assignment do not match dimension sizes of left hand side

Izidine Pinto izidinep at gmail.com
Thu May 4 02:05:01 MDT 2017


Hi Gaurav,

The error means that you are assigning one array to another when they don't
have the same number of dimensions.

Sample code that causes the error:
    x = random_uniform(-10,10,(/3,2,2/))   ; x is 3 x 2 x 2
    y = random_uniform(-20,20,(/4,5/))     ; y is 4 x 5
    x = y

Hope it helps

Izidine Pinto





On 4 May 2017 at 07:00, Gaurav Tiwari <gaurav16 at iiserb.ac.in> wrote:

> Hi, I am running a NCL script to plot cyclone track, but I am getting
> following error, script is also attached below:
>
> 0)    Check input data:1 .ne. 49
>
> Variable: times
> Type: string
> Total Size: 392 bytes
>             49 values
> Number of Dimensions: 1
> Dimensions and sizes:    [49]
> Coordinates:
> Number Of Attributes: 2
>   description :    times in file
>   _FillValue :    missing
> (0)    2014-10-26_00:00:00
> (1)    2014-10-26_03:00:00
> (2)    2014-10-26_06:00:00
> (3)    2014-10-26_09:00:00
> (4)    2014-10-26_12:00:00
> (5)    2014-10-26_15:00:00
> (6)    2014-10-26_18:00:00
> (7)    2014-10-26_21:00:00
> (8)    2014-10-27_00:00:00
> (9)    2014-10-27_03:00:00
> (10)    2014-10-27_06:00:00
> (11)    2014-10-27_09:00:00
> (12)    2014-10-27_12:00:00
> (13)    2014-10-27_15:00:00
> (14)    2014-10-27_18:00:00
> (15)    2014-10-27_21:00:00
> (16)    2014-10-28_00:00:00
> (17)    2014-10-28_03:00:00
> (18)    2014-10-28_06:00:00
> (19)    2014-10-28_09:00:00
> (20)    2014-10-28_12:00:00
> (21)    2014-10-28_15:00:00
> (22)    2014-10-28_18:00:00
> (23)    2014-10-28_21:00:00
> (24)    2014-10-29_00:00:00
> (25)    2014-10-29_03:00:00
> (26)    2014-10-29_06:00:00
> (27)    2014-10-29_09:00:00
> (28)    2014-10-29_12:00:00
> (29)    2014-10-29_15:00:00
> (30)    2014-10-29_18:00:00
> (31)    2014-10-29_21:00:00
> (32)    2014-10-30_00:00:00
> (33)    2014-10-30_03:00:00
> (34)    2014-10-30_06:00:00
> (35)    2014-10-30_09:00:00
> (36)    2014-10-30_12:00:00
> (37)    2014-10-30_15:00:00
> (38)    2014-10-30_18:00:00
> (39)    2014-10-30_21:00:00
> (40)    2014-10-31_00:00:00
> (41)    2014-10-31_03:00:00
> (42)    2014-10-31_06:00:00
> (43)    2014-10-31_09:00:00
> (44)    2014-10-31_12:00:00
> (45)    2014-10-31_15:00:00
> (46)    2014-10-31_18:00:00
> (47)    2014-10-31_21:00:00
> (48)    2014-11-01_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 49 in
> file trak.ncl
>
>
>
>
> *************************************************************************
> *Gaurav Tiwari*
> Research Scholar
> Department of Earth and Environmental Sciences
> Indian Institute of Science Education and Research Bhopal
> (IISER B)
> Bhopal- 462066, Madhya Pradesh
> Email: gaurav16 at iiserb.ac.in <saquib16 at iiserb.ac.in>
> Mob: +91-7471112407 <+91%2074711%2012407>
> LinkedIn
> <https://www.linkedin.com/in/gaurav-tiwari-bb36357a?trk=hp-identity-name>
> Research gate <https://www.researchgate.net/profile/Gaurav_Tiwari5>
>
>
>
>
> *[image: Description: Description: Description: Description: Description:
> Description: Description: cid:image001.jpg at 01CC2469.06E9E6A0] **Please
> consider the environment before printing this e-mail*
>
> _______________________________________________
> 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/20170504/7bc909d7/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2898 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170504/7bc909d7/attachment.png 


More information about the ncl-talk mailing list