NCAR / ncl

The NCAR Command Language (NCL) is a scripting language for the analysis and visualization of climate and weather data.

Home Page:http://www.ncl.ucar.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write 64-bit integers to binary files

Dave-Allured opened this issue · comments

Please add support for 64-bit integers and other extended numeric (xnumeric) data types to the binary write procedures, cbinwrite and fbindirwrite. Currently:

ncl 33> print (typeof (x_int64))
(0)     int64

ncl 34> print (typeof (x_uint64))
(0)     uint64

ncl 35> cbinwrite ("test.int64", x_int64) 
fatal:Argument type mismatch on argument (1) of (cbinwrite) can not coerce
fatal:["Execute.c":8635]:Execute: Error occurred at or near line 35

ncl 36> cbinwrite ("test.uint64", x_uint64)
fatal:Argument type mismatch on argument (1) of (cbinwrite) can not coerce
fatal:["Execute.c":8635]:Execute: Error occurred at or near line 36