Filter löschen
Filter löschen

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

14 Ansichten (letzte 30 Tage)
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

Antworten (1)

Chad Greene
Chad Greene am 5 Dez. 2014
With the landmask function, get a logical array the same size as your lat and lon arrays like this:
land = landmask(lat,lon);
  2 Kommentare
Vineet Sharma
Vineet Sharma am 9 Mär. 2022
landmask is showing error...its not working....what is the way round...
DGM
DGM am 9 Mär. 2022
Nobody can know what you wrote or what error you are getting unless you reveal that information.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Oceanography and Hydrology finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by