pylops.utils.tapers.tapernd

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

Parameters
nmasktuple

Number of space samples of mask along every dimension

ntaptuple

Number of samples of tapering at edges of every dimension

tapertypeint

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

Returns
tapernumpy.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}]\)