In this paper, we connect ideas of the astrobiological and ecological schools to quantify habitability. We show how habitability indexes, devised using the astrobiologically inspired Quantitative Habitability Theory (QHT), can be embedded into ecological models of trophic levels. In particular, we address the problem of spatial-temporal scales. It turns out that the versatility of QHT allows to treat spatial and temporal scales typical of ecological studies. As a habitability index, we propose a new version of our Aquatic Primary Habitability, devised by some of us and formerly applied to saltwater ecosystems (both ocean and coastal) and now applied to freshwater. Although the aim of the paper is to outline the methodology rather than realism, initial steps for parameterization are considered for lakes of South-Central Chile.