Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Loops 循环NCL WRF Chem中的文件以提取文本文件中的数据_Loops_Ncl - Fatal编程技术网

Loops 循环NCL WRF Chem中的文件以提取文本文件中的数据

Loops 循环NCL WRF Chem中的文件以提取文本文件中的数据,loops,ncl,Loops,Ncl,我正在使用NCL提取WRFOUT文件的数据。。 我有12天的小时档案。表示文件夹中有12*24个文件。。 我收到的错误消息如下所示: 致命:变量(ifil)未定义 即使在提到ifil=0之后,脚本也无法正常运行 脚本在这里:: load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

我正在使用NCL提取WRFOUT文件的数据。。 我有12天的小时档案。表示文件夹中有12*24个文件。。 我收到的错误消息如下所示:

致命:变量(ifil)未定义 即使在提到ifil=0之后,脚本也无法正常运行

脚本在这里::

 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
 load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

 begin

DATADir = "/vols/fs1/abakus/rami/WRF_try_21/WRFV3_seasalt_decrease/WRFV3/run/"
FILES = systemfunc (" ls -1 " + DATADir +"wrfout_d03_2018-05-*")

ifil = 0
b= addfile(FILES(ifil),"r")
 PMcoarse = wrf_user_getvar(b,"PM10",0)
 PM = PMcoarse(0,:,:)
 
 asciiwrite("PM10_domain3.txt",PM)   

end
请引导解决它

提前谢谢