Project

General

Profile

cdo mergegrid and nin-gridded variables

Added by Rostislav Kouznetsov over 8 years ago

Hi,

I have looked for a tool to join MPI-subdomain grids,
and came across gather operator that does the job reasonably fast.
it has quite convenient syntax that allows for shell wildcards:
cdo gather outfile_???.nc oit.nc

The trouble is that my files have few non-grid variables, like full- and half-level hybrid-vertical parameters.
cdo assigns them with a "generic grid" and crashes complaining:
cdo gather (Abort): Unsupported grid type: generic!

The gather operator passes if list the input files separately and prepend each of them with -selgrid,2.
Then resulting file is fine except for missing vertical parameters.
I can use ncks to add them to the file, but that would require additional reshuffling of the data.

Is there any way to specify the grid to gather, and to keep other variables as they are?

Thank you!
BR,
Rostislav