mod_filter module#

mod_filter.apply_bandpass_filter(ds, lambda_min=65.0, lambda_max=500.0)#
mod_filter.compute_median_dx(dataset)#
mod_filter.distance(lon0, lat0, lon1, lat1)#

Compute distance between points from each line.

Parameters:
  • lon0 (float)

  • lat0 (float)

  • lon1 (float)

  • lat1 (float)

Returns:

distance (in m)

Return type:

array

mod_filter.lanczos_filter(wave_length, x, z, order=1)#

Apply a lanczos filter on z field

Parameters:
  • wave_length (float) – half window where apply lanczos in x units

  • x (array) – must be growing for each track but could be irregular

  • z (array) – field to apply lanczos

mod_filter.median_filter(half_window, x, z)#

Apply a median filter on z field

Parameters:
  • half_window (float) – half window where apply median

  • x (array) – must be growing for each track but could be irregular

  • z (array) – field to apply median