Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
f5bb9e2b
Commit
f5bb9e2b
authored
10 years ago
by
Yoann Guilhem
Browse files
Options
Downloads
Patches
Plain Diff
Remove hard-coded path.
Signed-off-by:
Yoann Guilhem
<
yoann.guilhem@ens-cachan.fr
>
parent
416f9fc3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_Taper/gtTaperReadMapFile.m
+10
-3
10 additions, 3 deletions
zUtil_Taper/gtTaperReadMapFile.m
with
10 additions
and
3 deletions
zUtil_Taper/gtTaperReadMapFile.m
+
10
−
3
View file @
f5bb9e2b
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment