fix sediments (flip), add argument to define z scale