<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>;
; "<a href="http://uv300.nc">uv300.nc</a> data file is in $NCARG_ROOT/lib/ncarg/data/cdf
;
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"  
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
begin
  filename = "<a href="http://uv300.nc">uv300.nc</a>"
  a = addfile(filename,"r")
  u = a->U(0,:,:)                   ; read first time step
  wks = gsn_open_wks("x11","xy")
  res = True
  res@gsnMaximize = True
  plot = gsn_csm_xy(wks,u&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't continue<br>fatal:["Execute.c":8575]:Execute: Error occurred at or near line 11 in file xyplot.ncl<br>--<br><br></div>So the function gsn_csm_xy isn'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 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>;load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<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>