%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   GUP ver. 1.50      Helsinki March 2, 1994                       %
%   copyright Asko Huuskonen, Markku Lehtinen,                      %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

start_GUP

name_expr='CP1K';  % Experiment name 
name_site='T';     % Site
%name_site='K';     % Site
%name_site='S';     % Site

sdate0='920330'

sekibun='20sec'
%sekibun='2min'
%sekibun='1min'
%sekibun='10min'
%sekibun='5min'

% --- make sure you modify corresponding *.idef files **
if name_site == 'T' integ_deffile=['cp1kt.idef'];end
if name_site == 'K' integ_deffile=['cp1kk.idef'];end
if name_site == 'S' integ_deffile=['cp1ks.idef'];end
if name_site == 'T' result_site_dir=['tromso'];end
if name_site == 'K' result_site_dir=['kiruna'];end
if name_site == 'S' result_site_dir=['sodankyla'];end
 

%---   Here set data directories to store ---
outdir='/EISCAT00/'
result_path_moto=[outdir sdate0 '/' sekibun '/'];

result_path=[result_path_moto result_site_dir]

analysis_altit=[50 900];
analysis_classic=1;

%-- to store ACF data you need "save_acf"
save_acf =analysis_altit;
% save_acf(1): minimum height to save ACF
% save_acf(2): maximum height to save ACF

%analysis_start=[1993   2    16  11  00   0]; % Start time
%analysis_end=  [1993   2    16  11  10   0]; % End time

display_figures=[0 0 0 0];
analysis_control=[.50 .01 100 1];
% analysis_control(1) : if error of Ne exceeds this, no fit done
% analysis_control(2) : iteration stopped, when step below this
% analysis_control(3) : max number of iterations
% analysis_control(4) : variance calculation

an_start
