<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>oops!<br><br>   x = f-&gt;$vnames(n)$       ; n=0,1,2,....<br><br>====<br></div>Also, if some future version of NCL were to introduce a &quot;.&quot; as a syntax operator, there could be issues.<br><br></div>Consider a variable name   foo+8<br><br></div>        x = f-&gt;foo+8  <br><br></div>Should NCL interpret this as <br><br></div>        x = (f-&gt;foo) + 8   ; add 8 to every element foo<br><br></div>With the $ and string syntax, foo+8 would be consider as a unique name<br>   <br></div>        x = f-&gt;$&quot;foo+8&quot;$<br><br></div>Most would program as<br><br></div>       vnam = &quot;foo+8&quot;<br></div>       x = f-&gt;$vnam$<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 13, 2017 at 8:32 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@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><div>re: &quot; ... perhaps historically invalid naming in NetCDF 3&quot;<br><br>I believe that classic netCDF or, perhaps, the netCDG Users Group (NUG), does not allow or recommends against certain characters. <br><br><a href="https://www.ncl.ucar.edu/Document/Manuals/language_man.pdf" target="_blank">https://www.ncl.ucar.edu/Docum<wbr>ent/Manuals/language_man.pdf</a><br></div>page 13<br><br></div>   x = f-&gt;$<br><br><div><div><br>An excellent NCL tutorial is at:<br>      <a href="https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/" target="_blank">https://www.ncl.ucar.edu/Docum<wbr>ent/Manuals/NCL_User_Guide/</a><br><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 13, 2017 at 8:15 AM, Rick Brownrigg <span dir="ltr">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@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><div><div><div><div><div>Hi,<br><br></div>NCL considers the dotted names as invalid syntax. I&#39;m really not sure why offhand -- perhaps historically invalid naming in NetCDF 3? Maybe an outright bug? I&#39;ll check into it.<br><br></div>In any case, as a work-around you can use NCL&#39;s dynamic variable name substitution feature; e.g.,<br><br></div>   stmp = &quot;reports.lat&quot;<br></div>   lats = f-&gt;$stmp$<br><br></div>This works for me -- its a bit cumbersome, but it will get you going.<span class="m_1117331726742353124HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_1117331726742353124HOEnZb"><font color="#888888">Rick<br><br></font></span></div><div class="m_1117331726742353124HOEnZb"><div class="m_1117331726742353124h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 12, 2017 at 11:18 PM, Rabah Hachelaf <span dir="ltr">&lt;<a href="mailto:hachelaf@sca.uqam.ca" target="_blank">hachelaf@sca.uqam.ca</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">Hello,<div><br></div><div>I can&#39;t read values from variables of this opendap server : &quot;<a href="http://monsoondata.org:9090/dods/stn/metar/past48" target="_blank">http://monsoondata.org:9090<wbr>/dods/stn/metar/past48</a>&quot;</div><div>here is the variable list : </div><div><div><font color="#0000ff">Variable: vnames</font></div><div><font color="#0000ff">Type: string</font></div><div><font color="#0000ff">Total Size: 112 bytes</font></div><div><font color="#0000ff">            14 values</font></div><div><font color="#0000ff">Number of Dimensions: 1</font></div><div><font color="#0000ff">Dimensions and sizes:   [14]</font></div><div><font color="#0000ff">Coordinates:</font></div><div><font color="#0000ff">(0)     reports.stid</font></div><div><font color="#0000ff">(1)     reports.lon</font></div><div><font color="#0000ff">(2)     reports.lat</font></div><div><font color="#0000ff">(3)     reports.time</font></div><div><font color="#0000ff">(4)     reports.cld</font></div><div><font color="#0000ff">(5)     reports.ds</font></div><div><font color="#0000ff">(6)     reports.filt</font></div><div><font color="#0000ff">(7)     reports.ptype</font></div><div><font color="#0000ff">(8)     reports.slp</font></div><div><font color="#0000ff">(9)     reports.ts</font></div><div><font color="#0000ff">(10)    <a href="http://reports.us" target="_blank">reports.us</a></font></div><div><font color="#0000ff">(11)    reports.vis</font></div><div><font color="#0000ff">(12)    reports.vs</font></div><div><font color="#0000ff">(13)    reports.wx</font></div></div><div><br></div><div><font color="#000000">but when i try from example : tmp=f-&gt;reports.ts</font></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000">i get this error : </font></span></div><div><span><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff">Copyright (C) 1995-2017 - All Rights Reserved</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff"> University Corporation for Atmospheric Research</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff"> NCAR Command Language Version 6.4.0</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff"> The use of this software is governed by a License Agreement.</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff"> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.</font></span></div></span><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff">fatal:syntax error: line 21 in file get_obs.ncl before or near .</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff">temp=f-&gt;reports.</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff">---------------^</font></span></div><div><br></div><div>fatal:Syntax Error in block, block not executed</div><div>fatal:error at line 41 in file get_obs.ncl</div></div><div><br></div><div><br></div><div>Any help.</div><div>Thank you </div><div><br></div><div>Rabah</div></div><div class="gmail_extra"><div><div class="m_1117331726742353124m_-1195933284633969042h5"><br><div class="gmail_quote">2017-08-12 0:51 GMT-04:00 Rabah Hachelaf <span dir="ltr">&lt;<a href="mailto:hachelaf@sca.uqam.ca" target="_blank">hachelaf@sca.uqam.ca</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks Rick,</div><div><br></div>My Ncl version is 6.4 with opendap  enabled<div><br></div><div>Rabah<div><div class="m_1117331726742353124m_-1195933284633969042m_-2162307932267709771h5"><br><br>Le vendredi 11 août 2017, Rick Brownrigg &lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>&gt; a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Rabah, <br><br></div>I was able to open this file with an NCL:<br><br>  f=addfile(&quot;<a href="http://monsoondata.org:9090/dods/stn/metar/past48" target="_blank">http://monsoondata.<wbr>org:9090/dods/stn/metar/past48</a><wbr>&quot;,&quot;r&quot;)<br><br></div>The response time took on the order of a minute (this evening), but it did it. Your version NCL has to be OpenDAP enabled for such a network file connection, which is optional to building NCL. Do you know where/how/what your version of NCL was built for?  I unfortunately don&#39;t know how to make NCL tell you its configuration :-/<br><br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 11, 2017 at 8:02 PM, Rabah Hachelaf <span dir="ltr">&lt;<a>hachelaf@sca.uqam.ca</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">Hello NCL users,<div><br></div><div>NCL can&#39;t open file from <a href="http://monsoondata.org:9090/dods/stn/metar/past48" target="_blank">http://monsoondata.org:90<wbr>90/dods/stn/metar/past48</a> server and return this error : </div><div><div><br></div><div><div>Copyright (C) 1995-2017 - All Rights Reserved</div><div> University Corporation for Atmospheric Research</div><div> NCAR Command Language Version 6.4.0</div><div> The use of this software is governed by a License Agreement.</div><div> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.</div><div>fatal:Could not open (<a href="http://monsoondata.org:9090/dods/stn/metar/past360" target="_blank">http://monsoondata.org:9090/d<wbr>ods/stn/metar/past360</a>)</div></div><div><br></div><div>However GrADS open files from this server using command &quot;open <a href="http://monsoondata.org:9090/dods/stn/metar/past48" target="_blank">http://monsoondata.org:9090/do<wbr>ds/stn/metar/past48</a>&quot; </div><div><br></div><div>Any idea about this issue. </div><div><br></div><div>Thank you </div><span><font color="#888888"><div>Rabah</div><div><br></div><div><div dir="ltr"><br></div></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a>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></div></div><span class="m_1117331726742353124m_-1195933284633969042m_-2162307932267709771HOEnZb"><font color="#888888"><br><br>-- <br>Envoyé avec Gmail Mobile<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="m_1117331726742353124m_-1195933284633969042HOEnZb"><font color="#888888">-- <br><div class="m_1117331726742353124m_-1195933284633969042m_-2162307932267709771gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>------------------------------</div>Cordialement,<br>Best regards,<br>Rabah Hachelaf <br></div></div>
</font></span></div>
<br>______________________________<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>
</div></div><br>______________________________<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>
</div></div></blockquote></div><br></div>