"""Fit a gaussian function with linearly moving centroid position to the 2D data
:param S: data x values
:param T: data y values (axis along which centroid varies)
:param VV: data z values of shape [x,y]
:param p0: initial values of parameters
:param odr: Fit method to use: True means ortogonal distance regression (ODR), False means ordinary least square fit, None (default) uses ODR only if either xerr or yerr is not None
:param extend: fraction by which the returned fit trace extends beyond the first/last data point
"""
#r = np.repeat([np.linspace(0, 1, m)], n, axis=0).T