<div dir="ltr"><div><div><div>Hi,<br><br></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?). 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. These are all things to check.<br><br></div>Hope that helps...<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 1:52 AM, Najib Yusuf <span dir="ltr"><<a href="mailto:najibgal@yahoo.com" target="_blank">najibgal@yahoo.com</a>></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>Dear All,</div><div><br></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></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></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 "$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)) </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></div><div dir="ltr">;</div><div dir="ltr"> ;**************************************************</div><div dir="ltr">; create plot</div><div dir="ltr">;**************************************************</div><div dir="ltr"> wks = gsn_open_wks("ps","AOT_550")</div><div dir="ltr"><br></div><div dir="ltr"> res = True</div><div dir="ltr"> res@tiMainString = "Figure 2"</div><div dir="ltr"> res@tiYAxisString = "AOT_550 (nm)"</div><div dir="ltr"> res@tiXAxisString = "Days" ; x axis title</div><div dir="ltr"><br></div><div dir="ltr"> res@xyLineColors = (/"black"/) ; line colors</div><div dir="ltr"> res@xyLineThicknesses = (/2/) ; line thicknesses</div><div dir="ltr"> res@xyDashPatterns = (/2/) ; line patterns</div><div dir="ltr"><br></div><div dir="ltr">; res@xyMarkLineModes = (/"Markers"/) </div><div dir="ltr"> res@xyMarkLineModes = (/"Lines"/) </div><div dir="ltr"> res@xyMarkerColors = (/ "black"/) ; color</div><div dir="ltr"> res@xyLineColors = (/ "black"/) ; color</div><div dir="ltr"> res@xyMarkers = (/2/) ; style</div><div dir="ltr"><br></div><div dir="ltr"> res@trXMinF = 1. ; Control limits of X</div><div dir="ltr"> res@trXMaxF = max(x) ; and Y axes.</div><div dir="ltr"> res@trYMinF = 0. ; Control limits of X</div><div dir="ltr"> res@trYMaxF = 3. ; Control limits of X</div><div dir="ltr"> plot = gsn_xy(wks,x,y,res) ; Draw an XY plot with 1 curve.</div><div dir="ltr"><br></div><div dir="ltr">end</div><div dir="ltr"><br></div><div dir="ltr"><br></div></div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>