[ncl-talk] Error

Najib Yusuf najibgal at yahoo.com
Fri Oct 2 08:42:16 MDT 2015


Dear NCL forum,Kindly assist me with the solution to the errors on the script below. I tried but was getting different error at the end i arrived here but still getting these errors. Kindly assist.
Thank you.



 NCAR Command Language Version 6.3.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
ncl 0> dir = "/home/model-user/CESM/"
ncl 1> filen = "cesmdata/inputdata/atm/cam/ozone/waccm_ozone_c121126.nc"
ncl 2> f1 = addfile("cesmdata/inputdata/atm/cam/ozone/waccm_ozone_c121126.nc","r")
ncl 3> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" 
ncl 4> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
ncl 5> begin
ncl 6> vNames = getfilevarnames (f1)
ncl 7> nNames = dimsizes (vNames)
ncl 8> print (vNames)
ncl 9> O3 = f1->O3
ncl 10> O31D = O3(0,)
fatal:syntax error: line 10 before or near ) 
O31D = O3(0,)
------------^

fatal:Error in subscript, normal subscripting is being used, make sure named subscripting has not been used
ncl 11> wks = gsn_open_wks("ps","proj")
ncl 12> gsn_define_colormap(wks,"gui_default")
ncl 13> res = True
ncl 14> res at mpProjection = "Mollweide"
ncl 15> res at mpGridAndLimb0n = True
ncl 16> res at mpPerimon = False      
ncl 17> res at mpGridLatSpacingF = 30
ncl 18> res at mpGridLonSpacingF = 30 
ncl 19> res at mpFillOn = False
ncl 20> res at cnFillOn = True 
ncl 21> res at cnLineLabelsOn = False
ncl 22> res at txFontHeightF = 0.015
ncl 23> res at vpXF =0.1
ncl 24> res at vpXF = 0.1
ncl 25> res at vpYF = 0.1 
ncl 26> res at vpYF = 0.8
ncl 27> res at vpWidthF = 0.8
ncl 28> res at vpHeightF = 0.8    
ncl 29> res at gsnSpreadColors = True
ncl 30> res at gsnSpreadColorStart = 2
ncl 31> res at gsnSpreadColorEnd = -3 
ncl 32> res at lbLabelFontHeightF = 0.015
ncl 33> res at tiMainString = "Figure 5"
ncl 34> res at tiMainFontHeightF = .018
ncl 35> do n = 0,11
ncl 36> printVarSummary(n,:,:,:)
fatal:syntax error: line 36 before or near : 
printVarSummary(n,:
------------------^

fatal:error in statement
ncl 37> contour = gsn_csm_contour_map_ce(wks,O3(n,:,:,:),res)
ncl 38> end do
ncl 39> end

Najib YusufCentre for Atmospheric Research, AnyigbaNigeria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151002/f47d8ef8/attachment.html 


More information about the ncl-talk mailing list