Skip to content

williamedge/d2spike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code to de-spike time series data based on the Goring-Nikora (2002) and Wahl (2003) method.

The package is specifically intended for de-spiking data from acoustic profiler instruments (e.g. ADCPs) which are 2D. It has been tested on heavily spiked ADCP data from the pelagic bottom boundary layer. The key improvements over the basic Goring-Nikora implementation are:

  • Use of correlation data (supplied by instrument) to pre-emptively remove likely poor data before lowpass filtering.
  • 2D Gaussian filtering to determine the mean (background) velocity. This is a fundamental and potentially difficult part of the method. Incorrect determination of the time series mean will violate the methods assumptions and cause erroneous spike detection.
  • 2D interpolation after the de-spiking algorithm. This is optional and may not be a good idea depending on the intended use of the data.

Package is pip installable: pip install d2spike

To do:

  • fix up GP reinstatement functions
  • general code clean up
  • test if calling a second class after floatda is actually necessary
    • if not, then make all functions capable of passing an xarray object
  • better class condition enforcement and error handling (not really done yet)
  • docs
  • notebook examples

About

Despiking acoustic profiler data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published