Am running into a brick wall due to inexperience. Searches on-line and discussions with fellow python experts here coming up empty. Have a 2d lat lon grid of wind speed. Want to create a binary mask showing where wind speed exceeds a specific threshold not just at the local grid point but any grid point within 20km of the given grid point. Masks just considering the local grid point are simple enough – just trying to find a speedy way to consider the surrounding grid points too without having to go down the road of brute-force iterative looping.
Tested some xarray/numpy methods of rolling and aggregating but too iterative (as I understood how to use them). Did some online searches and found some close but not quite applicable discussions to our case.
Pete is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.