ncl OverviewThe NCAR Command Language (NCL), a product of the Computational & Information Systems Laboratory at the National Center for Atmospheric Research (NCAR), is a free interpreted language designed specifically for scientific data processing and visualization. As of version 5.0.0, NCL and NCAR Graphics are released as one package in source code or binary format.
UsageLoad the module to gain access to the NCL binaries and NCAR Graphics libraries.
module load nclAn example NCL file would look like this:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" begin x = new(9,float) y = new(9,float) x = (/10.,20.,30.,40.,50.,60.,70.,80.,90./) y = (/0.,0.71,1.,0.7,0.002,-0.71,-1.,-0.71,-0.003/) wks = gsn_open_wks("x11","gsun01n") plot = gsn_xy(wks,x,y,False) endSave this to a file and run:
$ ncl gsun01n.nclThis will open a graphical window with a plot of the x and y data in it. Make sure your SSH session has X forwarding enabled!
$ ssh -Y titan.ccs.ornl.gov
- firstname.lastname@example.orgemail@example.com ^firstname.lastname@example.org