[ncl-install] Error in running NCL on Ubuntu

Mary Haley haley at ucar.edu
Mon Apr 3 08:17:07 MDT 2017


Hi Gaurav,

You are installing an old version of NCL that is put in a somewhat
non-standard location (the LINUX RPMs were not created by us).

The issue is that because this is a non-standard installation, you need to
have multiple environment variables like NCARG_ROOT, NCARG_LIB, and
NCARG_NCARG set.  I think these should have been set for you, so I'm not
sure what happened.

However, this is an old version of NCL, and I highly recommend installing
the new version (6.4.0) which has many new features and bug fixes.

http://www.ncl.ucar.edu/current_release.shtml

I don't think the new version is available via a LINUX RPM yet, but you can
use conda, which is similar. This will put everything in a singly contained
directory:

http://www.ncl.ucar.edu/Download/conda.shtml

Please give this a try.  If you continue to have problems, then subscribe
to ncl-install and post your question by sending an email to
ncl-install at ucar.edu.

http://mailman.ucar.edu/mailman/admin/ncl-install/

Thank you,

--Mary


On Sun, Apr 2, 2017 at 11:03 PM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
wrote:

> Hi Mary,
> I done the following commands as per your suggestion, just look at below:
>
> gaurav at 2-Lenovo-S510:~/ncl_scripts$ *ncl -V*
> *6.3.0*
> gaurav at 2-Lenovo-S510:~/ncl_scripts$ *which ncl*
> */usr/bin/ncl*
> gaurav at 2-Lenovo-S510:~/ncl_scripts$ *env | grep NCARG*
> gaurav at 2-Lenovo-S510:~/ncl_scripts$
>
>
> Also, I run your script which is showing the same error given below:
>
> gaurav at 2-Lenovo-S510:~/ncl_scripts$ *ncl bullseye.ncl*
>
>
>
>
>
>
> *Copyright (C) 1995-2015 - All Rights Reserved University Corporation for
> Atmospheric Research NCAR Command Language Version 6.3.0 The use of this
> software is governed by a License Agreement. See http://www.ncl.ucar.edu/
> <http://www.ncl.ucar.edu/> for more details.fatal:Undefined identifier:
> (gsn_csm_contour) is undefined, can't
> continuefatal:["Execute.c":8575]:Execute: Error occurred at or near line 13
> in file bullseye.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 Mon, Apr 3, 2017 at 2:26 AM, <ncl-install-owner at ucar.edu> wrote:
>
>> You are not allowed to post to this mailing list, and your message has
>> been automatically rejected.  If you think that your messages are
>> being rejected in error, contact the mailing list owner at
>> ncl-install-owner at ucar.edu.
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Gaurav Tiwari <gaurav16 at iiserb.ac.in>
>> To: Mary Haley <haley at ucar.edu>
>> Cc: ncl-install at ucar.edu
>> Bcc:
>> Date: Mon, 3 Apr 2017 02:26:47 +0530
>> Subject: Re: Error in running NCL on Ubuntu
>> Thank you so much for your reply.
>>
>> Ok I will do as per your suggestions. Hopefully it should work otherwise
>> I will let you know for the same.
>>
>>
>> Thanks and regards,
>> Gaurav
>>
>> On Apr 2, 2017 11:52 PM, "Mary Haley" <haley at ucar.edu> wrote:
>>
>>> Gaurav,
>>>
>>> Your messages are not going to the ncl-install email list. Instead, they
>>> are getting bounced to the administrators of this email list because you
>>> are not subscribed to ncl-install.
>>>
>>> You need to to subscribe before you can email ncl-install:
>>>
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>>
>>> If you are using NCL V6.3.0, you shouldn't need to do anything special
>>> to use "gsn_csm_contour". The fact that you are getting an "undefined"
>>> error leads me to believe that you might have multiple versions of NCL
>>> installed on your system, and that you might somehow be pointing to the
>>> older version.
>>>
>>> Or, perhaps there's something in your script that's causing NCL to think
>>> gsn_csm_contour is undefined.
>>>
>>> Can you run the attached script and see if it produces a PNG that looks
>>> like the attached PNG?  If you continue to get the error, then what does
>>> the following report (type this from a UNIX terminal):
>>>
>>> ncl -V
>>> which ncl
>>> env | grep NCARG
>>>
>>> Thanks,
>>>
>>> --Mary
>>>
>>>
>>> On Sun, Apr 2, 2017 at 7:27 AM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
>>> wrote:
>>>
>>>> Thank you Rick for your reply.
>>>>
>>>> Actually when I am running any NCL script in my Ubuntu machine, it is
>>>> showing a type of error which is attached below:
>>>>
>>>> fatal:Undefined identifier: (gsn_csm_contour) is undefined, can't
>>>> continue
>>>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 30 in
>>>> file exp.ncl
>>>>
>>>> Please tell me some solution to overcome by this problem.
>>>>
>>>>
>>>>
>>>>
>>>> ************************************************************
>>>> *************
>>>> *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 Sat, Apr 1, 2017 at 7:36 PM, Rick Brownrigg <brownrig at ucar.edu>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Many people run NCL on Ubuntu.  What specifically do you mean by
>>>>> "...is not working"?
>>>>>
>>>>> Rick
>>>>>
>>>>> On Sat, Apr 1, 2017 at 4:42 AM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>> I have installed NCAR Command Language 6.3.0. in my machine having OS
>>>>>> Ubuntu 16.10 but when I am trying to run a script, NCAR Command Language is
>>>>>> not working.
>>>>>> Kindly support to let me know that is NCAR Command Language is
>>>>>> compatible with Ubuntu platform or not?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ********************************
>>>>>> *Gaurav Tiwari*
>>>>>> India
>>>>>> 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*
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170403/68b6d59e/attachment-0001.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-install/attachments/20170403/68b6d59e/attachment-0001.png 


More information about the ncl-install mailing list