Project

General

Profile

Slect layers

Added by Muhammad Ramzan 12 months ago

Hello,

I hope you are doing well.

I am working with a NetCDF file that has 17 layers of lev, and I want to select all the layers with lev values of 1000, 925, and 850. Could you please tell me how to do this using CDO?

Also, how can I apply this to all the NetCDF files in a folder?

Thank you.


Replies (3)

RE: Slect layers - Added by Muhammad Ramzan 12 months ago

and also time with 00:00:00 please

RE: Slect layers - Added by Muhammad Ramzan 12 months ago

I want to extract the layers of a netCDF file where lev is 1000, 925, and 850, and the time is 00:00:00.

Thank you

RE: Slect layers - Added by Karin Meier-Fleischer 12 months ago

Hi Muhammad,

if you have a look at the CDO User Guide https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf

you will find an operator sellevel - see https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.3.3

and an operator seltime - see https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.3.4

cdo -seltime,00:00:00 -sellevel,1000,925,850 infile outfile
    (1-3/3)