I want to analyze the relationships between environmental heterogeneity and complexity with the infaunal structure and distribution. My study area is an intertidal sand flat with mixed types of biogenic and abiotic structures, like shells, small rocks, algae, worm tubes and small vascular plants. Does anybody knows what is the best way to measure the small scale environmental complexity and heterogeneity in such environments?