Extract the smallest box enclosing a masked region
Added by Pier Giuseppe Fogli almost 5 years ago
Hi,
I was wondering if there is a way to locate and extract the smallest box enclosing a masked region.
For example: suppose one has a mask for the equatorial Atlantic ocean on a global grid and wants to extract just the smallest box enclosing this region. Is there a way to locate the indices or coordinates of the smallest enclosing box in order to extract the region using selindexbox/sellonlatbox ?
Thanks.
P.G. Fogli
Replies (1)
RE: Extract the smallest box enclosing a masked region - Added by Ralf Mueller almost 5 years ago
hi!
First: there is no operator for this. But you can find out the min/max lon/at yourself by using
cdo -outputkey,lon,lat <ifile>and sorting with unix
sort
command. this should give you the right input parameters for sellonlatbox
I think
hth
ralf