关于WRFDA-tool中plot_gts_omb_oma.ncl的isfilepresent的小bug

直接使用plot_gts_omb_oma.ncl会有点小bug

(0) Can not find the file /public/home/fjhyt/Chenjq/research/scs_tropical/varout_f12_tropical2/2019070200/gts_omb_oma_01_d01 Will skip it

ls /public/home/fjhyt/Chenjq/research/scs_tropical/varout_f12_tropical2/2019070200/gts_omb_oma_01_d01 提示文件是正常的。

查找语句发现:判断文件是否存在用的是:isfilepresent

isfilepresent 是NCL比较早期的程序,有局限性。http://www.ncl.ucar.edu/Document/Functions/Built-in/isfilepresent.shtml

改用fileexists问题就解决了。 http://www.ncl.ucar.edu/Document/Functions/Built-in/fileexists.shtml

简单备注,共享,备查。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容