[ncl-install] Error message: fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl)

Mary Haley haley at ucar.edu
Thu Feb 16 08:44:49 MST 2017


Rebecca,

To address the "mreg_part_corr" issue: we have taken extra steps to make
sure this doesn't happen in the future that we forget an "undef" before a
newly defined function.  So, yes, 6.4.0 will fix this problem.

Perhaps your 6.2.1

We do plan to release NCL 6.4.0 this month. I'm in the process of building
and testing binaries.

In fact, if you would like to receive NCL V6.4.0 and be one of our guinea
pigs, I would be happy to tar it up for you. It would be invaluable to us
if you could test this against ESMValTool. I just need to know what kind of
system you have. Or, if you can tell me which 6.2.1 binary you downloaded.

As for the 6.2.1 issue at hand, I am stumped. But, could you try the
attached script and see if it also gives you problems?  I've attached the
small data file.  This script is just going to produce a bunch of output,
but it does require the contributed.ncl library, and I want to see if it
still has trouble being loaded.

--Mary


On Thu, Feb 16, 2017 at 2:59 AM, Thomas, Rebecca T <
r.thomas14 at imperial.ac.uk> wrote:

> Hi Mary,
>
>
>
> Yes, I also thought that might be the issue too but I checked and its
> definitely there (I also checked permissions and they are all fine):
>
>
>
> ls $NCARG_ROOT/lib/ncarg/nclscripts/csm/
>
> ccm_func.ncl
>
> contributed.ncl
>
> diagnostics_cam.ncl
>
> gsn_code.ncl
>
> gsn_csm.ncl
>
> popRemap.ncl
>
> shea_util.ncl
>
> skewt_func.ncl
>
> wind_rose.ncl
>
>
>
> I’ve been told the reason I can use ncl v 6.3 is because:
>
>                          A missing "undef" before the declaration of the
> function "mreg_part_corr" in the NCL library “$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl”
> causes the ESMValTool to crash when this library is loaded more than once
> within the same execution. This unfortunately happens quite often within
> the tool, since libraries can be loaded multiple times within the various
> scripts.
>
>
>
> If this is something that has been fixed in version 6.4, then I’m happy to
> wait until that’s released (apparently sometime this month), and hopefully
> the issue I’m having will fix itself?
>
>
>
> Thanks,
>
>
>
> Rebecca
>
>
>
> *From: *Mary Haley <haley at ucar.edu>
> *Date: *Wednesday, 15 February 2017 20:23
> *To: *"Thomas, Rebecca T" <r.thomas14 at imperial.ac.uk>
> *Cc: *"HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED" <
> kevin.havener at us.af.mil>, "ncl-install at ucar.edu" <ncl-install at ucar.edu>
> *Subject: *Re: [ncl-install] Error message: fatal:Could not open
> ($NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl)
>
>
>
> Hi Rebecca,
>
>
>
> This may seem like a "is it plugged in" kind of question, but is there
> actually a contributed.ncl file in that directory?
>
>
>
> ls $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
>
>
> NCL Version 6.2.1 should definitely have that file, but you didn't say how
> you installed NCL, and it's possible that your "ncarg" directory got
> installed somewhere other than in $NCARG_ROOT/lib.
>
>
>
> --Mary
>
>
>
>
>
>
>
> On Wed, Feb 15, 2017 at 6:50 AM, Thomas, Rebecca <
> r.thomas14 at imperial.ac.uk> wrote:
>
> Hi Kevin,
>
> Thanks for the suggestion, but unfortunately it didn’t fix the problem.
>
> Rebecca
>
>
> On 15/02/2017 13:16, "HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED" <
> kevin.havener at us.af.mil> wrote:
>
>     I would export you NCARG environment in .bashrc not .bash_profile.
>  In my experience, I've been bitten too many times by the the fact that the
> .bash_profile belongs to login shells, and .bashrc is more general applying
> to subshells and such.  So in my .bash_profile II just tend to source my
> .bshrc and keep my configuration there.
>
>     Kevin Havener
>
>     -----Original Message-----
>     From: ncl-install-bounces at ucar.edu [mailto:ncl-install-bounces@
> ucar.edu] On Behalf Of Thomas, Rebecca
>     Sent: Wednesday, February 15, 2017 5:30 AM
>     To: ncl-install at ucar.edu
>     Subject: [ncl-install] Error message: fatal:Could not open
> ($NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl)
>
>     Hi,
>
>
>
>     I’ve just installed ncl 6.2.1 and am getting the following error
> message when I try to run a scrip:
>
>
>
>     fatal:Could not open ($NCARG_ROOT/lib/ncarg/
> nclscripts/csm/contributed.ncl)
>
>
>
>     I have looked through posts from other people who have had similar
> error messages, but I’m sure my NCARG_ROOT environment is correctly set:
>
>
>
>     In my .bash_profile I have:
>
>
>
>     export NCARG_ROOT=/usr/local/ncl-6.2.1
>
>     export PATH=$NCARG_ROOT/bin:$PATH
>
>
>
>     And I have run the following checks:
>
>
>
>     env | grep NCARG
>
>     NCARG_ROOT=/usr/local/ncl-6.2.1
>
>
>
>     which ncl
>
>     /usr/local/ncl-6.2.1/bin/ncl
>
>
>
>     ncl -V
>
>     6.2.1
>
>
>
>     Thanks,
>
>
>
>     Rebecca
>
>
>
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170216/a65fde0f/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eoftest.ncl
Type: application/octet-stream
Size: 3322 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170216/a65fde0f/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eoftest.davis_data
Type: application/octet-stream
Size: 1249 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170216/a65fde0f/attachment-0003.obj 


More information about the ncl-install mailing list