finding patches of ones in a 2D grid of zeroes
Version 1.0.0 (4.33 KB) by
Vincent Moron
These functions could be helpful in atmospheric or oceanic sciences for example to compute the wet patches of a rainfall field.
These functions could be helpful in atmospheric or oceanic sciences for example to compute the wet patches of a rainfall field or defining low pressure centers from a MSLP map. tracking_space_unique.m finds a unique patch from a user-defined location and tracking_space_new.m finds all patchs from a 2d grid without any pre-defined locations. find9.m and ponder.m are needed respectively to find neighbour in 2D grid and weight latitudes to compute the centers of each patch. Of course, it is also possible to use these functions on any 2D grid without the reference of lat/lon.
Cite As
Vincent Moron (2025). finding patches of ones in a 2D grid of zeroes (https://www.mathworks.com/matlabcentral/fileexchange/131643-finding-patches-of-ones-in-a-2d-grid-of-zeroes), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |