Difference between revisions of "Homer Utilities"

From LIBISIS
Jump to navigation Jump to search
Line 6: Line 6:
  
 
<pre>
 
<pre>
>>  head(run_no)
+
>>  head(run_number)
 
>>  head(path_to_raw_file)
 
>>  head(path_to_raw_file)
 
</pre>
 
</pre>
  
* <tt>run_no</tt> can be defined in the following ways
+
* <tt>run_number</tt> can be defined in the following ways
#  a numerical array of numbers <tt> [12345  45673 34436] </tt> or a single numeric
+
#  a numerical array of numbers <tt> [12345  45673 34436]</tt> or a single numeric
# an array of strings <tt> char('12345' '45673' '34436') </tt> or a single  string
+
# an array of strings <tt>char('12345' '45673' '34436')</tt> or a single  string
# a cell array of strings <tt> {'12345' '45673' '34436'}</tt>
+
# a cell array of strings <tt>{'12345' '45673' '34436'}</tt>
# a cell array of numerics <tt> {12345  45673 34436}</tt>
+
# a cell array of numerics <tt>{12345  45673 34436}</tt>
  
* <tt>path_to_raw_file</tt> is defined as a string or a cell array of strings
+
* <tt>path_to_raw_file</tt> is defined as a string or a cell array of strings <tt>'C:\data\myfile.raw'</tt>
 +
 
 +
mhead() returns the header information for each raw file defined by an '''array''' of run numbers, or an '''array''' of paths to a raw file.
 +
 
 +
<pre>
 +
>>  mhead(run_numbers)
 +
>>  mhead(paths_to_raw_files)
 +
</pre>
 +
 
 +
* <tt>run_numbers</tt> can be defined in the following ways
 +
#  a numerical array of numbers <tt> [12345  45673 34436]</tt>
 +
# an array of strings <tt>char('12345' '45673' '34436')</tt>
 +
# a cell array of strings <tt>{'12345' '45673' '34436'}</tt>
 +
# a cell array of numerics <tt>{12345  45673 34436}</tt>
 +
* <tt>paths_to_raw_files</tt> is defined as a cell or string array  <tt>'C:\data\myfile.raw'</tt>
  
 
== getei and mgetei ==
 
== getei and mgetei ==

Revision as of 14:41, 10 April 2008

Useful information can be extracted from the data using only the run number

head and mhead

head() returns the header information for the raw file defined by the run_number, or the path to a defined raw file. A combined set of runs can also be defined, the data are combined together with limited practical use

>>  head(run_number)
>>  head(path_to_raw_file)
  • run_number can be defined in the following ways
  1. a numerical array of numbers [12345 45673 34436] or a single numeric
  2. an array of strings char('12345' '45673' '34436') or a single string
  3. a cell array of strings {'12345' '45673' '34436'}
  4. a cell array of numerics {12345 45673 34436}
  • path_to_raw_file is defined as a string or a cell array of strings 'C:\data\myfile.raw'

mhead() returns the header information for each raw file defined by an array of run numbers, or an array of paths to a raw file.

>>  mhead(run_numbers)
>>  mhead(paths_to_raw_files)
  • run_numbers can be defined in the following ways
  1. a numerical array of numbers [12345 45673 34436]
  2. an array of strings char('12345' '45673' '34436')
  3. a cell array of strings {'12345' '45673' '34436'}
  4. a cell array of numerics {12345 45673 34436}
  • paths_to_raw_files is defined as a cell or string array 'C:\data\myfile.raw'

getei and mgetei