tp_to_ddc function

construct depth-depth curve from coeval heights