1、去除字符串两端的空格: strtrim(str,flag) 其中flag=0去尾部空格, flag=1去首部空格, flag=2去两边空格
2、格式化化输出,不足2位补零:print,string(1,format='(i02)') 输出为01 ;print,string(11,format='(i02)')输出结果为11
3、判断文件是否存在:FILE_TEST(etTifFilePath)返回值为true 或者 false
4、根据路径获取文件名:
filebasename=FILE_BASENAME(filename) ;带扩展名的文件名
fileNameWithoutExtent=strmid(filebasename,0,strpos(filebasename,'.',/REVERSE_SEARCH)) ;无后缀文件名