How can I use matlab land masks to check whether a position is over land or ocean?

12 ビュー (過去 30 日間)
James
James 2013 年 9 月 25 日
コメント済み: DGM 2022 年 3 月 9 日
I have a set of latitude and longitude positions. I need to divide these point up so that I have one set over the ocean and one set over the land. Any ideas how I can use Matlab to do this. I have thought about using the land masks used in the mapping toolbox but I'm not sure how to go about implementing this?
Thanks James

回答 (1 件)

Chad Greene
Chad Greene 2014 年 12 月 5 日
With the landmask function, get a logical array the same size as your lat and lon arrays like this:
land = landmask(lat,lon);
  2 件のコメント
Vineet Sharma
Vineet Sharma 2022 年 3 月 9 日
landmask is showing error...its not working....what is the way round...
DGM
DGM 2022 年 3 月 9 日
Nobody can know what you wrote or what error you are getting unless you reveal that information.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by