Difference between revisions of "Geopsy: Waveform Scripting Language"
Jump to navigation
Jump to search
(→save) |
|||
Line 9: | Line 9: | ||
save(string tag); | save(string tag); | ||
=== Description === | === Description === | ||
− | Saves the current signals onto the stack under '''tag'''. '''tag''' is an arbitrary string used to [[#restore]] previously saved signals. | + | Saves the current signals onto the stack under '''tag'''. '''tag''' is an arbitrary string used to [[#restore|restore()]] previously saved signals. |
This function is systematically produced when using the [[Geopsy:Waveform Menu|waveform menu]] items. | This function is systematically produced when using the [[Geopsy:Waveform Menu|waveform menu]] items. | ||
=== Examples === | === Examples === | ||
Line 18: | Line 18: | ||
restore("Low pass 10 Hz"); | restore("Low pass 10 Hz"); | ||
clipStddev(); | clipStddev(); | ||
+ | |||
== restore == | == restore == | ||
== exportFile == | == exportFile == |
Revision as of 07:32, 1 July 2009
The scripting language is based on the ECMAScript scripting language, as defined in standard ECMA-262. Basic structures, variables,... are described in this document. Other references:
- A quick reference guide
- A more comprehensive tutorial (JavaScript which is also an ECMAScript)
Geopsy provides several additional functions for processing signals details here below
Contents
- 1 save
- 2 restore
- 3 exportFile
- 4 signalCount
- 5 header
- 6 setHeader
- 7 fastFourierTransfrom
- 8 subtractValue
- 9 subtractSignal
- 10 subtractSignals
- 11 multiply
- 12 filter
- 13 agc
- 14 whiten
- 15 stddevClip
- 16 shift
- 17 overSample
- 18 taper
- 19 cut
- 20 merge
- 21 mergeStations
- 22 decimateAmplitude
- 23 decimateTime
- 24 waveletTransform
- 25 stalta
- 26 discreteFourierTransform
- 27 rotateComponents
- 28 correlations
save
Syntax
save(string tag);
Description
Saves the current signals onto the stack under tag. tag is an arbitrary string used to restore() previously saved signals. This function is systematically produced when using the waveform menu items.
Examples
filter(); save("Low pass 10 Hz"); whiten(); save("Whiten"); restore("Low pass 10 Hz"); clipStddev();
restore
exportFile
signalCount
Syntax
integer signalCount();
Description
Returns the number of signals to process.
Examples
Sets the sampling frequency to 100 Hz for all signals
n=signalCount(); for(i=0;i<n;i++) { setHeader(i, "DeltaT", 0, 0.01); }