Create `n_valid` property
Closed this issue · 0 comments
erykoff commented
@esheldon notes it is often convenient to compute the number of valid pixels in a map without generating the list of valid pixels (faster and less memory). This can be done in the simple case with n_valid = np.sum(self._sparse_map != self._sentinel)
with slight modifications for recarrays and wide masks.
The map area coverage should also use this routine.