Difference between revisions of "Geopsy: Set header"

From GeopsyWiki
Jump to navigation Jump to search
Line 4: Line 4:
 
[[Image:Setheaders.png|thumb|right|400px|Dialog box to editing header information]]
 
[[Image:Setheaders.png|thumb|right|400px|Dialog box to editing header information]]
  
From any active [[Geopsy: Signal Viewer|signal viewer]] (which is by definition a list of signals), click on menu item ''Edit/Set headers''. A dialog box will appear. You can type any number of equations in the left editor. To assist you, for instance for a correct spelling of signal field names, you can use the combos ''Variables'', operators and Functions.
+
From any active [[Geopsy: Signal Viewer|signal viewer]] (which is by definition a list of signals), click on menu item ''Edit/Set headers''. A dialog box will appear. You can type any number of equations in the left editor. To assist you, for instance for a correct spelling of signal field names, you can use the combos ''Variables'', usual ''operators'' and ''Functions'' [[Image:SetHeadersCombos.png|text-top]]
  
All formulas are separated by ''';''' (like in C). If a line begins with '''//''', all text is ignored until the end of the line (like C comments). The same way, all text included between '''/*''' and '''*/''' is considered as a comment. Commenting parts of an equation may be interesting to solve errors. The general syntax is : '''SignalData = value;'''.
+
All formulas are separated by ''';''' (like in C). If a line begins with '''//''', all text is ignored until the end of the line (like C comments). The same way, all text included between '''/*''' and '''*/''' is considered as a comment. Commenting parts of an equation may be interesting to solve errors.
  
To assist you ''operators'' and usual ''functions'' are available in combos.
+
The general syntax is : '''SignalData = value;'''.
  
You may also save  
+
 
 +
You may also save the current equations in file and load it later
  
 
<br style="clear: both"/>
 
<br style="clear: both"/>
  
 
== Examples ==
 
== Examples ==

Revision as of 08:41, 11 March 2010

This section explains how to modify header information stored in a database in a very efficient way. Any information about signals can be viewed in a table. Signals can be modified one by one by cell editing (Ctrl+K). For huge number of signals this is boring and time consuming. Instead, you can create formulas and apply them with one single click. The syntax for these formulas is rather simple.

General presentation

Dialog box to editing header information

From any active signal viewer (which is by definition a list of signals), click on menu item Edit/Set headers. A dialog box will appear. You can type any number of equations in the left editor. To assist you, for instance for a correct spelling of signal field names, you can use the combos Variables, usual operators and Functions SetHeadersCombos.png

All formulas are separated by ; (like in C). If a line begins with //, all text is ignored until the end of the line (like C comments). The same way, all text included between /* and */ is considered as a comment. Commenting parts of an equation may be interesting to solve errors.

The general syntax is : SignalData = value;.


You may also save the current equations in file and load it later


Examples