./validate.csh ./VALIDATION ./VALIDATE 在做這部分的時候,有部分檔案缺少 Times 變數,錯誤訊息如下
exemplar Times
2019-05-05_22:00:54
2019-05-05_22:00:18
2019-05-05_22:00:00
2019-05-05_22:00:36
vendor Times
Traceback (most recent call last):
File "wrf_bench_checker.py", line 339, in <module>
main()
File "wrf_bench_checker.py", line 332, in main
out_for_3way_anova(verbose, 'THM', 'theta', 2, exemplar, vendor, box_indexes)
File "wrf_bench_checker.py", line 162, in out_for_3way_anova
print ("".join(str(fp.variables['Times'][0,:],"utf-8")))
File "src/netCDF4/_netCDF4.pyx", line 4967, in netCDF4._netCDF4.Variable.__getitem__
File "src/netCDF4/_netCDF4.pyx", line 5922, in netCDF4._netCDF4.Variable._get
IndexError: index exceeds dimension bounds
執行過程皆顯示成功,有嘗試過修改 np 跟其他方法都還是出錯,ncdump 確認後有一半的檔案沒有 Times,以下是我的 PBS,想詢問該如何解決
#!/bin/bash
#PBS -P ACD112218
#PBS -N HPC-WinteCamp-Wrf
#PBS -l nodes=4:ppn=2
#PBS -l walltime=2:00:00
#PBS -q ct160
#PBS -o job-out.log
#PBS -e job-err.log
export OMP_NUM_THREADS=1
cd /path/to/WRF_practice_kit
ln -sf namelist.input-VALIDATE namelist.input
/usr/bin/time -p mpirun -np 8 /path/to/WRF_practice_kit/wrf.exe
rm -rf VALIDATE
mkdir VALIDATE
mv rsl.* namelist.input namelist.output VALIDATE
mv wrfo* VALIDATE
ln -sf namelist.input-TIMING namelist.input
/path/to/WRF_practice_kit/wrf.exe
rm -rf TIMING
mkdir TIMING
mv rsl.* namelist.input namelist.output TIMING