MCIP output layer reduction

Hello all,

I have an MCIP output METCRO3D.nc file for CONUS12Km with dimension 459X299X34. It has 34 vertical layers. I want a new METCRO3D.nc file with only the data from the first 7 layers and delete the rest (34-7 = 27 layers) Which tool do I need to use to do that?

Thank you for your help.

Hasibul

I believe m3xtract will do that.
https://www.cmascenter.org/ioapi/documentation/all_versions/html/M3XTRACT.html