1 Detailed model description 2 3 Overview 4 The yearly metapopulation demography is simulated based on four events: reproduction, 5 dispersal, survival and aging, in this order. Reproduction, dispersal and survival are based on 6 population density and habitat quality. Perceived habitat quality is controlled by time and 7 location specific temperature, and the individual’s genome. As such we simulate the effect of 8 stochastic temperature zone shifts on the distributions and individual numbers of the different 9 genotypes in the metapopulation. 10 11 Landscape 12 The landscape we use in the model has dimensions of 15 km from east to west by 2000 km 13 from north to south. The east and west side are merged to create a cylindric landscape. The 14 landscape contains 3000 circular habitat patches of 50 ha each, so consists of a total of 5% 15 habitat. When generating the landscape, patches were placed in random positions in the 16 landscape, yet only allowed if they were at a minimum distance of 150 m from existing 17 patches. Five landscape variants with different habitat positions were randomly generated in 18 this way. 19 20 Climate 21 Climate is incorporated in the model through habitat quality. Where climate is optimal for the 22 species, habitat quality equals 1, and where climate is unsuitable for the species, habitat 23 quality is 0 (see equation HQ below). Climate change scenarios are based on temperature 24 increase predictions (I °C year-1) by the Hadley Centre of 0.0167 and 0.0333 °C year-1, and 25 we also included a scenario with a temperature increase of 0.084 °C year-1. Besides, the used 26 scenarios include weather variability increase assumptions as temporal stochasticity in the 27 temperature (the current standard deviation of the average temperature ďłt (°C), 0.59 °C 28 (Schippers et al., 2011)). Climate in our model is thus defined as the temperature in year t and 29 at location Y. Climate change is then the speed with which temperature isoclines travel north 30 (T km year-1) and the yearly fluctuation of these lines (σd km). We use a climatic gradient 31 from south to north of G (ºC km-1) to get to: 32 33 T = I / G, and 34 đd = đt / G 35 36 This results in a current yearly fluctuation of the temperature isoclines σd of 140 km, and we 37 further included scenarios with yearly fluctiations σd of 0 km and 280 km. We can then 38 calculate the location of the optimal temperature in north-south direction (Yopt) in a certain 39 year as: 40 41 Yopt,t = Yopt,0 + T * t + đd * Nt 42 43 with Nt is the yearly random number drawn from a standard normal distribution. 44 We obtain a normal habitat quality distribution with this optimal coordinate Yopt in its centre 45 by defining habitat quality (HQ) as 46 47 HQpatch, t, ind = HQfactorgen * exp[-0.695(Yopt,t - Ypatch)2 / Hgen2] 48 49 Hgen is an indicator of the temperature tolerance of the specific genotype, and defined as the 50 distance from the temperature optimum at which habitat quality is 0.5. See Table 1. 51 HQfactorgen determines the perceived habitat quality of the individual with its specific 52 genotype. This factor serves as a trade-off for the larger temperature tolerance of the climate 53 generalist genotype GG. 54 55 Species 56 We modelled a woodland bird, parameterised as the middle spotted woodpecker 57 (Dendrocopus medius). Parameters were based on biological information (Hagemeijer & 58 Blair, 1997, Kosenko & Kaigorodova, 2001, Kosinski et al., 2004, Kosinski & Ksit, 2006, 59 Michalek & Winkler, 2001, Pasinelli, 2000, Pettersson, 1985a, Pettersson, 1985b) and on the 60 interpretation by Schippers et al. (2011)(see Table 1). The model distinguishes 2 sexes and 2 61 life stages: adults and juveniles. The yearly life cycle consists of recruitment, dispersal, and 62 survival, in this order. Lastly, all juveniles age to adults. Recruitment, dispersal and survival 63 are all dependent of life stage, population density (PD) and habitat quality (HQ). 64 65 PD = NI / CC, 66 67 with NI: number of individuals in patch, 68 CC: carrying capacity of patch, and 69 HQ: see section Climate in this appendix. 70 71 Recruitment function 72 The number of nests in a patch in each generation is equal to the number of unique adult pairs 73 of opposite sex in this patch, with a maximum of 10. The number of offspring per nest is then 74 found with: 75 76 đđ = đđ_đđˇ0 đťđ1 ∗ (1 − (1 − đđ_đđˇ0 đťđ0 đđ_đđˇ1 đťđ1 ) ∗ (1 − đťđ)) ∗ (1 − (1 − ) ∗ đđˇ) đđ_đđˇ0 đťđ1 đđ_đđˇ0 đťđ1 77 78 with đđ_đđˇ0 đťđ1 : number of offspring at population density (PD) = 0 and 79 habitat quality (HQ) =1, and similar for đđ_đđˇ0 đťđ0 and đđ_đđˇ1 đťđ1 . See Table 1. 80 81 Dispersal function 82 Determines for each individual the yearly chance that it leaves its patch to go on dispersal, PD. 83 84 đđˇ = đđˇđđˇ1 đťđ1 (−1 + đťđ + đđˇ) + đđˇ_đđˇ1 đťđ0 (1 − đťđ) + đđˇ_đđˇ0đťđ1 (1 − đđˇ) 85 86 with đđˇđđˇ1đťđ1 : dispersal rate at population density (PD) = 1 and habitat quality (HQ) =1, and 87 similar for đđˇ_đđˇ1 đťđ0 and đđˇ_đđˇ0 đťđ1 . See Table 1. 88 89 Survival function 90 Determines for each individual the chance that it survives the current year, PS. 91 92 đđ = đđ_đđˇ0đťđ1 ∗ (1 − (1 − đđđđˇ1 đťđ1 đđ_đđˇ0 đťđ0 ) ∗ đťđ) ∗ (1 − (1 − ) ∗ (1 − đđˇ)) đđ_đđˇ0 đťđ1 đđđđˇ0 đťđ1 93 94 with đđ_đđˇ0 đťđ1 : survival rate at population density (PD) = 0 and habitat quality (HQ) =1, and 95 similar for đđ_đđˇ0đťđ0 and đđ_đđˇ1 đťđ1 . See Table 1. 96 97 If an individual disperses, we need to determine where it goes. From their origin patch 98 individuals can go in every direction, along a straight line. Connectivity to other patches is 99 100 determined by destination patch radius (r) and distance to there (d). So the chance to disperse from patch A to patch B is: 101 102 PAB = (2* arcsin [(rB+l)/dAB]) / 2π 103 104 with l is 150 m, the maximum distance from where an individual can detect suitable habitat. 105 The maximum dispersal distance is 15 km, so habitat patches that are separated by more than 106 this distance are not directly connected. Our model does not allow dispersers to ignore a 107 nearer patch, so more distant patches are located in the shadow of the nearer patch. An 108 individual may arrive in a patch with a population size larger than carrying capacity twice per 109 dispersal event, and is then allowed to disperse again. Should it fail to reach a habitable patch 110 within a total of three dispersal rounds, it dies. 111 112 Explicit fitness responses to selection coefficients 113 Based on the above equations and the parameters in Table 1, we here show examples of the 114 explicit fitness responses to the selection induced by the average location of the temperature 115 optimum. All graphs refer to the specific case of adult individuals in populations at 0.5 116 carrying capacity, so with a population density of 50%. 117 Survival probability 0.8 0.75 0.7 0.65 GG 0.6 SS 0.55 0.5 0 200 400 600 Distance to temperature optimum 118 800 119 Figure S1. The average survival probabilities of the SS (specialist) and GG (generalist) individuals, relative to 120 the location of the temperature optimum, resulting from their perceived habitat qualities (see Figure 1). 121 Number of offspring 2.5 2 1.5 GG 1 SS 0.5 0 0 200 400 600 800 Distance to temperature optimum 122 123 Figure S2. The average numbers of offspring of the SS (specialist) and GG (generalist) females, relative to the 124 location of the temperature optimum, resulting from their perceived habitat qualities (see Figure 1). 125 Dispersal probability 0.5 0.4 0.3 0.2 GG 0.1 SS 0 0 200 400 600 800 Distance to temperature optimum 126 127 Figure S3. The average dispersal rates of the SS (specialist) and GG (generalist) individuals, relative to the 128 location of the temperature optimum, resulting from their perceived habitat qualities (see Figure 1). 129 130 The subjective habitat quality leads to different dispersal rates for generalist and specialist 131 individuals at the same location. The dispersal rate of an individual increases with decreased 132 perceived habitat quality. This means that, as the optimum temperature shifts, individuals 133 whose genotypes are in mismatch with their location relative to the temperature optimum, will 134 become more dispersive. This increases their chance of reaching a habitat patch with better 135 quality. 136 137 Initialisation 138 At initialisation of the model, all habitat patches were filled with 10 adult individuals, 139 equaling half the carrying capacity. Each individual was randomly given 2 alleles. The 140 climate optimum Yopt was initialised at 400 km from the southern landscape edge. 141 142 Burn-in 143 After initialisation the model was run for 3000 generations, thus 3000 years. During these 144 3000 years burn-in, the model runs with temperature isocline speed T equaling 0 in the 145 equation for Yopt,t. After this burn-in we started our experiments. 146 147 Experiments 148 In the experiments the temperature isoclines were simulated to move northward for 600 years, 149 under the different scenarios in Table 1. Each parameter setting was run twice in each 150 landscape variant (10 runs in total). For studying trends in numbers of individuals we 151 averaged these per parameter setting. We stored and analysed data for several points in time 152 (Table 1). To investigate the distribution of the genotypes we cut the landscape in ranges of 153 50 km and summed the numbers of individuals with the SS, SG, and GG genotypes in the 154 combined populations in each 50 km range. 155 156 Additional figure 157 158 159 Figure S4. The distributions and numbers of the GG (black bars), SG (dark gray bars), and SS (light gray bars) 160 genotypes in time through the model space under the temperature isocline shift rate of 4 km/year, with standard 161 deviation of 140 km. The lengths of the bars indicate the sum of the local numbers of individuals. The thin 162 horizontal lines represent the model space, cut into ranges of 50 km. The bold black lines in the model space 163 indicate the locations of the average temperature optimum along the total range of 2000 km in time, which is 164 indicated in the lower right corners of each of the figures. The temperature increase was stopped after 300 years. 165 In this particular run, in year 100 there were several SG-individuals at the range front, indicated by the arrow. 166 These could establish as a result of their selective advantage and their increase in numbers was subsequently 167 enhanced by the founder effect, leading to high numbers of specialists and intermediates throughout the range. 168 100 200 400 600 169 References 170 171 172 173 Hagemeijer WJM, Blair MJ (1997) The EBCC Atlas of European Breeding Birds, T. & A.D. Poyser. Kosenko SM, Kaigorodova EY (2001) Effect of habitat fragmentation on distribution, density 174 and breeding performance of the middle spotted woodpecker Dendrocopos medius 175 (Alves, Picidae) in Nerussa-Desna Polesye. Zoologichesky Zhurnal, 80, 71-78. 176 Kosinski Z, Kempa M, Hybsz R (2004) Accuracy and efficiency of different techniques for 177 censusing territorial Middle Spotted Woodpeckers Dendrocopos medius. Acta 178 Ornithologica, 39, 29-34. 179 Kosinski Z, Ksit P (2006) Comparative reproductive biology of middle spotted woodpeckers 180 Dendrocopos medius and great spotted woodpeckers D-major in a riverine forest. Bird 181 Study, 53, 237-246. 182 Michalek KG, Winkler H (2001) Parental care and parentage in monogamous great spotted 183 woodpeckers (Picoides major) and middle spotted woodpeckers (Picoides medius). 184 Behaviour, 138, 1259-1285. 185 Pasinelli G (2000) Oaks (Quercus sp.) and only oaks? Relations between habitat structure and 186 home range size of the middle spotted woodpecker (Dendrocopos medius). Biological 187 Conservation, 93, 227-235. 188 Pettersson B (1985a) Extinction of an isolated population of the Middle Spotted Woodpecker 189 Dendrocopos-Medius (L) in Sweden and its relation to general theories on extinction. 190 Biological Conservation, 32, 335-353. 191 Pettersson B (1985b) Relative importance of habitat area, isolation and quality for the 192 occurrence of middle spotted woodpecker Dendrocopos-Medius (L) in Sweden. 193 Holarctic Ecology, 8, 53-58. 194 Schippers P, Verboom J, Vos CC, Jochem R (2011) Metapopulation shift and survival of 195 woodland birds under climate change: will species be able to track? Ecography, 34, 196 909-919. 197 198