<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Dear all,<br>
<br>
Working in a notebook environment, I happened to write <br>
<blockquote><i>import Nio</i><i><br>
</i><i>! ncl some_ncl_script.ncl</i><i><br>
</i></blockquote>
where the second line actually launches Ncl as a subprocess in the
notebook environment<br>
<br>
I got that error, which does not happen when I launch the Ncl
command without importing Nio :<br>
<br>
<pre> warning:Unable to load System Resource File /.....blabla/lib/python2.7/site-packages/PyNIO/ncarg/sysresfile
</pre>
I discovered that this is due to the facts that :<br>
<ol>
<li>importing Nio does set environment variable NCARG_NCARG to a
value consistent with the path in the error message, </li>
<li>Ncl, in function ncargpath(), uses this environment variable,
if set, rather than variable NCARG_ROOT </li>
<li> the path for PyNio material does not include all material
needed by Ncl </li>
</ol>
This is not fully user-friendly (and it actually took me a while to
understand what was happening). <br>
<br>
Is there a strong reason for modifying the environment ?<br>
<br>
Best regards<br>
<br>
Stéphane Sénési<br>
(currently working for IPCC/AR6/WGI - chapter 8 on hydrology as
chapter scientist)<br>
</body>
</html>