参照了guide上移动HCMAQ结果的时间,摸索了一下,大致弄清了m3tshift的用法
下面是把2001年8月1日0:00的文件移动到2020年8月1日0:00
#!/bin/csh -f
set EXEC = /ioapi/3.2/ioapi-3.2-large-2020220/Linux2_x86_64ifort/m3tshift
#> Year to be entirely encompassed by the time stamps in the time-shifted output file
set TARGET_YEAR = 2021
#> Path
set DATADIR = /CMAQ-5.3.3/MEGANv2.10/Output
#> Name of the file
set AV_CONC_INFILE = meganout.20010801_d01.ncf
#> Name of the time-shifted file
set AV_CONC_OUTFILE = meganout_20010801_to_20200801.nc
setenv INFILE ${DATADIR}/${AV_CONC_INFILE}
setenv OUTFILE /CMAQ_new/HCMAQ_BCON/$AV_CONC_OUTFILE
#> Invoke m3shift to shift the time stamps to the target year
#> Note that the first time stamp represents the fall of the previous year
@ TARGET_YEAR = ${TARGET_YEAR} - 1
${EXEC} << EOF
INFILE
2001213 #startyear and julian date
000000 #起始时刻00:00:00
${TARGET_YEAR}214
000000 #目标年七十时刻00:00:00
10000 #步长1小时
7190000 #runlen 719hour
OUTFILE
EOF