pylops.utils.tapers.tapernd(nmask, ntap, tapertype='hanning')[source]

ND taper

Create nd mask of size \([n_\text{mask}[0] \times n_\text{mask}[1] \times ... \times n_\text{mask}[N-1]]\) with tapering of size ntap along all dimensions

nmask : tuple

Number of space samples of mask along every dimension

ntap : tuple

Number of samples of tapering at edges of every dimension

tapertype : int

Type of taper (hanning, cosine, cosinesquare or None)

taper : numpy.ndarray

Nd mask with tapering along first dimension of size \([n_\text{mask,0} \times n_\text{mask,1} \times ... \times n_\text{mask,N-1}]\)