use boolean indexing rather than np.where
use boolean indexing rather than np.where

avoids overflow errors when function is applied to nodata

fortyninemaps/karta,fortyninemaps/karta,fortyninemaps/karta