Project

General

Profile

Edit the netcdf land sea mask

Added by effrain mu almost 4 years ago

Hi,

I have a land sea mask where land=1, sea=0. I want to create a new global land sea mask with the same resolution so that my study are cells = 1, and the rest =0.

I have the study area shapefile and the long (-66.81,-59.77) and lat (-7.98,-13.69). Can anyone help me with this?

Thank you so much!


Replies (1)

RE: Edit the netcdf land sea mask - Added by Ralf Mueller almost 4 years ago

Hi!
Try this one:

cdo -f nc -setmisstoc,0 -masklonlatbox,-66.81,-59.77,-7.98,-13.69 -const,1,invariants.nc maskedBoxOfInterest.nc

hth
ralf

    (1-1/1)