| 1 | [ShScripts Return to script index] |
| 2 | |
| 3 | == normalize peaks == |
| 4 | |
| 5 | '''command''': UNIT_ALL <lo-wdw> <hi-wdw> |
| 6 | |
| 7 | On each trace of the display the maximum sample amplitude within the time window (<lo-wdw>,<hi-wdw>) is set to 1.0. This procedure does not only affect the display of the traces, it changes the sample values! Keep this in mind if you compute rotations or sums of these traces later on. |
| 8 | |
| 9 | === parameters === |
| 10 | |
| 11 | * <lo-wdw>, <hi-wdw> ''parameter type: real'' |
| 12 | The maximum amplitude is detected only within this given time window (in sec). |
| 13 | |
| 14 | === example === |
| 15 | |
| 16 | `unit_all 0. 100.`:: |
| 17 | sets all peaks between 0 and 100 sec to amplitude 1.0 |
| 18 | |
| 19 | === commands used === |
| 20 | |
| 21 | * [ShCalc CALC] |
| 22 | * [ShDefault DEFAULT] |
| 23 | * [ShGoto GOTO] |
| 24 | * [ShIf IF] |
| 25 | * [ShReturn RETURN] |
| 26 | * [ShSdef SDEF] |
| 27 | * [ShUnit UNIT] |
| 28 | |