Early warnings of regime shifts in spatial dynamics using the discrete Fourier transform | Synapse