MATLAB Answers

0

How can I interpolate an ocean's variable without interpolate the continents?

Asked by gerry espinosa vallejo on 8 Jun 2017
Latest activity Answered by Chad Greene
on 9 Mar 2019
I have a matrix with ocean's variable and another matrix with the grid for continents, but all the functions for interpolation doesn't have an option for exclude cells. Do you have an idea to accomplish this?
P.S. it doesn't worth make an interpolation and then cut the continents

  0 Comments

Sign in to comment.

1 Answer

Answer by Chad Greene
on 9 Mar 2019

You can use the island function in the Climate Data Toolbox for Matlab to determine which grid cells are land and which ones are ocean. With that mask, you can then fill in the land or ocean values however you'd like.

  0 Comments

Sign in to comment.