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

2D taper

Create 2d mask of size \([n_\text{mask} \times n_t]\) with tapering of size ntap along the first (and possibly second) dimensions

nt : int

Number of samples along second dimension

nmask : int

Number of samples along first dimension

ntap : int or list

Number of samples of tapering at edges of first dimension (or both dimensions).

tapertype : str, optional

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

taper : numpy.ndarray

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

Examples using pylops.utils.tapers.taper2d