def funcSmthSpt(aryFuncChnk, varSdSmthSpt):
varNdim = aryFuncChnk.ndim<EOL>varNumVol = aryFuncChnk.shape[-<NUM_LIT:1>]<EOL>if varNdim == <NUM_LIT:4>:<EOL><INDENT>for idxVol in range(<NUM_LIT:0>, varNumVol):<EOL><INDENT>aryFuncChnk[:, :, :, idxVol] = gaussian_filter(<EOL>aryFuncChnk[:, :, :, idxVol],<EOL>varSdSmthSpt,<EOL>order=<NUM_LIT:0>,<EOL>mode='<STR_LIT>',<EOL>truncate=<NUM_LIT>)<EOL><DEDENT><DEDENT>elif varNdim == <NUM_LIT:5>:<EOL><INDENT>varNumMtnDrctns = aryFuncChnk.shape[<NUM_LIT:3>]<EOL>for idxVol in range(<NUM_LIT:0>, varNumVol):<EOL><INDENT>for idxMtn in range(<NUM_LIT:0>, varNumMtnDrctns):<EOL><INDENT>aryFuncChnk[:, :, :, idxMtn, idxVol] = gaussian_filter(<EOL>aryFuncChnk[:, :, :, idxMtn, idxVol],<EOL>varSdSmthSpt,<EOL>order=<NUM_LIT:0>,<EOL>mode='<STR_LIT>',<EOL>truncate=<NUM_LIT>)<EOL><DEDENT><DEDENT><DEDENT>return aryFuncChnk<EOL>
Apply spatial smoothing to the input data.

    Parameters
    ----------
    aryFuncChnk : np.array
        TODO
    varSdSmthSpt : float (?)
        Extent of smoothing.
    Returns
    -------
    aryFuncChnk : np.array
        Smoothed data.