Translate the centre of mass back and forth between polar and cartesian coordinates.
cen2xy(cen)xy2cen(xy)
the centre of mass of a wavelet spectrum (rho, phi, z), output of dt2cen
the centre of mass in cartesian coordinates (x, y, z), output of cen2xy
These functions allow you to translate back and forth between the two coordinate systems. dt2cen represents the sepctrum's centre in cylinder coordinates because that is more intuitive than the x-y-z position within the hexagonal geometry. If you want to compare two spectra, it makes more sense to consider their distance in terms of x1-x2, y1-y2 since the difference in angle is only meaningful for reasonably large radii.
dt2cen, cen2uv