global MITprof_verbose; %to print notes to screen if isempty(MITprof_verbose); MITprof_verbose=2; end; if MITprof_verbose; fprintf('adding directories to your path\n'); fprintf('===============================\n\n') end; global mydir; mydir=[pwd '/']; fid=fopen([mydir 'MITprof_path.m'],'wt'); aa=sprintf(['global mydir; mydir=''' mydir ''';\n']); aa=sprintf([aa 'addpath ' mydir ';\n']); aa=sprintf([aa 'addpath ' mydir 'profiles_IO_v2/;\n']); aa=sprintf([aa 'addpath ' mydir 'profiles_IO_external/;\n']); aa=sprintf([aa 'addpath ' mydir 'profiles_misc/;\n']); aa=sprintf([aa 'addpath ' mydir 'profiles_process_main_v2/;\n']); aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']); eval(aa); fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid); fprintf('\n\n basic MITprof test: started... \n'); if MITprof_verbose; fprintf('\nrunning main program on sample data sets\n') fprintf('========================================\n\n') end; %select the data source (and specific params) => wod05 sample dataset=profiles_prep_select('wod05','90CTD'); %process it profiles_prep_main; % fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']); %select the data source (and specific params) => argo sample dataset=profiles_prep_select('argo','indian'); %process it profiles_prep_main; % fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']); fprintf('\n basic MITprof test: completed. \n');