detect_envi_change function

Detect areas influenced by a changing environment variable.