[ncl-talk] Error Question

Najib Yusuf najibgal at yahoo.com
Fri Feb 12 00:53:17 MST 2016


Hi Rick,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.Thank you Rick. I look forward to more suggestions.
Najib  

    On Thursday, February 11, 2016 7:13 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:
 

 Hi,

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.

Hope that helps...
Rick


On Thu, Feb 11, 2016 at 1:52 AM, Najib Yusuf <najibgal at yahoo.com> wrote:

Dear All,
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;
fatal:asciiread: Unable to open input file (Book.dat)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;" Problem connecting to a software source.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.
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;load          "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"begin;dir = "/home/Najib/Desktop/"filen = "Book.dat";z1 = asciiread(dir+filen,(/270/),"string")z1 = asciiread(filen,(/270/),"string")printVarSummary(z1)new_str = str_split_csv(z1,",",1)printVarSummary(new_str);Variables = new_str(0,0:6);new_str = str_split_csv(z1,",",1);printVarSummary(new_str)variables = new_str(0,0:6)print(variables)Day = stringtoint(new_str(1:269,0))AOT_675 = stringtofloat(new_str(1:269,1)) AOT_500 = stringtofloat(new_str(1:269,2))AOT_440 = stringtofloat(new_str(1:269,3))AOT_440_675 = stringtofloat(new_str(1:269,4))Alpha = stringtoint(new_str(1:269,5))AOT_550 = stringtofloat(new_str(1:269,6))x = Dayy = AOT_550printVarSummary(x)printVarSummary(y)
; ;**************************************************; create plot;**************************************************  wks = gsn_open_wks("ps","AOT_550")
  res = True  res at tiMainString = "Figure 2"  res at tiYAxisString = "AOT_550 (nm)"  res at tiXAxisString = "Days"                 ; x axis title
  res at xyLineColors      = (/"black"/)  ; line colors  res at xyLineThicknesses = (/2/)        ; line thicknesses  res at xyDashPatterns    = (/2/)        ; line patterns
;  res at xyMarkLineModes   = (/"Markers"/)   res at xyMarkLineModes   = (/"Lines"/)   res at xyMarkerColors    = (/ "black"/)     ; color  res at xyLineColors    = (/ "black"/)     ; color  res at xyMarkers         = (/2/)          ; style
  res at trXMinF       = 1.          ; Control limits of X  res at trXMaxF       = max(x)     ; and Y axes.  res at trYMinF       = 0.          ; Control limits of X  res at trYMaxF       = 3.          ; Control limits of X  plot = gsn_xy(wks,x,y,res)          ; Draw an XY plot with 1 curve.
end


_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk





  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160212/fbaa627d/attachment.html 


More information about the ncl-talk mailing list