def METHOD_NAME(dataArray):
    gflux = dataArray.FLUX_G[:]/dataArray.MW_TRANSMISSION_G[:]
    rflux = dataArray.FLUX_R[:]/dataArray.MW_TRANSMISSION_R[:]
    zflux = dataArray.FLUX_Z[:]/dataArray.MW_TRANSMISSION_Z[:]
    W1flux = dataArray.FLUX_W1[:]/dataArray.MW_TRANSMISSION_W1[:]
    W2flux = dataArray.FLUX_W2[:]/dataArray.MW_TRANSMISSION_W2[:]
    limitInf = 1.e-04
    gflux = gflux.clip(limitInf)
    rflux = rflux.clip(limitInf)
    zflux = zflux.clip(limitInf)
    W1flux = W1flux.clip(limitInf)
    W2flux = W2flux.clip(limitInf)
    g = np.where(gflux > limitInf, 22.5-2.5*np.log10(gflux), 0.)
    r = np.where(rflux > limitInf, 22.5-2.5*np.log10(rflux), 0.)
    z = np.where(zflux > limitInf, 22.5-2.5*np.log10(zflux), 0.)
    W1 = np.where(W1flux > limitInf, 22.5-2.5*np.log10(W1flux), 0.)
    W2 = np.where(W2flux > limitInf, 22.5-2.5*np.log10(W2flux), 0.)
    g[np.isnan(g)] = 0.
    g[np.isinf(g)] = 0.
    r[np.isnan(r)] = 0.
    r[np.isinf(r)] = 0.
    z[np.isnan(z)] = 0.
    z[np.isinf(z)] = 0.
    W1[np.isnan(W1)] = 0.
    W1[np.isinf(W1)] = 0.
    W2[np.isnan(W2)] = 0.
    W2[np.isinf(W2)] = 0.
    return g, r, z, W1, W2