%This is the start of the 'autoedit' collection  of programs.
% see aREADME for more details
% JH 2000/12/10

           %%% THIS TEMPLATE IS FOR NEWDAY.PRL AND QUICK_ADCP.PRL%%%

adcppath


navfile = '../nav/a_en.gps';
tmp = read_asc(navfile);



%config.lon_branch    =       0;          %this should not be necessary,
                                          % but if longitude is splitting
                                          % badly, you may want to set
                                          % this manually.  (choose a 
                                          % longitude not crossed by the 
                                          % cruise track


%%%%%%%%%%%%%%  end of section to be edited by user %%%%%%%%%%%%%%%
config.start_dd       =       floor(min(tmp(:,1)));
config.end_dd         =       ceil(max(tmp(:,1)));
config.ddrange        =       0.8;
config.yearbase       =       2010;
config.comment        =       'EN486';
config.dbpath         =       '../adcpdb/';
config.dbname         =       'a_en';
config.nbins          =       128;
config.rl_range       =       [2 20]; 
config.prefix         =       'a_';
config.navfile        =       navfile;



%% for really bad pingdata, maybe try:
% config.refsm_cfg.min_pg = 50;
% config.refsm_cfg.min_maxpg = 50;

%%%%   for uhraw pingedited, try
% config.refsm_cfg.min_pg = 20;
% config.refsm_cfg.min_maxpg = 40;
config.beamangle = 30; 
