<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1455026246007_52429"><span>Hi Rick,</span></div><div id="yui_3_16_0_1_1455026246007_52415" dir="ltr"><span id="yui_3_16_0_1_1455026246007_52417">I mean I am running ncl on virtual machine.Honestly, I checked the directory is correct and the rest you mention, I couldn't find anything faulty by myself and I keep on getting the error message. Is a kind of weird.</span></div><div id="yui_3_16_0_1_1455026246007_52415" dir="ltr"><span id="yui_3_16_0_1_1455026246007_54253">Thank you Rick. I look forward to more suggestions.</span></div><div id="yui_3_16_0_1_1455026246007_52415" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1455026246007_52415" dir="ltr"><span>Najib&nbsp;</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Thursday, February 11, 2016 7:13 PM, Rick Brownrigg &lt;brownrig@ucar.edu&gt; wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv1087199889"><div><div dir="ltr"><div><div><div>Hi,<br clear="none"><br clear="none"></div>Its hard to say, and I don't know what you mean when you refer to a Virtual Machine (are you running a Java application?).&nbsp; However, if you have two programs that are unable to open that file, it suggests a problem with the file -- either it doesn't exist, isn't in the directory you think it is, is misspelled (names under Linux are case-sensitive), does not have read permissions, or is not in the format you think it is.&nbsp; These are all things to check.<br clear="none"><br clear="none"></div>Hope that helps...<br clear="none"></div>Rick<br clear="none"><br clear="none"></div><div class="yiv1087199889gmail_extra"><br clear="none"><div class="yiv1087199889gmail_quote">On Thu, Feb 11, 2016 at 1:52 AM, Najib Yusuf <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:najibgal@yahoo.com" target="_blank" href="mailto:najibgal@yahoo.com">najibgal@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote class="yiv1087199889gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv1087199889yqt2207308018" id="yiv1087199889yqt41976"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div>Dear All,</div><div><br clear="none"></div><div dir="ltr">I am running a program to plot AOT from Aeronet data, I succeeded in plotting the 1st year, when I tried to plot the remaining years which are of same file type same properties it gives an error;</div><div dir="ltr"><br clear="none"></div><div dir="ltr">fatal:asciiread: Unable to open input file (Book.dat)</div><div dir="ltr">fatal:["Execute.c":8576]:Execute: Error occurred at or near line 5. and also this error came from the virtual machine which I think is the cause of the initial error. Virtual Machine error reads;</div><div dir="ltr">" Problem connecting to a software source.</div><div dir="ltr">There was a (possibly temporary) problem connecting toa software source". Failure: repodata/primary.sqlite.bz2 from sl-security: [Errno 256]No more mirrors to try.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">I tried to figure out how to solve the error but I could not, kindly assist. Here is the program script in case is needed;</div><div dir="ltr">load &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div dir="ltr">begin</div><div dir="ltr">;dir = "/home/Najib/Desktop/"</div><div dir="ltr">filen = "Book.dat"</div><div dir="ltr">;z1 = asciiread(dir+filen,(/270/),"string")</div><div dir="ltr">z1 = asciiread(filen,(/270/),"string")</div><div dir="ltr">printVarSummary(z1)</div><div dir="ltr">new_str = str_split_csv(z1,",",1)</div><div dir="ltr">printVarSummary(new_str)</div><div dir="ltr">;Variables = new_str(0,0:6)</div><div dir="ltr">;new_str = str_split_csv(z1,",",1)</div><div dir="ltr">;printVarSummary(new_str)</div><div dir="ltr">variables = new_str(0,0:6)</div><div dir="ltr">print(variables)</div><div dir="ltr">Day = stringtoint(new_str(1:269,0))</div><div dir="ltr">AOT_675 = stringtofloat(new_str(1:269,1))&nbsp;</div><div dir="ltr">AOT_500 = stringtofloat(new_str(1:269,2))</div><div dir="ltr">AOT_440 = stringtofloat(new_str(1:269,3))</div><div dir="ltr">AOT_440_675 = stringtofloat(new_str(1:269,4))</div><div dir="ltr">Alpha = stringtoint(new_str(1:269,5))</div><div dir="ltr">AOT_550 = stringtofloat(new_str(1:269,6))</div><div dir="ltr">x = Day</div><div dir="ltr">y = AOT_550</div><div dir="ltr">printVarSummary(x)</div><div dir="ltr">printVarSummary(y)</div><div dir="ltr"><br clear="none"></div><div dir="ltr">;</div><div dir="ltr">&nbsp;;**************************************************</div><div dir="ltr">; create plot</div><div dir="ltr">;**************************************************</div><div dir="ltr">&nbsp; wks = gsn_open_wks("ps","AOT_550")</div><div dir="ltr"><br clear="none"></div><div dir="ltr">&nbsp; res = True</div><div dir="ltr">&nbsp; res@tiMainString = "Figure 2"</div><div dir="ltr">&nbsp; res@tiYAxisString = "AOT_550 (nm)"</div><div dir="ltr">&nbsp; res@tiXAxisString = "Days" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; x axis title</div><div dir="ltr"><br clear="none"></div><div dir="ltr">&nbsp; res@xyLineColors &nbsp; &nbsp; &nbsp;= (/"black"/) &nbsp;; line colors</div><div dir="ltr">&nbsp; res@xyLineThicknesses = (/2/) &nbsp; &nbsp; &nbsp; &nbsp;; line thicknesses</div><div dir="ltr">&nbsp; res@xyDashPatterns &nbsp; &nbsp;= (/2/) &nbsp; &nbsp; &nbsp; &nbsp;; line patterns</div><div dir="ltr"><br clear="none"></div><div dir="ltr">; &nbsp;res@xyMarkLineModes &nbsp; = (/"Markers"/)&nbsp;</div><div dir="ltr">&nbsp; res@xyMarkLineModes &nbsp; = (/"Lines"/)&nbsp;</div><div dir="ltr">&nbsp; res@xyMarkerColors &nbsp; &nbsp;= (/ "black"/) &nbsp; &nbsp; ; color</div><div dir="ltr">&nbsp; res@xyLineColors &nbsp; &nbsp;= (/ "black"/) &nbsp; &nbsp; ; color</div><div dir="ltr">&nbsp; res@xyMarkers &nbsp; &nbsp; &nbsp; &nbsp; = (/2/) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; style</div><div dir="ltr"><br clear="none"></div><div dir="ltr">&nbsp; res@trXMinF &nbsp; &nbsp; &nbsp; = 1. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Control limits of X</div><div dir="ltr">&nbsp; res@trXMaxF &nbsp; &nbsp; &nbsp; = max(x) &nbsp; &nbsp; ; and Y axes.</div><div dir="ltr">&nbsp; res@trYMinF &nbsp; &nbsp; &nbsp; = 0. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Control limits of X</div><div dir="ltr">&nbsp; res@trYMaxF &nbsp; &nbsp; &nbsp; = 3. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Control limits of X</div><div dir="ltr">&nbsp; plot = gsn_xy(wks,x,y,res) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Draw an XY plot with 1 curve.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">end</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>