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
4c15de5e
Commit
4c15de5e
authored
9 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
Small style change
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
4b83fff8
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_Cryst/gtCrystTheta.m
+6
-12
6 additions, 12 deletions
zUtil_Cryst/gtCrystTheta.m
with
6 additions
and
12 deletions
zUtil_Cryst/gtCrystTheta.m
+
6
−
12
View file @
4c15de5e
function
theta
=
gtCrystTheta
(
dsp
,
energy
)
function
[
theta
,
sin_theta
]
=
gtCrystTheta
(
dsp
,
energy
)
% GTCRYSTTHETA Calculates theta angle given a list of d-spacing
% theta = gtCrystTheta(dsp,energy)
% theta = gtCrystTheta(dsp,
energy)
% --------------------------------
%
% INPUT:
...
...
@@ -14,15 +14,9 @@ function theta = gtCrystTheta(dsp,energy)
%
% Version 001 10-07-2013 by LNervo
lambda
=
gtConvEnergyToWavelength
(
energy
);
if
~
exist
(
'energy'
,
'var'
)
||
isempty
(
energy
)
load
parameters
energy
=
parameters
.
acq
.
energy
;
% theta from the Bragg's law
sin_theta
=
lambda
.
/
(
2
.*
dsp
);
theta
=
asind
(
sin_theta
)
;
end
lambda
=
gtConvEnergyToWavelength
(
energy
);
% theta from the Bragg's law
theta
=
asind
(
lambda
.
/(
2
*
dsp
));
end
% end of function
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