Difference between revisions of "Instrument setup"

From LIBISIS
Jump to navigation Jump to search
Line 21: Line 21:
 
>> dso=setup_mari_data_source;
 
>> dso=setup_mari_data_source;
 
</pre>
 
</pre>
* mari can be substituted by 'maps' 'het' or 'merlin' eg with examples for other places to keep your instrument files
+
* mari can be substituted by 'maps', 'het' or 'merlin' eg with examples for other places to keep your instrument files etc.
 
<pre>
 
<pre>
 
>> mapdir='C:\mprogs\maps\mapfiles';
 
>> mapdir='C:\mprogs\maps\mapfiles';

Revision as of 09:40, 25 January 2008

Quite often the matlab environment must be prepared with certain information about which instrument you are trying to analyse data for.

The instrument specific setup file must be called with arguments defining the directories containing the instrument map files, the instrument mask files and the instrument parameter files. Where you choose to keep the raw data files is up to you, the standard map, mask and nexus files are all provided in the libisis distribution in "libisis\matlab\Instrument_files\"

>> mapdir='Y:\mprogs\libisis\matlab\Instrument_files\mari_files';
>> maskdir='Y:\mprogs\libisis\matlab\Instrument_files\mari_files';
>> nexdir='Y:\mprogs\libisis\matlab\Instrument_files\mari_files';
>> datadir='D:\data\RAW';
>> setup_mari_inst(datadir,mapdir,nexdir,maskdir);
  • It can be useful to define default instrument values for the instrument for input to homer
>> setup_mari_homer_defaults;
  • IF you are going to use diagnose then you must also set the diag defaults
>> setup_mari_diag_defaults;
  • Instrument specific entries must be added to the IXTdata_source object (these define the sample position and other parameters)
>> dso=setup_mari_data_source;
  • mari can be substituted by 'maps', 'het' or 'merlin' eg with examples for other places to keep your instrument files etc.
>> mapdir='C:\mprogs\maps\mapfiles';
>> maskdir='C:\mprogs\maps\maskfiles';
>> nexdir='C:\mprogs\maps\nexusfiles';
>> datadir='D:\data\maps\RAW';
>> setup_maps_inst(datadir,mapdir,nexdir,maskdir);