<div dir="ltr">Hi all,<div><br></div><div>I have hourly files from WRF and I wanted to create daily files (with the hourly outputs, Time=24). I was using addfile(, "c")....I know the error I got it is caused by "c", once the first file is created I can´t opened again..(If I am not wrong, right?) Is there any way to do it?</div><div><br></div><div><div><div>print(file_in)</div><div>; wrfout_d01_2010-01-01_00:00:<a href="http://00.nc">00.nc</a></div><div>wrfin = addfile(file_in,"r")</div><div><br></div><div>; I want the output: file_out=<a href="http://met_wrfout_d01_2010-01-01.nc">met_wrfout_d01_2010-01-01.nc</a> </div><div>wrfpost = addfile(file_out,"c")    ;create new netCDF file<br></div><div><br></div><div>pres_pa = wrf_user_getvar(wrfin,"pres",-1)</div><div>t_k = wrf_user_getvar(wrfin,"tk",-1)</div></div><div><br></div><div><div>wrfpost->t_k= t_k</div><div>wrfpost->pres_pa= pres_pa</div></div><div><div><br></div><div>Time = wrf_user_getvar(wrfin,"Times",-1)</div><div>lat = wrf_user_getvar(wrfin,"lat",-1)</div><div>lon = wrf_user_getvar(wrfin,"lon",-1)</div><div><br></div><div>wrfpost->time    = Time</div><div>wrfpost->lat= lat</div><div>wrfpost->lon= lon</div></div></div><div><br></div><div><br></div><div>Thanks in advance,</div><div>Best</div><div>Noelia</div><div><br></div></div>