<div dir="ltr"><div class="gmail_default" style="font-size:small">I forgot to mention: would you be willing to try our &quot;conda&quot; versions of NCL on your small script on your Mac?</div><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">You can get &quot;conda&quot; by installing miniconda (<a href="http://conda.pydata.org/miniconda.html">http://conda.pydata.org/miniconda.html</a>)</div><div class="gmail_default"></div></div><div class="gmail_default"><br></div><div class="gmail_default">Once you have conda installed, here&#39;s how to get either the stable (V6.3.0) or test version (V6.4.0 development):</div><div class="gmail_default"><br></div><div class="gmail_default">Stable version:</div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">conda create -n <i>ncl_stable</i> -c conda-forge ncl</font></div><div class="gmail_default"><font face="monospace, monospace">source activate <i>ncl_stable</i></font></div><div class="gmail_default"><br></div><div class="gmail_default">Test version:</div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">conda create -n <i>ncl_test</i> -c dbrown -c khallock ncl</font></div><div class="gmail_default"><font face="monospace, monospace">source activate <i>ncl_test</i></font></div><div class="gmail_default"><br></div><div class="gmail_default">where <i>ncl_stable</i> or <i>ncl_test</i> are the names of the conda environments. You can call them whatever you want.</div><div class="gmail_default"><br></div><div class="gmail_default">To deactivate an environment (which should put you back in your default environment):</div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">source deactivate <i>ncl_test</i></font></div><div class="gmail_default"><br></div><div class="gmail_default">or</div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">source deactivate <i>ncl_stable</i></font></div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">You can find full conda instructions here:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Download/conda.shtml">http://www.ncl.ucar.edu/Download/conda.shtml</a></div><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 12, 2016 at 10:08 AM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Takeshi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for reporting this bug and providing a short script.  This was an elusive bug that we saw awhile back, but we were never able to reproduce it and hence couldn&#39;t fix it. Your script may help us narrow down the source of the problem.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Your script doesn&#39;t fail for us, so could you email me offline with the following information so we can try to determine why it&#39;s not working for you.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Which version of NCL:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> ncl -V</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Did you build this NCL from source code?  If so, which compilers and their versions did you use?</div><div class="gmail_default" style="font-size:small">If you didn&#39;t build NCL from source code, then which binary did you download?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What version of MacOS are you running</div><div class="gmail_default" style="font-size:small">







<p class="m_-1189125934366199824gmail-p1"><span class="m_-1189125934366199824gmail-s1">sw_vers -productVersion</span></p><p class="m_-1189125934366199824gmail-p1">Thanks,</p><p class="m_-1189125934366199824gmail-p1">--Mary</p><p class="m_-1189125934366199824gmail-p1"><br></p><p class="m_-1189125934366199824gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Dec 9, 2016 at 9:42 PM, Takeshi Enomoto <span dir="ltr">&lt;<a href="mailto:takeshi@macports.org" target="_blank">takeshi@macports.org</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word">Hi,<div><br></div><div>I haven’t been posted for a long time, but I regularly use NCL.</div><div>I appreciate the efforts of development and support.</div><div><br></div><div>A user of ncarg of MacPorts reported a problem with ESMF.</div><div>The error appears to be cause with MacPorts’ ncl, not with the binary at UCAR.</div><div><br></div><div>&lt;<a href="https://trac.macports.org/ticket/53031" target="_blank">https://trac.macports.org/tic<wbr>ket/53031</a>&gt;</div><div><br></div><div>I investigated the script and found that setfileoption() wipes the symbol table:</div><div>after a call to setfileoption variables become undefined.</div><div><br></div><div>I appreciate any suggestions for fixing the problem.</div><div><br></div><div>Regards,</div><div><br></div><div>T.</div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">$ cat bar.ncl</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">procedure curvilinear_to_SCRIP(Opt[1]:lo<wbr>gical)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">begin</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">    if (isatt(Opt,&quot;NetCDFType&quot;).and.\</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">        str_lower(Opt@NetCDFType).eq.&quot;<wbr>netcdf4&quot;) then</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">      setfileoption(&quot;nc&quot;,&quot;Format&quot;,&quot;n<wbr>etcdf4&quot;)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">      nc_file_type = &quot;netcdf4&quot;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">    else</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">      nc_file_type = &quot;netcdf3&quot;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">    end if</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">    print(nc_file_type)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">end     ; of curvilinear_to_SCRIP(...)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">begin</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">  Opt = True</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">  curvilinear_to_SCRIP(Opt)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">  Opt@NetCDFType = &quot;netcdf4&quot;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">  curvilinear_to_SCRIP(Opt)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">  Opt@NetCDFType = &quot;netcdf3&quot;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">  curvilinear_to_SCRIP(Opt)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">end</span></div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">$ ncl -nQ bar.ncl </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Variable: nc_file_type</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Type: string</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 8 bytes</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">            1 values</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 1</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="m_-1189125934366199824m_1629445790916220646Apple-tab-span" style="white-space:pre-wrap">        </span>[1]</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">netcdf3</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">fatal:Variable (nc_file_type) is undefined</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">fatal:[&quot;Execute.c&quot;:8575]:Execu<wbr>te: Error occurred at or near line 10 in file bar.ncl</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">fatal:[&quot;Execute.c&quot;:8575]:Execu<wbr>te: Error occurred at or near line 16 in file bar.ncl</span></div></div></div><br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>