pylops.utils.tapers.taper2d#
- 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- Parameters
- nt
int
Number of samples along second dimension
- nmask
int
Number of samples along first dimension
- ntap
int
orlist
Number of samples of tapering at edges of first dimension (or both dimensions).
- tapertype
str
, optional Type of taper (
hanning
,cosine
,cosinesquare
orNone
)
- nt
- Returns
- taper
numpy.ndarray
2d mask with tapering along first dimension of size \([n_\text{mask} \times n_t]\)
- taper