Merging netcdf files

25 views
Skip to first unread message

Eric P. Salathe

unread,
Jul 16, 2024, 8:04:54 PM7/16/24
to wrfpython-talk
Hi all--       A common way to manage disk space with large WRF archives is to strip the time-invariant fields (XLAT XLONG HGT P00 PB etc) from the wrfouts and store as a separate file (eg grid.nc). However, the resulting stripped files are not recognized by wrf-python. Is there a way to merge the time-invariant (ie no time dimension) file with the wrf data file? Thanks!

-Eric

Dileepkumar R

unread,
Jul 16, 2024, 8:42:53 PM7/16/24
to Eric P. Salathe, wrfpython-talk

Yes, I am using CDO commands for this purpose.


Here is the commands... 

export SKIP_SAME_TIME=1


cdo mergetime ncfile1 ncfile2 ncfile3 Combined_nc_FileName


But you should check the dates once you merged.



On Wed, 17 Jul, 2024, 05:35 Eric P. Salathe, <sal...@uw.edu> wrote:
Hi all--       A common way to manage disk space with large WRF archives is to strip the time-invariant fields (XLAT XLONG HGT P00 PB etc) from the wrfouts and store as a separate file (eg grid.nc). However, the resulting stripped files are not recognized by wrf-python. Is there a way to merge the time-invariant (ie no time dimension) file with the wrf data file? Thanks!

-Eric

--
You received this message because you are subscribed to the Google Groups "wrfpython-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wrfpython-tal...@ucar.edu.
To view this discussion on the web visit https://groups.google.com/a/ucar.edu/d/msgid/wrfpython-talk/30a85e11-c540-4656-ab90-aa004cf6a3e7n%40ucar.edu.
Reply all
Reply to author
Forward
0 new messages