[ncl-talk] Error Question

Najib Yusuf najibgal at yahoo.com
Thu Feb 11 01:52:59 MST 2016


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

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


More information about the ncl-talk mailing list