do_stationary function

Automatic stationary transformation