%**************************************************************************
% CLUSTER project: Config file curlometer          Autor: Christian Maszl  
% Unit System = [SI]                  Mail: e0025754@student.tuwien.ac.at 
%**************************************************************************

% Version 1.0 - 20.08.2004

%**************************************************************************
% PATH &  DEFINITIONS for INPUT DATA
%**************************************************************************

% Set path variable to the binary data files
     datapath='/data/cluster/DDS/';
% Isdat database string. Default> 'disco:10'
     isdat_db='disco:10';
% Select the year to analyse 
     year='03';
     
% Select the mode to analyse: FGM :   'nr' - 4.0sec ... magnetometer
%                                     'hr' - 45msec
%**************************************************************************
% NOTE: Modes below this line are not implemted yet.
%**************************************************************************
%                             CIS:    'vi' - 4.0sec ... ion spectrometry
%                                     've' - 4.0sec
%                                     'ni' - 4.0sec

%                             EDI:    'ed' - 4.0sec ... electron drift

%                             P:      'sp'           ... probe potential

%                             EFW:    'ef'          ... E field and  wave
%                             SAX:    'sa'          ... spin axis orientat
%                             PHASE:  'ph'          ... phase data
%                             LOCATION'lo'          ... position vector
%                             WHISPER:'wp'          ... wave of high freq
%**************************************************************************
     op_mode='sp'; 
     
% * for 01,02,03 and 04 ..... DON'T EDIT
     extension='*';
     
%**************************************************************************
% PATH & DEFINITIONS for OUTPUT DATA
%**************************************************************************

% Type of the output datafiles: '-ascii' or '-mat' = binary data
% (Binary output is faster!)
     datatype='-mat'; 

% All paths are relative to the path of the m-File directory 

% Logfile-directory (myfilelist, errorlog)
     logfilepath='../logfiles/';
% Output-directory (jav,divB and B in mat or ascii format)
     outputspath='../outputdata/';
% Directory for temporary data
     tempdirpath='../temp/';
     
%**************************************************************************
% CONSTANTS / MISCELLANEOUS
%**************************************************************************

% Magnetic permeability, Unit System=[SI]
     y0= 1.256637061E-6; %[y0]=Vs/Am=H/m
% Numberformat on the screen
     format long;

%**************************************************************************
% ADVANCED SETTINGS: Program Control 
%**************************************************************************

% The default operating mode is to analyse the data of a whole day
% 00:00:00-24:00:00. With these settings you can choose an arbitray
% starttime and duration. DEFAULT: advanced=[0 0 0 86400];

% Format: [hh mm ss (duration)=sec]
     advanced=[00 00 00 86400];
% The interval from the start time must not be longer than the day itself.

% Switch the program to MANUAL mode. This mode is usefull to avoid
% long waiting times (filelist) when you only want to process one
% or two data-packages. DEFAULT: 'a', Manual: 'm'
     compmode='m';

% Disable the logfiles myfilelist.log, error.log, [yymmdd]0000.report
% DEFAULT: 'y', Disable: 'n' (no logfiles)
     nolog   ='y';

 %**************************************************************************
% ADVANCED SETTINGS: Plot control
%**************************************************************************    
     
% Display the x y z component of jav in GSE. DEFAULT='y' (otherwise 'n'=no)
     plot_mode_normal='y';

% Display the normal and the parallel component of the current jav
% DEFAULT='y' (otherwise 'n'=no)
     plot_mode_parnor='y';
   
% Toggle legend for B1-B4. DEFAULT='y' (otherwise 'n;=no)
     legend_on       ='y';
     
%**************************************************************************
% INFORMATION ABOUT THE SOFTWARE 
%**************************************************************************

% The following subroutines are necessary for the us of the program:

% AUTOR: Christian Maszl
% mainprogram.m .......... The mainprogram
% syscheck.m ............. Load configfile.m and check for proper
%                          input values.
% filelist.m ............. Creates a list of all available files.
% userinput.m ............ Ask for range to analyse .
% yuri.m ................. Interface to the program getData. Fetch
%                          data from binary files. 
% sorting.m .............. Sync. the data of the four satellites
%                          together.
% curlB.m ................ Apply the curlometer method to the data.
% datatodisk.m ........... Store the computed data to the HD.
% logfiles.m ............. Store the filelist and the error log.
% report.m ............... Error messages from the routine getData.

% AUTOR: Yuri Kothyaintsev 
% getData.m .............. Fetch data from various files .
% av_interp.m ............ Interpolates data to a certain timeline.
% fromepoch .............. Convert ISDAT time to standard time.
% toepoch ................ Convert to ISDAT epoch
% clusterDB ..............
