Project

General

Profile

how to select a specific layer (level)

Added by Natalia L almost 4 years ago

Hello,

I have a netcdf file with several layers (named LAY in the netcdf) and I want to select the a specific layer only. I do the following but it does not work

cdo -sellevel,0 infile outfile

How can I specify that I want to select only the values of the netcdf file where the field LAY is equal to 0?

Thank you
Nat


Replies (1)

RE: how to select a specific layer (level) - Added by Brendan DeTracey almost 4 years ago

Using the verbose option:

$ cdo -v sellevel,0 infile outfile
might help diagnose your problem. The output of:
$ cdo sinfo infile
would show the variables names (or attach a sample file) to help.
My guess? Try:
$ cdo -v sellevidx,0 infile outfile
If that does not work it means you may have to first rename LAY to be CF Metadata compliant, but without a sample or sinfo dump...

    (1-1/1)