Supplement 1. British national grid XY coordinates of habitat patches, colony size data which give the number of individuals in a patch per year, and the OpenBUGS code for implementing the SPOM.

<h2>File List</h2><div> <a href="XY_data.txt">XY_data.txt</a> (MD5: 9174c10342b9d0d1d94397fa6ce5d4be)<br> <a href="local_pop_data.txt">local_pop_data.txt</a> (MD5: 513ef66f95dbfc8629a07bccc97d9f9a)<br> <a href="SPOM_bugs.txt">SPOM_bugs.txt</a>(MD5: b4156301e75a180d6138e43eb352daa9)</div><h2>Description</h2><div> <p>XY_data.txt: Site coordinates (x and y) on the British National Grid (BNG)<br> local_pop_data.txt: Total number of individuals trapped per site, per year.<br> SPOM_bugs: OpenBUGS code for the Stochastic Patch Occupancy Model that includes demographic stage structure and spatially correlated extinctions. The code provided includes a rescue effect. </p> </div>