projects/themis/spacecraft/fields/
thm_scm_deconvo_vec.pro
function thm_scm_fastconvol(a, kernel) purpose: a wrapper that gives a unified interface to convol and blk_con - Unlike convol, it implements convolution in the mathematical sense while centering the kernel over each data point. center is at n_elements(k)/2 Unlike blk_con, it implements centering the kernel and the /edge keywords Default is to zero the edges within n_elements(k)/2 of the edge. parameters: a the data (floating point array). k the kernel to be convolved with the data (floating point array) keywords: edge_zero: pad beginning and ending of data with zero edge_truncate: pad beginning and ending of data with first/last value edge_wrap: pad beginning and ending of data by wrapping data around edge. blk_con: if non-zero, set block size to blk_con times kernel size. if zero always use brute-force convolution. Defaults to 8. Author: Ken Bromund Sept 18, 2007 $LastChangedBy: jimm $ $LastChangedDate: 2012-02-21 12:13:01 -0800 (Tue, 21 Feb 2012) $ $LastChangedRevision: 9797 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/themis/spacecraft/fields/thm_scm_deconvo_vec.pro $
Routines
Routines from thm_scm_deconvo_vec.pro
thm_scm_apotrap, s, ns
thm_scm_corgain, s, ns, df, fe, gainant, ix, pathfil, frq, init=init
thm_scm_coretar, s, ns, fe, tau
thm_scm_filtspe, s, ns, df, f1, f2
result = thm_scm_fastconvol(a, kernel, edge_zero=edge_zero, edge_wrap=edge_wrap, edge_truncate=edge_truncate, blk_con=blk_con)
thm_scm_deconvo_vec, xio, nbp, nk, f1, f2, fe, gainant, ix, pathfil, tau, edge_truncate=edge_truncate, edge_wrap=edge_wrap, edge_zero=edge_zero, blk_con=blk_con, plotk=plotk
Name: thm_scm_deconvo_vecPurpose: continuous calibration accomplished by convolveing a signal with a kernel.
Routine details
top source thm_scm_corgain
thm_scm_corgain, s, ns, df, fe, gainant, ix, pathfil, frq, init=init
Parameters
- s
- ns
- df
- fe
- gainant
- ix
- pathfil
- frq
Keywords
- init
top source thm_scm_fastconvol
result = thm_scm_fastconvol(a, kernel, edge_zero=edge_zero, edge_wrap=edge_wrap, edge_truncate=edge_truncate, blk_con=blk_con)
Parameters
- a
- kernel
Keywords
- edge_zero
- edge_wrap
- edge_truncate
- blk_con
top source thm_scm_deconvo_vec
thm_scm_deconvo_vec, xio, nbp, nk, f1, f2, fe, gainant, ix, pathfil, tau, edge_truncate=edge_truncate, edge_wrap=edge_wrap, edge_zero=edge_zero, blk_con=blk_con, plotk=plotk
Name: thm_scm_deconvo_vec Purpose: continuous calibration accomplished by convolveing a signal with a kernel. The kernel is derived by taking the fft of the inverse of the frequency reponse. The kernel is also constructed to account for any sample delay. Inputs: xio: input/output waveform nbp: number of points in xio nk: number of points in kernel: power of 2. f1: low frequency f2: high frequency fe: sample frequency gainant: gain function, such as thm_scm_gainant. If gainant is an empty string, unity gain will be used. ix: antenna number (1,2,3) pathfil: calibration file name tau: time correction Keywords: edge_truncate edge_wrap edge_zero same functionality as keywords of same name to convol() blk_con if non-zero, use block convolution (fast FFT-based convolution) with a block size of the value of this keyword times the kernel size. If data size is too small, it will revert to brute-force convolution. plotk create diagnostic plots of the kernel and frequency response.
Parameters
- xio
- nbp
- nk
- f1
- f2
- fe
- gainant
- ix
- pathfil
- tau
Keywords
- edge_truncate
- edge_wrap
- edge_zero
- blk_con
- plotk
File attributes
Modification date: | Thu Feb 13 16:42:38 2014 |
Lines: | 118 |