What is a scientist that studies living and nonliving things in an ecosystem?

I would describe such a scientist as an environmental scientist.