[ncl-talk] fatal:syntax error:

Najib Yusuf najibgal at yahoo.com
Tue Mar 14 10:17:37 MDT 2017


Dear ncl talk,
Kindly how can I resolve this error message though I tried using this link https://www.ncl.ucar.edu/Document/Language/error_messages.shtml#LineM1 explanation but i am still getting the error. I appreciate your guidance.
yslogin4-/glade/p/work/najiby/ncl>ncl plot_surface_data_africa1.ncl

fatal:syntax error: line 1 in file plot_surface_data_africa1.ncl before or near ▒▒^
fatal:error in statementyslogin4-/glade/p/work/najiby/ncl>ncl plot_surface_data_africa2.ncl
My script:; NCL script
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; BRH
begin
;vars = (/"TS","PRECT"/);spec_units = (/"K","mm/day"/);factor = (/1.,1.,1.e+09,1./)vars = (/"TS","AEROD_v"/)spec_units = (/"K","ppb"," "/)factor = (/1.,1./)nvars = dimsizes (vars)wkdir = "/glade/p/work/najiby/ncl/plots/";wkdir = "/glade/p/acd/tilmes/africa/plots/"dir = "/glade/p/acd/tilmes/amwg/africa/climo/"model1 = "f.e11.TSREFC1SD.f19.f19.ccmi23.emis05"model2 = "f.e11.TSREFC1SD.f19.f19.ccmi23.emis_ref2005"testcase1 = dir+model1+"/"+model1testcase2 = dir+model2+"/"+model2
;************************************************************************p0     = 1000.     ; mb required by vinth2pinterp = 2         ; log interpolationextrap = False     ; no extrapolation past psfc.;************************************************************************
offset = (/-5., 0./)fa = (/5., 0.05/)fad = (/1., 0.1/);do i = 0, nvars-2;end do"plot_surface_data_africa5.ncl" [readonly] 302L, 9041C
end
Thank you

Najib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170314/8ba7f30b/attachment.html 


More information about the ncl-talk mailing list