<div dir="ltr"><div><div><div>Hi Najib,<br><br></div>For whatever reason, there are two unprintable characters in the first line of your script -- a 0xbb followed by 0xbf.  Probably the easiest fix is to delete the first line with a text editor, and re-type it if you really want that comment in your script.<br><br></div>HTH...<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 10:17 AM, Najib Yusuf <span dir="ltr">&lt;<a href="mailto:najibgal@yahoo.com" target="_blank">najibgal@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59306">Dear ncl talk,</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59306"><br></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59306" dir="ltr">Kindly how can I resolve this error message though I tried using this link <a href="https://www.ncl.ucar.edu/Document/Language/error_messages.shtml#LineM1" id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59486" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Language/error_<wbr>messages.shtml#LineM1</a> <wbr>explanation but i am still getting the error. I appreciate your guidance.</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59496"><br></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59581">yslogin4-/glade/p/work/najiby/<wbr>ncl&gt;ncl plot_surface_data_africa1.ncl<br></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59307"><br></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59312">fatal:syntax error: line 1 in file plot_surface_data_africa1.ncl before or near ▒</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59313">▒</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59314">^</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59315"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59316"></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59317">fatal:error in statement</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59318">yslogin4-/glade/p/work/najiby/<wbr>ncl&gt;ncl plot_surface_data_africa2.ncl</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59318"><br></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59318">My script:</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59695">; NCL script</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59696"><br></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59698">load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl&quot;<br></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59702">load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_csm.ncl&quot;</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59703">load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.<wbr>ncl&quot; ; BRH</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59704"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59705"></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59706">begin</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59707"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59708"></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59709">;vars = (/&quot;TS&quot;,&quot;PRECT&quot;/)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59710">;spec_units = (/&quot;K&quot;,&quot;mm/day&quot;/)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59711">;factor = (/1.,1.,1.e+09,1./)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59712">vars = (/&quot;TS&quot;,&quot;AEROD_v&quot;/)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59713">spec_units = (/&quot;K&quot;,&quot;ppb&quot;,&quot; &quot;/)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59714">factor = (/1.,1./)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59715">nvars = dimsizes (vars)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59716">wkdir = &quot;/glade/p/work/najiby/ncl/<wbr>plots/&quot;</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59717">;wkdir = &quot;/glade/p/acd/tilmes/africa/<wbr>plots/&quot;</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59718">dir = &quot;/glade/p/acd/tilmes/amwg/<wbr>africa/climo/&quot;</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59719">model1 = &quot;f.e11.TSREFC1SD.f19.f19.<wbr>ccmi23.emis05&quot;</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59720">model2 = &quot;f.e11.TSREFC1SD.f19.f19.<wbr>ccmi23.emis_ref2005&quot;</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59721">testcase1 = dir+model1+&quot;/&quot;+model1</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59722">testcase2 = dir+model2+&quot;/&quot;+model2</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59723"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59724"></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59725">;*****************************<wbr>******************************<wbr>*************</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59726">p0     = 1000.     ; mb required by vinth2p</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59727">interp = 2         ; log interpolation</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59728">extrap = False     ; no extrapolation past psfc.</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59729">;*****************************<wbr>******************************<wbr>*************</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59730"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59731"></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59732">offset = (/-5., 0./)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59733">fa = (/5., 0.05/)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59734">fad = (/1., 0.1/)</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59735">;do i = 0, nvars-2</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59736">;end do</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59737">&quot;plot_surface_data_africa5.<wbr>ncl&quot; [readonly] 302L, 9041C</div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59738"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59739"></div><div id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59740">end</div><div dir="ltr" id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59741"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59742"></div><div dir="ltr" id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59741">Thank you</div><span class="HOEnZb"><font color="#888888"><div dir="ltr" id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59741"><br></div><div dir="ltr" id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59741"><br></div><div dir="ltr" id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59741">Najib</div><div dir="ltr" id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59319"><br id="m_-4549949327780196471yui_3_16_0_ym19_1_1489418834937_59320"></div></font></span></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>