Difference between revisions of "Geopsy: Table"

From GeopsyWiki
Jump to navigation Jump to search
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A '''Table''' is a [[Geopsy: Signal Viewer|Signal viewer]] representing the metadata of a set or a subset of signals. It can be created using the [[Geopsy: Signal Viewer|View menu]] and then [[Geopsy: Signal drag&drop|drag and drop]] the set of signals of interest in table. [[Geopsy: Signal drag&drop|Drag and drop]] signals directly on the table icon in the [[Geopsy: Toolbar|toolbar]] produces the same.
+
A '''Table''' is a [[Geopsy: Signal Viewer|Signal viewer]] representing the metadata of a set or a subset of signals. It can be created using the [[Geopsy: View menu|View menu]] and then [[Geopsy: Signal drag&drop|drag and drop]] the set of signals of interest in table. [[Geopsy: Signal drag&drop|Drag and drop]] signals directly on the table icon in the [[Geopsy: Toolbar|toolbar]] produces the same result.
  
The various actions that can be performed with a subset of signals in a table are described in [[Geopsy: Signal Viewer|Signal viewer]] entry.
+
The various actions that can be performed with a subset of signals in a table are described in the following sections.
  
Basically, a table allows you to view and to edit the header information about signals. Each row represents a signal and each column is an information field. The order and the list of displayed fields is specified by the table preferences for all newly created table. You can also change the displayed information for the active table only by selecting item [[Geopsy: View Menu/Table|set data fields]] from [[Geopsy: View Menu/Table|View menu]]. Columns and rows can be resized (press mouse at the limit between two columns or cells). However, automatic resizing is usually correct.
+
Basically, a table allows you to view and to edit the [[Geopsy: Database#Internal_database_structure|header information]] about signals. Each row represents a signal and each column is an information field. The default fields displayed are showed in the figure [[Image:TableDefaultView.png|thumb|right|400px|Default table view]].
 +
The order and the list of fields displayed by the table Viewers are specified in [[Geopsy: Preferences|preferences]] for all newly created table.  
 +
<br style="clear: both"/>
  
Signal selection
+
==Set data fields==
  
Signals are selected with the mouse left button. If the SHIFT key is also pressed the selection is extended from the current row to the selected row. If the CTRL key is pressed at the same time as the mouse left button, the selected row is added to the selection and become the current row. The current row contains the active cell.
+
If a table is open it is possible to select the option Set data fields in the [[Geopsy: View menu|View menu]].[[Image:SetDataFields2.png|thumb|right|150px|Setting of data fields in View menu]]
 +
Selecting this option a window appears in which it is possible to customize the active table view. [[Image:SetDataFields3.png|thumb|right|200px|Data fields options window]]
 +
It is possible to change the displayed fields and corresponding names, add fields after the last row or insert a field in a selected position. Furthermore it is possible to save the current table view as default or custom in order to carry out it in following sessions.
 +
Columns and rows can be resized (press mouse at the limit between two columns or cells). However, automatic resizing is usually correct.
 +
<br style="clear: both"/>
  
Pressing the mouse left button on any selected row and moving the pointer initialise the [[Geopsy: Database|signal drag and drop mechanism]] marked by a modified mouse cursor. A circle crossed by a line means that the signals cannot be dropped at this place. When it changes to a plus sign, the mouse left button can be released to drop the signals to the destination (an existing viewer or the icons of viewers: , ,  in the toolbar).
+
== Table editing ==
  
Cell editing
+
In order to edit directly a table, the ''lock table edition'' option in the [[Geopsy: Signal Viewer|view menu]] must not be checked off. In this mode, you can select individual cells and change their content. This mode is not suitable to [[Geopsy: Signal drag&drop|drag and drop]] signals. Return to the original lock mode to move signals to other viewers. You can edit any cell, but some of them are linked to read-only fields (e.g. NSamples, the number of samples).
 +
To edit many cells in an efficient way with a few operation you can also refer to the Set headers option in the [[Geopsy: Edit menu|edit menu]].
  
To edit the contents of a cell, you must first unlock cell editing. Click on menu item "Edit/Lock table edition" to uncheck the option. In this mode, you can select individual cells and change their content. This mode is not suitable to drag and drop signals. Return to the original lock mode to move signals to other viewers.
+
== Signal selection ==
  
You can edit any cells, but some of them are linked to read-only fields (e.g. NSamples, the number of samples).
+
It is possible to select signals directly in the table view. Signals are selected with the mouse left button. If the SHIFT key is also pressed the selection is extended from the current row to the selected row. If the CTRL key is pressed at the same time as the mouse left button, the selected row is added to the selection and becomes the current row. The current row contains the active cell.
 +
Current selection can be viewed and analyzed by means of the available [[Geopsy: Tools|tools]], simply [[Geopsy: Signal drag&drop|dragging and dropping]] them on the selected icon in the [[Geopsy: Toolbar|toolbar]].  
  
To edit many cells with a few operation you can also you dialog box proposed by menu item "Edit/Set headers".
 
  
Export
+
== Exporting tables==
  
Copy and paste action are not possible like in common tabular softwares. However, it is possible to export the information contained in a table to a text file (column separated by TABs) which can be in turn loaded in any usual tabular software. The file can be edited and imported in the table to apply the changes. Read-only fields are not affected by imports.
 
  
To export a table, select "Export" from menu "File". A combo box lets you select the export format. Select "Table" format. Enter the file name to export. A default extension (".txt") is provided for compatibility with usual tabular software. Comment are marked with '#' at the beginning of lines. Not all fields attached to a signal are exported but only the fields displayed in the active table. The list of fields is given in the first uncommented line. The field names are the standard ones given in the database description.
+
Copy and paste actions are not possible like in common tabular softwares. However, it is possible to export the information contained in a table to a text file (column separated by TABs) which can be in turn loaded in any usual tabular software. The file can be edited and imported in the table to apply the changes. Read-only fields are not affected by imports.
 +
To export a table, select ''export'' option from [[Geopsy: File menu|file menu]]. A combo box lets you select the export format.  
 +
Select "Table" format. Enter the file name to export. A default extension (".txt") is provided for compatibility with usual tabular software. [[Image:ExportTab.png|thumb|right|200px|Export table menu]] Comment are marked with '#' at the beginning of lines. Not all fields attached to a signal are exported but only the fields displayed in the active table. The list of fields is given in the first uncommented line. The field names are the standard ones given in the database description.
 +
# This file contains all the variables that were listed in Geopsy's Table
 +
# You can edit this file as you want.
 +
# All columns must be separated by only one tabulation.
 +
# Lines starting with '#' are always ignored when importing.
 +
# The first line starting without '#' must contains the name of each variable.
 +
#
 +
ID Name Component TimeReference T0 EndTime SamplingFrequency DeltaT NSamples Duration ReceiverX ReceiverY ReceiverZ Type
 +
1 WA_WAU01 East 25/02/2010 00:00:00 29995 30934.74 100 0.01 93974 939.74 0 0 0 Waveform
  
Example of a file exported from a table
 
# This file contains all the variables that were listed in Geopsy's Table
 
# You can edit this file as you want.
 
# All columns must be separated by only one tabulation.
 
# Lines starting with '#' are always ignored when importing.
 
# The first line starting without '#' must contains the name of each variable.
 
#
 
ID      Name    Component      TimeReference  T0      EndTime SampFreq        DeltaT  NSamples        Duration        ReceiverX      ReceiverY      SourceX SourceY
 
7              Vertical        01/01/2003 00:00:00    0      405.3875        114.285714285714        0.00875 46330  405.3875        -48    9      0      0
 
8              North  01/01/2003 00:00:00    0      405.3875        114.285714285714        0.00875 46330  405.3875        -48    9      0      0
 
9              East    01/01/2003 00:00:00    0      405.3875        114.285714285714        0.00875 46330  405.3875        -48    9      0      0
 
13              Vertical        01/01/2003 00:00:00    0      405.3875        114.285714285714        0.00875 46330  405.3875        -31    39      0      0
 
Import
 
  
Select "Import table" from menu "File". The first uncommented line must contains the list of fields to modify separated by TABs (see Export). The first signal of the active table is modified according to the second uncommented line of the imported file. The second signal with the third uncommented line and so on until reaching either the last signal or the last line of the file.
 
  
To avoid errors when importing files, it is better to leave the exported table active while modifying the exported file and to re-import the modified file with the same active table, to be sure that the order and the number of signals is exactly the same. In this case, never remove lines from the exported file. To limit the number of potential errors, you can remove all columns except the ones you really want to change. This method for modifying the fields of a table must be used with care and should be used only when there is no other choice. Prefer menu item "Edit/Set headers".
+
<br style="clear: both"/>
 +
 
 +
== Importing tables ==
 +
 
 +
 
 +
Once a Table view is active, it is possible to import tables selecting the ''Import headers'' option from [[Geopsy: File menu|file menu]] (Ctrl+I)[[Image:ImportHeaders.png|thumb|right|200px|Import headers option]]. The first uncommented line must contain the list of fields to modify separated by TABs. The first signal of the active table is modified according to the second uncommented line of the imported file. The second signal with the third uncommented line and so on until reaching either the last signal or the last line of the file.
 +
To avoid errors when importing files, it is better to leave the exported table active while modifying the exported file and to re-import the modified file with the same active table, to be sure that the order and the number of signals is exactly the same.  
 +
In this case, never remove lines from the exported file. To limit the number of potential errors, you can remove all columns except the ones you really want to change. This method for modifying the fields of a table must be used with care and should be used only when there is no other choice. It is recommended the use of ''Set headers'' option in the [[Geopsy: Edit menu|edit menu]].

Latest revision as of 15:23, 16 September 2011

A Table is a Signal viewer representing the metadata of a set or a subset of signals. It can be created using the View menu and then drag and drop the set of signals of interest in table. Drag and drop signals directly on the table icon in the toolbar produces the same result.

The various actions that can be performed with a subset of signals in a table are described in the following sections.

Basically, a table allows you to view and to edit the header information about signals. Each row represents a signal and each column is an information field. The default fields displayed are showed in the figure

Default table view

.

The order and the list of fields displayed by the table Viewers are specified in preferences for all newly created table.

Set data fields

If a table is open it is possible to select the option Set data fields in the View menu.

Setting of data fields in View menu

Selecting this option a window appears in which it is possible to customize the active table view.

Data fields options window

It is possible to change the displayed fields and corresponding names, add fields after the last row or insert a field in a selected position. Furthermore it is possible to save the current table view as default or custom in order to carry out it in following sessions. Columns and rows can be resized (press mouse at the limit between two columns or cells). However, automatic resizing is usually correct.

Table editing

In order to edit directly a table, the lock table edition option in the view menu must not be checked off. In this mode, you can select individual cells and change their content. This mode is not suitable to drag and drop signals. Return to the original lock mode to move signals to other viewers. You can edit any cell, but some of them are linked to read-only fields (e.g. NSamples, the number of samples). To edit many cells in an efficient way with a few operation you can also refer to the Set headers option in the edit menu.

Signal selection

It is possible to select signals directly in the table view. Signals are selected with the mouse left button. If the SHIFT key is also pressed the selection is extended from the current row to the selected row. If the CTRL key is pressed at the same time as the mouse left button, the selected row is added to the selection and becomes the current row. The current row contains the active cell. Current selection can be viewed and analyzed by means of the available tools, simply dragging and dropping them on the selected icon in the toolbar.


Exporting tables

Copy and paste actions are not possible like in common tabular softwares. However, it is possible to export the information contained in a table to a text file (column separated by TABs) which can be in turn loaded in any usual tabular software. The file can be edited and imported in the table to apply the changes. Read-only fields are not affected by imports. To export a table, select export option from file menu. A combo box lets you select the export format.

Select "Table" format. Enter the file name to export. A default extension (".txt") is provided for compatibility with usual tabular software.

Export table menu

Comment are marked with '#' at the beginning of lines. Not all fields attached to a signal are exported but only the fields displayed in the active table. The list of fields is given in the first uncommented line. The field names are the standard ones given in the database description.

# This file contains all the variables that were listed in Geopsy's Table													
# You can edit this file as you want.													
# All columns must be separated by only one tabulation.													
# Lines starting with '#' are always ignored when importing.													
# The first line starting without '#' must contains the name of each variable.													
#													
ID	Name	Component	TimeReference	T0	EndTime	SamplingFrequency	DeltaT	NSamples	Duration	ReceiverX	ReceiverY	ReceiverZ	Type
1	WA_WAU01	East	25/02/2010 00:00:00	29995	30934.74	100	0.01	93974	939.74	0	0	0	Waveform



Importing tables

Once a Table view is active, it is possible to import tables selecting the Import headers option from file menu (Ctrl+I)

Import headers option

. The first uncommented line must contain the list of fields to modify separated by TABs. The first signal of the active table is modified according to the second uncommented line of the imported file. The second signal with the third uncommented line and so on until reaching either the last signal or the last line of the file.

To avoid errors when importing files, it is better to leave the exported table active while modifying the exported file and to re-import the modified file with the same active table, to be sure that the order and the number of signals is exactly the same. In this case, never remove lines from the exported file. To limit the number of potential errors, you can remove all columns except the ones you really want to change. This method for modifying the fields of a table must be used with care and should be used only when there is no other choice. It is recommended the use of Set headers option in the edit menu.