Geopsy: Waveform Scripting Language

From GeopsyWiki
Revision as of 07:32, 1 July 2009 by Marc (talk | contribs) (→‎save)
Jump to navigation Jump to search

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:

Geopsy provides several additional functions for processing signals details here below

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);
 }

header

setHeader

fastFourierTransfrom

subtractValue

subtractSignal

subtractSignals

multiply

filter

agc

whiten

stddevClip

shift

overSample

taper

cut

merge

mergeStations

decimateAmplitude

decimateTime

waveletTransform

stalta

discreteFourierTransform

rotateComponents

correlations