The codes in this repository coarse-grain the spatial data and calculate the general EWS
Cite: Sumithra Sankaran*, Sabiha Majumder*, Sonia Kefi, Vishwesha Guttal, 2018, Implications of being discrete and spatial for detecting early warning signals of regime shifts, Ecological Indicators, 94:503-511 doi:https://doi.org/10.1016/j.ecolind.2017.11.040 (equal contribution)