rev_dir function

reverse direction of time/depth axis