Clip Raster By Polygon

版本 1.0.0.0 (4.8 KB) 作者: Mohammad Abouali
Clips a raster by a polygon and extracts certain statistics
355.0 次下载
更新时间 2017/7/24

查看许可证

This code clips a raster data to a polygon and calculates some statistics. Current operations are:
- Aggregate By Area: sum all the pixels within the polygon. Values are multiplied by the overlapping area of the pixel and the polygon.
- Average By Area: averages all the pixels within the polygon. The average is a weighted average based on the overlapping area of the pixel and the polygon
- aggregate: Sum of all the pixels that area within the polygon, even if partially.
- average: averages all the pixels within the area, even if partially.
- Majority: Returns the most frequently occuring value among all the pixels within polygon (even if partially). It uses "mode" function of matlab.

引用格式

Mohammad Abouali (2024). Clip Raster By Polygon (https://www.mathworks.com/matlabcentral/fileexchange/63855-clip-raster-by-polygon), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Elementary Polygons 的更多信息

Community Treasure Hunt

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

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