NCL中文使用说明解读.ppt,NCAR Command Language (NCL);一、简介;二、语法;2.2 数据类型 数值型:double(64位)、float(32位)、long(32或 64位),integer(32位),short(16位)、byte(8位)。 非数值型:string、character、graphic、file、 logical、list。 2.3 运算符 代数运
ncl操作手册 NCARCommandLanguage(NCL)一、简介 二、语法 •2.2数据类型 数值型:double(64位)、float(32位)、long(32或64位),integer(32位),short(16位)、byte(8位)。非数值型:string、character、graphic、file、logical、list。•2.3运算符 •代数运算符 –+ 加 –- 减 –* 乘 –^ 指数 –...
“isdim”可以检测给定的一个string是否是这个变量的一个维的名字。 2021/3/13 * 2.9 属性 Attributes:变量的”属性”就是变量的信息。变量的属性用”@ “符 号创建和调用。属性只能为已存在的变量创建。 例: x@min = -50 x@max = 50.0d ;d表示double型数值 x@units=meters x@long_time=A variable ...
41、ipt, Im getting a fatal:NclMalloc Failed error message.This message likely means the memory requirements of the variable(s) in an NCL script have exceeded the available memory on your machine. This can happen if you are trying to read or create very large arrays, or if you have lots...
floattoint,floattointeger,floattolong,floattoshort,flt2dble,flt2string——单精度浮点型 6.int2dble,int2flt,integertobyte,integertochar,integertocharacter,integertoshort,inttobyte,inttochar,inttocharacter,inttoshort——整型 7.longtobyte,longtochar,longtocharacter,longtoint,longtointeger,longto...
1," ")lat = stringtofloat(str_get_field(data, 3," "))*0.1lon = stringtofloat(str_get_field(data, 4, " "))*0.1mslp = stringtoint(str_get_field(data, 5," " ))vmax = stringtoint(str_get_field(data, 6, " "));print(vmax)DateChar = stringtochar(YYYYMMDDHH)MM = chart...
ncl操作手册创新.ppt,NCAR Command Language (NCL);一、简介;二、语法;2.2 数据类型 数值型:double(64位)、float(32位)、long(32或 64位),integer(32位),short(16位)、byte(8位)。 非数值型:string、character、graphic、file、 logical、list。 2.3 运算符 代数运算符
第二章-NCL变量及基本语法
variablename–T nameddimensions–time,lat,lon attributes–long_name,units,_FillValue floatprr(time,y,x) prr:_FillValue=-9999.f;CF prr:missing_value=-9999.f;COARDS prr:long_name="LiquidPrecipitation";CF,COARDS prr:grid_mapping="Lambert_Conformal"; ...
x = stringtofloat(systemfunc(cut –c14-19 sample.txt)) 此命令将从”sample.txt”中截取第14到19列,然后返回一个一维字符串类型的数组给x。 system与systemfunc的不同是:system只是执行一个Unix命令而不会返回任何值。 例:system(“cp 10.nc /ptmp/user/”) ;复制10.nc到/ptmp/user 六、命令行选项 ...