The NCAR Command Language (NCL). Ethan Alpert Visualization and Enabling Technologies Section, SCD, NCAR. What is NCL?. NCL is an interpreted programming language Array based algebraic operators Unique netCDF data model Traditional programming language constructs
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
The NCAR Command Language (NCL)
Visualization and Enabling Technologies Section, SCD, NCAR
double64bits+/- ( 2.22507e-308 ) to (8.98846e+307)
float32bits+/- ( 1.175494e-38 ) to (1.701411e+38)
long32bits+/- ( 2.147483e+09 ) (64bit on SGI)
integer32bits+/- ( 2.147483e+09 )
short16bits+/- ( 32767 )
byte8bits ( 0 ) - ( 255 )
T!0 = “time”
T!1 = “lat”
T!2 = “lon”
T&time = (/0,6,12,18,24/)
K = A->variable
Standard operators: -, ^, *, /, %, +
Unique operators: %, #, <, >
Logical operators: .eq., .ne., .le., .gt., .ge., .lt.,
.and., .xor., .or., .not.
do var = startval, endval [, stride]
. . .
. . .
a = b ; dimensions, attributes, and coordinate
; variables as well as value copied
a = (/b/) ; only value of b is copied
FUNCTION ARCLN(NUMPNT, POINTX, POINTY)
DIMENSION POINTX(NUMPNT), POINTY(NUMPNT)
wrapit77 < wrapper_input >! wrapper_W.c
nhlcc -c fcode_W.c
nhlf77 -c fcode.f
ld -shared -o fcode.so fcode_W.o fcode.o
external fcode “path to shared object”