data_operations.fill_holes_segment#
Back to Module page
Summary#
Fill holes in a segment of data
Signature#
def fill_holes_segment(data_seg, qmask_seg, valid_mask_seg, wt_filter_td, support_wt, erase_bands, band_erased, qmask_prev_seg)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Segment of whitened strained data |
||
|
Boolean mask with zeros at holes in unwhitened data |
||
|
Boolean mask with zeros marking where we cannot trust whitened data |
||
|
Time domain whitening filter |
||
|
Time domain support of whitening filter (2 \* support_wt - 1 nonzero coeffs) |
||
|
Boolean flag indicating whether we are erasing bands |
||
|
Boolean flag indicating whether we have erased bands |
||
|
Boolean mask with zeros at holes in unwhitened data with the previous Boolean mask |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Inpaints holes in data in place, expands holes and quality mask if needed, and marks valid_mask if we failed |
Docstring#
Fill holes in a segment of data
:param data_seg: Segment of whitened strained data
:param qmask_seg: Boolean mask with zeros at holes in unwhitened data
:param valid_mask_seg: Boolean mask with zeros marking where we cannot
trust whitened data
:param wt_filter_td: Time domain whitening filter
:param support_wt: Time domain support of whitening filter
(2 * support_wt - 1 nonzero coeffs)
:param erase_bands: Boolean flag indicating whether we are erasing bands
:param band_erased: Boolean flag indicating whether we have erased bands
:param qmask_prev_seg: Boolean mask with zeros at holes in unwhitened data
with the previous Boolean mask
:return: Inpaints holes in data in place, expands holes and quality mask
if needed, and marks valid_mask if we failed