Project

General

Profile

Change the values of variables

Added by YUU YAN almost 6 years ago

Hi, I have a nc file with lat lon and bathymetry. The bathymetry has positive and negative value. I want to change the positive values to 0, and then change the negative values to absolute value (positive one). How can I do this by CDO?


Replies (2)

RE: Change the values of variables - Added by Ralf Mueller almost 6 years ago

use setrtoc for setting positive values to zero and abs for compute the absolute value of the remaining negative field values

hth
ralf

RE: Change the values of variables - Added by YUU YAN almost 6 years ago

Hi Ralf,thanks so much.

    (1-2/2)