Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

RE: How to delete wind data for specific days and certain vertical levels from the WRFOUT files

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

Hi,

I am running the wrf model to simulate the wind. I have given a spin-up time of 2 days for the model to run a 1-month simulation with 30 vertical levels.

I seek assistance as to how I can delete the spin-up days from my simulation output results and which software can I use?

Also, I need to delete simulated data for the upper vertical levels so that the output file size reduces as I am interested in the lowest 500 m only.

Appreciate guidiance, scripts, assistance and advice.

Regards
Kunal
 
Hi Kunal,

I recommend using netCDF Operators (NCO) to do this. I would use ncea to first cut out the dates you don't want in there and then you can also use it to cut down the vertical levels:

ncea -d Time,2,30 oldfile.nc newfile_time.nc

then for the levels:

ncea -d bottom_top,0,5 newfile_time.nc newfile_time_lev.nc

https://linux.die.net/man/1/ncea
 
Top