Difference between revisions of "Instrument setup"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
Quite often the matlab environment must be prepared with certain information about which instrument you are trying to analyse data for. | 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 | + | 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\" |
<pre> | <pre> | ||
− | >> mapdir=' | + | >> 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); | >> setup_mari_inst(datadir,mapdir,nexdir,maskdir); | ||
</pre> | </pre> | ||
Line 19: | Line 21: | ||
>> dso=setup_mari_data_source; | >> dso=setup_mari_data_source; | ||
</pre> | </pre> | ||
− | * mari can be substituted | + | * mari can be substituted by 'maps' 'het' or 'merlin' eg with examples for other places to keep your instrument files |
<pre> | <pre> | ||
− | >> mapdir=' | + | >> 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); | >> setup_maps_inst(datadir,mapdir,nexdir,maskdir); | ||
</pre> | </pre> |
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
>> 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);