Stable population analysis in periodic environments