landmask

版本 1.0.0.0 (276.4 KB) 作者: Chad Greene
Get a logical land mass corresponding to your data.
4.3K 次下载
更新时间 2014/12/5

查看许可证

This function returns a logical array describing the landness of any given lat/lon arrays. Requires Matlab's Mapping Toolbox.
This function uses Matlab's built-in coast.mat file with inpolygons to determining whether input lat/lons are inside or outside perimeters of land areas.

Syntax
land = landmask(lat,lon)
land = landmask(...,'landmass')
land = landmask(...,quality)

Description
land = landmask(lat,lon) returns logical land array corresponding to the dimensions of input lat and lon. 1 is land, 0 is not land.

land = landmask(...,'landmass') specifies any of the following regions of mask:

'Antarctica'
'Africa and Eurasia'
'North and South America'
'Greenland'
'Australia'
'Baffin Island'
'Ellesmere Island'
'New Guinea'
'Great Britain'
'Borneo'
'Honshu'
'Victoria Island'
'Celebes'
'New Zealand North Island'
'Sumatra'
'Madagascar'
'Iceland'
'New Zealand South Island'
'Newfoundland'
'Luzon'
'Devon Island'
'Ireland'
'Cuba'
'Java'
'Mindanao'

land = landmask(...,quality) specifies quality from 0 to 100. This option is provided because for large data sets, the land mask function can take quite some time. For example, on my laptop, a calculating 180x360 land mask for all continents takes about 65 seconds at 100% quality. Default quality is 95, which takes about 6 seconds for the same dataset on my laptop. The quality setting is only used when calculating the land mask using all of the world's continents. For single land masses, 100% quality is assumed.

引用格式

Chad Greene (2024). landmask (https://www.mathworks.com/matlabcentral/fileexchange/48661-landmask), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: How to map sea level rise, Post-glacial rebound

启发作品: borders

Community Treasure Hunt

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

Start Hunting!

landmask/html/

版本 已发布 发行说明
1.0.0.0