Project

General

Profile

Remove ocean values

Added by Srivatsan Raghavan over 13 years ago

Hello All,

Is there a way to remove ( or set as '0') all the values over the ocean areas of a domain ( not necessarily global domain). This is needed so as to compute the spatial correlation or take area/domain average to produce correlation maps or scatter plots...

Thanks a lot,

Sri


Replies (3)

RE: Remove ocean values - Added by Ralf Mueller over 13 years ago

Hi Sri!

You can mask them out with the masking operators.

cheers
ralf

RE: Remove ocean values - Added by Srivatsan Raghavan over 13 years ago

Hi Ralf,

Thanks a lot..

Could you show an example command please. somehow it doesnt work for me.. not sure how to use the mask function to specify only the land or ocean... in my case, I want to make all my ocean values 0.

Cheers,

Sri

RE: Remove ocean values - Added by Ralf Mueller over 13 years ago

At first you need a land-sea-mask file. I described the creation here. Then you should use the multiplication operator mul to get 0 at ocean points:

cdo mul ifile land-sea-mask.nc ofile

    (1-3/3)