Difference between revisions of "Geopsy: Waveform Scripting Language"
Jump to navigation
Jump to search
(New page: The scripting language is based on the ECMAScript scripting language, as defined in standard [http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf ECMA-262]. Basic str...) |
|||
Line 6: | Line 6: | ||
== save == | == 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 [[Geopsy:Waveform Menu|waveform menu]] items. | ||
+ | === Examples === | ||
+ | filter(); | ||
+ | save("Low pass 10 Hz"); | ||
+ | whiten(); | ||
+ | save("Whiten"); | ||
+ | restore("Low pass 10 Hz"); | ||
+ | clipStddev(); | ||
== restore == | == restore == | ||
== exportFile == | == 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); | ||
+ | } | ||
== header == | == header == | ||
== setHeader == | == setHeader == |
Revision as of 07:30, 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); }