[ncl-talk] fatal:syntax error:

Rick Brownrigg brownrig at ucar.edu
Tue Mar 14 10:26:02 MDT 2017


Hi Najib,

For whatever reason, there are two unprintable characters in the first line
of your script -- a 0xbb followed by 0xbf.  Probably the easiest fix is to
delete the first line with a text editor, and re-type it if you really want
that comment in your script.

HTH...
Rick


On Tue, Mar 14, 2017 at 10:17 AM, Najib Yusuf <najibgal at yahoo.com> wrote:

> 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 statement
> yslogin4-/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+"/"+model1
> testcase2 = dir+model2+"/"+model2
>
> ;************************************************************************
> p0     = 1000.     ; mb required by vinth2p
> interp = 2         ; log interpolation
> extrap = 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
>
>
> _______________________________________________
> 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/20170314/881e99f4/attachment.html 


More information about the ncl-talk mailing list