读取一个ASCII文件, function 并返回文件头信息 readAsciiHead ( filename : string, opt ) retrun_val [*] : string 19 strlen 读取字符串或字符串 function strlen ( 变量的长度 str : string ) return_val [dimsizes(str)] : integer 20 stringtoint string型强制转换成 function integer stringtoint (...
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 = char...
11-11 1-1 0 以下为NCL保留字,定义函数和变量名,请勿使用。 begin,break,byte,character,continue,create,defaultapp,do,double,else,end,external,False,file,float,function,getvalues,graphic,if,integer,load,local,logical,long,new,noparent,numeric,procedure,quit,Quit,QUIT,record,return,setvalues,short,s...
4、virtivervirtionwithoutusing new oronoftheconversionrouteines,like integertobyte6.howdoincludethedoublequote ( ) characterinanclstring?7 .用户输入can ncl prompt?8.isitposibleetohaveglobalvariablesinncl?9.howcanideletemultiplenclvariableswithonestatement?10. How do I delete a named dimension?11.s...
5. How do I create a double, long, short, or byte variable without using "new" or one of the conversion routines, like "integertobyte"? 6. How do I include the double quote (") character in an NCL string? 7. Can NCL prompt for user input? 8. Is it possible to have global ...
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运算符 •代数运算符 –+ 加 –- 减 –* 乘 –^ 指数 –...
eq.1) then utc_str(i,2)="0"+utc_str(i,2) end if utc_str(i,1)=month_abbr(tointeger(utc_str(i,1))) end do strs_raw(:)=utc_str(:,3)+"00"+" LST "+utc_str(:,2)+" "+utc_str(:,1) 标注单位、下标、上标 摄氏温度:~S~o~N~C 回车:“~C~”,如当横坐标时间信息太...
x = fbinrecread (“f.ieee”,0,(/64,128/),”float”) fbinrecread(path :string,rnum:integer,dims[*]:integer,type:string)能够用来读取固定记录长度二进制 记录(直接存取)。文件中所有记录必须具有相同的维数和类型。读取第(n+1)个记录: x = fbinrecread (“f.ieee”,n,(/73,144/),”float”...
NCLFrequentlyAskedQuestions(FAQ)Basics | NCLcorelanguage | Fileinput/output | Datahandling | Dataanalysis | Visualization | Arrayfunctions |Outputformats | Errormessages |