def compute_kxy(kxx, dTx, dTy, width, length, Resistance=5000):
    """
    Computes the thermal Hall conductivity aka kxy in W / Km

    Parameters:
    ----------------------------------------------------------------------------
    kxx:      1d array
    The values of the longitudinal thermal conductivity.
    dTx:    1d array
    The values of the longitudinal temperature gradient in the sample.
    dTy:    1d array
    The values of the transverse temperature gradient in the sample.
    width:  float
    The sample's width in meters
    length: 1d array
    The sample's length in meters
    """

    length_ratio = length/width
    delta_ratio = dTy/dTx
    kxy = kxx*delta_ratio*length_ratio

    return kxy