[ncl-talk] Query- error while running cyclone track script
Gaurav Tiwari
gaurav16 at iiserb.ac.in
Wed May 3 10:57:28 MDT 2017
Now I am getting the following error, script is also attached:
(0) Check input data:1 .ne. 9
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 51 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
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*
On Wed, May 3, 2017 at 6:36 PM, Gaurav Tiwari <gaurav16 at iiserb.ac.in> wrote:
> Yes, exactly.
>
>
>
>
> *************************************************************************
> *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
> 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*
>
> On Wed, May 3, 2017 at 6:31 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:
>
>> Did you load the supporting library, as described in the docs?
>>
>> http://www.ncl.ucar.edu/Document/Functions/WRF_contributed
>> /wrf_mapres_c.shtml
>>
>> ie.,:
>>
>> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
>>
>> In NCL 6.4.0, many of these libraries are loaded automatically. WRF_contributed is not one of them. You also may want to consider using wrf_map_resources() instead of wrf_mapres_c(), as described in the docs.
>>
>>
>>
>>
>>
>> On Wed, May 3, 2017 at 5:47 AM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
>> wrote:
>>
>>> Still I am getting the same error:
>>>
>>> fatal:syntax error: line 73 in file trak.ncl before or near ; Set up map
>>> resources
>>>
>>> wrf_mapres_c(a,res,0) ; Set up map resources
>>> ^
>>>
>>> fatal:syntax error: possibly an undefined procedure
>>> fatal:Syntax Error in block, block not executed
>>> fatal:error at line 143 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*
>>>
>>> On Wed, May 3, 2017 at 2:02 AM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
>>> wrote:
>>>
>>>> Thank you Rick. I will try it and update you.
>>>>
>>>> Thanks,
>>>> Gaurav
>>>>
>>>> On May 2, 2017 11:58 PM, "Rick Brownrigg" <brownrig at ucar.edu> wrote:
>>>>
>>>>> The error message means just what it says -- there is no procedure
>>>>> found by the name WRF_map_c. So you either have a typo (names are
>>>>> case-sensitive) or there is no such function. If I were speculate, there is
>>>>> a function in NCL named wrf_mapres_c() that takes three arguments:
>>>>>
>>>>> http://www.ncl.ucar.edu/Document/Functions/WRF_contributed/w
>>>>> rf_mapres_c.shtml
>>>>>
>>>>> Note that it is deprecated in favor of wrf_map_resources.
>>>>>
>>>>>
>>>>>
>>>>> On Tue, May 2, 2017 at 10:44 AM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>> I am running NCL script to plot cyclone track but I am getting an
>>>>>> error which is given below:
>>>>>>
>>>>>>
>>>>>> gaurav at 2-Lenovo-S510:~/ncl_scripts$ ncl track.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.
>>>>>> fatal:syntax error: line 73 in file track.ncl before or near \n
>>>>>> WRF_map_c(a,res,0)
>>>>>> --------------------^
>>>>>>
>>>>>> fatal:syntax error: possibly an undefined procedure
>>>>>> fatal:Syntax Error in block, block not executed
>>>>>> fatal:error at line 142 in file track.ncl
>>>>>>
>>>>>>
>>>>>> My script is attached here. Kindly help me to short out this issue.
>>>>>>
>>>>>> Thanks,
>>>>>> Gaurav
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ************************************************************
>>>>>> *************
>>>>>> *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/20170503/dd09167c/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/20170503/dd09167c/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: track.ncl
Type: application/octet-stream
Size: 4408 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170503/dd09167c/attachment.obj
More information about the ncl-talk
mailing list