Detecting spatial regimes in ecosystems. (January 2017)