dist_from_coast.zip

Version 1.2.0.0 (99,7 ko) par Dan Chavas
determine minimum distance to a coastal point
915 téléchargements
Mise à jour 28 août 2014

Afficher la licence

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

Citation pour cette source

Dan Chavas (2024). dist_from_coast.zip (https://www.mathworks.com/matlabcentral/fileexchange/47632-dist_from_coast-zip), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2014a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
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