elephant.current_source_density.estimate_csd(lfp, coordinates=None, method=None, process_estimate=True, **kwargs)[source]

Function call to compute the current source density (CSD) from extracellular potential recordings (local field potentials - LFP) using laminar electrodes or multi-contact electrodes with 2D or 3D geometries.


positions of electrodes can be added as neo.RecordingChannel coordinate or sent externally as a func argument (See coords)

coordinates[Optional] corresponding spatial coordinates of the

electrodes. Defaults to None Otherwise looks for ChannelIndex coordinate


Pick a method corresponding to the setup, in this implementation For Laminar probe style (1D), use ‘KCSD1D’ or ‘StandardCSD’,

or ‘DeltaiCSD’ or ‘StepiCSD’ or ‘SplineiCSD’

For MEA probe style (2D), use ‘KCSD2D’, or ‘MoIKCSD’ For array of laminar probes (3D), use ‘KCSD3D’ Defaults to None


In the py_iCSD_toolbox this corresponds to the filter_csd - the parameters are passed as kwargs here ie., f_type and f_order In the kcsd methods this corresponds to cross_validate - the parameters are passed as kwargs here ie., lambdas and Rs Defaults to True

kwargsparameters to each method

The parameters corresponding to the method chosen See the documentation of the individual method Default is {} - picks the best parameters,

Estimated CSD

neo.AnalogSignal object annotated with the spatial coordinates


No units specified for electrode spatial coordinates


Invalid function arguments, wrong method name, or mismatching coordinates


Invalid cv_param argument passed