dist_from_coast.zip
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 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- Sciences > Earth, Ocean, and Atmospheric Sciences > Oceanography and Hydrology >
- Engineering > Civil and Environmental Engineering > Coastal Engineering >
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!