| | 1 | [ShCommands Return to command index] |
| | 2 | |
| | 3 | == despikes traces == |
| | 4 | |
| | 5 | '''command''': DESPIKE <trc-list> <detec> [<lo-t> <hi-t>] [<nsp>] [<ndc>] |
| | 6 | |
| | 7 | Removes spikes from one or more traces specified by <trc-list>. If a time window <lo-t>, <hi-t> is entered the despiking is restricted to this window, otherwise the whole trace is used. A spike is recognized if the difference between two samples is larger than <detec> times the mean difference on the |
| | 8 | whole trace. |
| | 9 | |
| | 10 | === parameters === |
| | 11 | |
| | 12 | * <trc-list> ''parameter type: trace list''[[BR]] |
| | 13 | List of traces to be despiked. |
| | 14 | |
| | 15 | * <detec> ''parameter type: real''[[BR]] |
| | 16 | A spike is detected if the difference between two samples is larger than <detec> times the mean difference. |
| | 17 | |
| | 18 | * <lo-t>, <hi-t> ''parameter type: real''[[BR]] |
| | 19 | If specified the spike detection is restricted to this time window given in seconds. |
| | 20 | |
| | 21 | * <nsp> ''parameter type: symbol address''[[BR]] |
| | 22 | Receives total number of removed spikes on all input traces. |
| | 23 | |
| | 24 | * <ndc> ''parameter type: symbol address''[[BR]] |
| | 25 | Receives total number of detected discontinuties on all input traces. |
| | 26 | |
| | 27 | === example === |
| | 28 | |
| | 29 | `despike 1-3 100.`:: |
| | 30 | despikes the whole traces 1,2,3 with a factor of 100. |
| | 31 | |
| | 32 | `despike 1 1000. 10. 15.`:: |
| | 33 | despikes traces 1 between 10 sec and 15 sec on time axis |
| | 34 | |
| | 35 | `despike 1 1000. *`:: |
| | 36 | despikes trace 1 within a window which must be selected by graphic cursor |