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

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개)

With the landmask function, get a logical array the same size as your lat and lon arrays like this:
land = landmask(lat,lon);

댓글 수: 2

landmask is showing error...its not working....what is the way round...
Nobody can know what you wrote or what error you are getting unless you reveal that information.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

질문:

2013년 9월 25일

댓글:

DGM
2022년 3월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by