median_depth_filter

median_depth_filter(df, length)[source]

Performs a median filter along the depth axis.

Parameters:
  • df (DataFrame) – The input data with time as rows and depth as columns.

  • length (int) –

    The number of loci to include in the median filter. A length of 3 allows removal

    of spikes spanning a single depth as seen in Optasense data.

Returns:

The median depth filtered dataframe

Return type:

DataFrame