Skip to content
Snippets Groups Projects
Commit f5bb9e2b authored by Yoann Guilhem's avatar Yoann Guilhem
Browse files

Remove hard-coded path.

parent 416f9fc3
No related branches found
No related tags found
No related merge requests found
function grain = gtTaperReadMapFile(pathtofiles,map_file,detector_par)
% grain = gtTaperReadMapFile(pathtofiles,map_file,detector_par)
if ~exist(pathtofiles,'dir') || isempty(pathtofiles)
disp(['directory ' pathtofiles ' does not exist...'])
return
......@@ -42,9 +41,17 @@ eps = gff(:,16:end); % ... eps11 eps22 eps33 eps23 eps13 eps12
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% generate txt files from ubi file and save all into grain
bash_script = fullfile('/users',getenv('USER'),'matlabDCT','zUtil_Taper','script_generate_files.sh');
%bash_script = fullfile('/users',getenv('USER'),'matlabDCT','zUtil_Taper','script_generate_files.sh');
if (isempty(whos('global', 'GT_MATLAB_HOME')))
gtError('SETUP:no_such_variable', ...
['GT_MATLAB_HOME variable doesn''t exist in global workspace, '...
'your environment is not sane, and you need to either ' ...
're-initialise or re-run matlab.'])
end
global GT_MATLAB_HOME;
bash_script = fullfile(GT_MATLAB_HOME, 'zUtil_Taper','script_generate_files.sh');
cmd = [bash_script ' ' map_file];
[~,msg]=unix(cmd); disp(msg)
[~,msg]=unix(cmd); disp(msg);
cd(cdir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment