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
2a72af0a
Commit
2a72af0a
authored
10 years ago
by
preischig
Browse files
Options
Downloads
Patches
Plain Diff
Added theta update according to beam energy.
Signed-off-by:
preischig
<
preischig@gmail.com
>
parent
e5f778d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
1_preprocessing/gtFillCrystFields.m
+21
-0
21 additions, 0 deletions
1_preprocessing/gtFillCrystFields.m
with
21 additions
and
0 deletions
1_preprocessing/gtFillCrystFields.m
+
21
−
0
View file @
2a72af0a
...
...
@@ -52,6 +52,11 @@ while (~phase_ok)
if
(
ismember
(
lower
(
test
)
,
{
'
y
',
'
yes
'
}))
%%%%
get
complete
information
from
another
parameters
file
%%%%%
parameters
=
sfGetInfoFromParameters
(
parameters
,
phase
_
ndx
)
;
%
Update
reflections
for
actual
photon
energy
%
!!!
intensity
missing
,
but
it
is
not
yet
used
in
the
processing
parameters
.
cryst
=
sfUpdateReflections
(
parameters
.
cryst
,
parameters
.
acq
.
energy
)
;
%
this
is
a
"new"
experiment
,
set
up
the
names
and
read
from
the
datafile
fprintf
(
'
Please
modify
the
description
for
this
phase
(
%
d
)
\
n
',
phase
_
ndx
)
;
parameters
=
sfModifyMaterialDescription
(
parameters
,
phase
_
ndx
)
;
...
...
@@ -356,4 +361,20 @@ function parameters = sfGetSymmCrystInfo(parameters, phase_id)
end % end of sfGetSymmCrystInfo
function cryst = sfUpdateReflections(cryst, energy)
% Updates the reflection data according to a new photon energy
% Update the d-spacing info in cryst according to new lattice parameters.
% Bmat = gtCrystHKL2CartesianMatrix(cryst.latticepar);
% cryst.dspacing = gtCrystDSpacing(cryst.hkl, Bmat);
% cryst.dspacingsp = gtCrystDSpacing(cryst.hklsp, Bmat);
% Update the theta info according to new photon energy
lambda = gtConvEnergyToWavelength(energy);
cryst.theta = asind(0.5*lambda./cryst.dspacing);
cryst.thetasp = asind(0.5*lambda./cryst.dspacingsp);
% Update the intensity info: MISSING !
cryst.int = [];
cryst.intsp = [];
end
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