直接使用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
简单备注,共享,备查。