dist_from_coast.zip

版本 1.2.0.0 (99.7 KB) 作者: Dan Chavas
determine minimum distance to a coastal point
926.0 次下载
更新时间 2014/8/28

查看许可证

Code calculates the minimum distance from input vector of lat/lon points to any coastal point (including major lakes).
Two distance options: great circle distance, which is precise but slow (non-vectorized); mean distance with cos(latitude) weighting, which is less precise but fast.
Also includes option to only return distances less than a threshold value. This greatly increases speed for cases with many input lat/lon points located in a relatively small region of Earth.

Code uses coast.mat data that comes with MATLAB distribution, and it uses vdist function from MATLAB file exchange for great circle calculation (included in this .zip file).

引用格式

Dan Chavas (2024). dist_from_coast.zip (https://www.mathworks.com/matlabcentral/fileexchange/47632-dist_from_coast-zip), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

commented out test plot in file

1.1.0.0

2014-08-26 : added option to only return distances less than a threshold value. This greatly increases speed for cases with many input lat/lon points located in a relatively small region of Earth.

1.0.0.0