I'm a user of WRF V3.5 aiming at meteorological simulation.
Sometimes, I'll run the model for a long period.
My attempt
I split the long period(e.g 1 year) into serval short ones.
For example:
## WPS namelist.wps
start_date = '2014-01-01_06:00:00'
end_date = '2014-01-31_23:00:00'
## WRF run period setting in .csh file.
set year = "2014"
foreach strtime (010106010512 010500011012 011000011512 011500012012 012000012512 012500013012 013000020100)
set smon = `echo ${strtime}|cut -c1-2`
set sday = `echo ${strtime}|cut -c3-4`
set shr = `echo ${strtime}|cut -c5-6`
set emon = `echo ${strtime}|cut -c7-8`
set eday = `echo ${strtime}|cut -c9-10`
set ehr = `echo ${strtime}|cut -c11-12`
&time_control
run_days = 0,
run_hours = 132,
run_minutes = 0,
run_seconds = 0,
start_year = ${year},${year},
start_month = ${smon},${smon},
start_day = ${sday},${sday},
start_hour = ${shr},${shr},
start_minute = 00,00,
start_second = 00,00,
end_year = ${year},${year},
end_month = ${emon},${emon},
end_day = ${eday},${eday},
end_hour = ${ehr},${ehr},
end_minute = 00,00,
end_second = 00,00,
interval_seconds = 21600
In these short period, I set the first 12-h as the spinning period(except the start one.)
This is the schematics of the temporal modeling setup which I clipped from the Internet.
http://i12.tietuku.cn/afd906ddd823ddd6.png
Result
It generate 8 .nc file which each contain 132 frames of data.
For now, I use the The netCDF Operators(NCO) to deal with the output files.
Using
ncks
to delete the first 12-h frames for each file separately.Using
ncrcat
to concat all 8 .nc files together to get one file represent the whole simulation period.
Problem
I was using this method for a while. But when the amount of files are huge, it really a dump approach.
Are there someone offering your approaches to dealing with spin-up data deletion?
My target
- The model can generate only one file which contain all the simulation period.
- The spin-up time can be covered by last file's frames automatically.
wrfout_2016_03_17_00
was the last frame for one simulation. The next simulation start withwrfout_2016_03_17_00
.Then the file would be rewritten. But I want to keep the older one. $\endgroup$ – Han Zhengzu Mar 17 '16 at 15:56