code from: Phenological mismatch affects individual fitness and population growth in the winter moth

code from: Phenological mismatch affects individual fitness and population growth in the winter moth