def crtPwBoxCarFn(varNumVol, aryPngData, aryPresOrd, vecMtDrctn):
print('<STR_LIT>')<EOL>aryBoxCar = np.empty(aryPngData.shape[<NUM_LIT:0>:<NUM_LIT:2>] + (len(vecMtDrctn),) +<EOL>(varNumVol,), dtype='<STR_LIT>')<EOL>for ind, num in enumerate(vecMtDrctn):<EOL><INDENT>aryCondTemp = np.zeros((aryPngData.shape), dtype='<STR_LIT>')<EOL>lgcTempMtDrctn = [aryPresOrd == num][<NUM_LIT:0>]<EOL>aryCondTemp[:, :, lgcTempMtDrctn] = np.copy(<EOL>aryPngData[:, :, lgcTempMtDrctn])<EOL>aryBoxCar[:, :, ind, :] = aryCondTemp<EOL><DEDENT>return aryBoxCar<EOL>
Create pixel-wise boxcar functions.

    Parameters
    ----------
    input1 : 2d numpy array, shape [n_samples, n_measurements]
        Description of input 1.
    input2 : float, positive
      Description of input 2.
    Returns
    -------
    data : 2d numpy array, shape [n_samples, n_measurements]
        Closed data.
    Reference
    ---------
    [1]