A new way to predict how habitat zones will shift or vanish could help usher endangered species to safety.