Added ``ed_to_uv`` function