hgt_to_dpt function

convert from height to depth