<div dir="ltr"><div><div><div><div><div><div><div>Good day,<br><br></div>New user, so this will be trivial for most, regardless I am stuck.<br><br></div>Version: 6.3.0<br><br>All the NCL stuff is located in : /usr/local/ncl-6.3.0/...<br><br><br></div>I am trying the basics of plotting, I understand what is happening but I am clearly missing something.<br><br>----<br></div><div>Script (basicxyplot.ncl):<br><br></div><div><pre>;
; &quot;<a href="http://uv300.nc">uv300.nc</a> data file is in $NCARG_ROOT/lib/ncarg/data/cdf
;
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;  
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;  

begin
  filename = &quot;<a href="http://uv300.nc">uv300.nc</a>&quot;
  a = addfile(filename,&quot;r&quot;)

  u = a-&gt;U(0,:,:)                   ; read first time step

  wks = gsn_open_wks(&quot;x11&quot;,&quot;xy&quot;)

  res = True
  res@gsnMaximize = True

  plot = gsn_csm_xy(wks,u&amp;lat,u(:,5),res)
end
</pre><br>----<br></div>When I try: $ncl basicxyplot.ncl it returns:<br>---<br>fatal:Undefined identifier: (gsn_csm_xy) is undefined, can&#39;t continue<br>fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 11 in file xyplot.ncl<br>--<br><br></div>So the function gsn_csm_xy isn&#39;t defined anywhere...great so I go ahead and download that simple script and put it in my home directory..<br></div>-------<br></div>Script(gsn_csm_xy.ncl)<br><br>;load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>;load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br><br>    function gsn_csm_xy (<br>        wks [1] : graphic,  <br>        x       : numeric,  <br>        y       : numeric,  <br>        res [1] : logical   <br>    )<br><br>    return_val [1] :  graphic<br><br><div><div><div>--------<br><br></div><div>Still the error, why?<br></div></div></div></div>