Project

General

Profile

Is there a way to have the masklonlatbox for specific vertical levels while keeping all the other levels?

Added by Nadja Omanovic over 2 years ago

Hello,

I would like to change the values for a specific region and at specific height of an input file for ICON simulation. I know the command `masklonlatbox`, and this should be now applied to only specific levels. With `sellevel` my out.nc file would only have the selected levels, but I want to keep the other levels set to missing values. Is there a way to do that?

I am happy for any other suggestions, my main goal is to have one region at a specific height modified, while the rest remains empty or zero. I have attached a dummy file, what is the basis and should be changed to the desired output.

Thank you for your help.

Cheers,
Nadja


Replies (1)

RE: Is there a way to have the masklonlatbox for specific vertical levels while keeping all the other levels? - Added by Ralf Mueller over 2 years ago

hi Nadja!

I think you can do the following

  1. split your input file along the levels with cdo splitlevel
  2. use masklonlatbox on only those levels you want to change
  3. put everything back together with cdo merge

cheers
ralf

    (1-1/1)