import copy


def convertUnits(ww_params, pixel_size):
    """
    Convert to the units currently used by the analysis pipeline. This also
    adds additional zeros as needed to match the length expected by the
    analysis pipeline.
    """
    ww_params = copy.copy(ww_params)
    
    ww_params[0] = ww_params[0] * pixel_size
    ww_params[1] = ww_params[1] * 1.0e+3
    ww_params[2] = ww_params[2] * 1.0e+3

    for i in range(len(ww_params), 7):
        ww_params.append(0.0)
        
    return ww_params