pylops.utils.tapers.taper3d

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

3D taper

Create 3d mask of size \([n_\text{mask}[0] \times n_\text{mask}[1] \times n_t]\) with tapering of size ntap along the first and second dimension

Parameters:
nt : int

Number of time samples of mask along third dimension

nmask : tuple

Number of space samples of mask along first and second dimensions

ntap : tuple

Number of samples of tapering at edges of first and second dimensions

tapertype : int

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

Returns:
taper : numpy.ndarray

3d mask with tapering along first dimension of size \([n_\text{mask,0} \times n_\text{mask,1} \times n_t]\)