Difference between revisions of "Geopsy: Waveform Scripting Language"

From GeopsyWiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
Geopsy provides several additional functions for processing signals details here below
 
Geopsy provides several additional functions for processing signals details here below
 +
 +
== Categories ==
 +
 +
 +
== Alphabetical list ==
  
 
== save ==
 
== save ==

Revision as of 09:43, 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:

Geopsy provides several additional functions for processing signals details here below

Categories

Alphabetical list

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