Difference between revisions of "Geopsy: Waveform Scripting Language"

From GeopsyWiki
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:

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