Skip to content
Snippets Groups Projects
Commit a373e365 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

General commenting and small bug solving in gtHklsp2hkl


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@968 4c865b51-4357-4376-afb4-474e03ccb993
parent aa8d52cf
No related branches found
No related tags found
No related merge requests found
function [rgb, Vsst, Vsst_p] = gtCrystVector2SST(Vc, crystal_system, symm, saturation) function [rgb, Vsst, Vsst_p] = gtCrystVector2SST(Vc, crystal_system, symm, saturation)
% GTCRYSTVECTOR2SST Moves crystal vectors to SST zone. % GTCRYSTVECTOR2SST Moves crystal vectors to SST zone.
% %
% gtCrystVector2SST(Vc, crystal_system, symm[, saturation]) % [rgb, Vsst, Vsst_p] = gtCrystVector2SST(Vc, crystal_system, symm[, saturation])
% ------------------------------------------------------------------------- % -------------------------------------------------------------------------------
% %
% INPUT: % INPUT:
% Vc = <double> Row vectors expressed in crystal frame % Vc = <double> Row vectors expressed in crystal frame
...@@ -10,7 +10,7 @@ function [rgb, Vsst, Vsst_p] = gtCrystVector2SST(Vc, crystal_system, symm, satur ...@@ -10,7 +10,7 @@ function [rgb, Vsst, Vsst_p] = gtCrystVector2SST(Vc, crystal_system, symm, satur
% symm = <cell_array> Symmetry operators % symm = <cell_array> Symmetry operators
% %
% OPTINAL INPUT: % OPTINAL INPUT:
% saturation = <bool> Saturate or not the RGB output {true} % saturation = <logical> Saturate or not the RGB output {true}
% %
% OUTPUT: % OUTPUT:
% rgb = <double> RGB colors in the SST triangle % rgb = <double> RGB colors in the SST triangle
......
function hklt = gtCrystHklsp2hkl(hklsp,spacegroup) function hklt = gtHklsp2hkl(hklsp,spacegroup)
% GTCRYSTHklsp2hkl Gives the unsigned hkl family corrsponding to a given hklsp % GTHKLSP2HKL Gives the unsigned hkl family corrsponding to a given hklsp
% hkl = gtCrystHklsp2hkl(hklsp,spacegroup) % hkl = gtHklsp2hkl(hklsp,spacegroup)
% -------------------------------------------- % -----------------------------------
% %
% INPUT: % INPUT:
% hklsp = plane families (one in a row) % hklsp = plane families (one in a row)
...@@ -20,7 +20,7 @@ switch spacegroup ...@@ -20,7 +20,7 @@ switch spacegroup
hklt = sort(abs(hklsp)) ; hklt = sort(abs(hklsp)) ;
case {152, 167, 194, 663} % Hexagonal - 4x4 matrices case {152, 167, 194, 663} % Hexagonal - 4x4 matrices
hklt = [sort(abs(hklsp(1:2))),hklsp(3),abs(hklsp(4)]; hklt = [sort(abs(hklsp(1:2))),hklsp(3),abs(hklsp(4))];
otherwise otherwise
error('Spacegroup not supported') error('Spacegroup not supported')
......
function Vc = gtVectorLab2Cryst(Vs, g, diag) function Vc = gtVectorLab2Cryst(Vs, g, diag)
% GTVECTORLAB2CRYST Express lab row vector(s) to crystal CS % GTVECTORLAB2CRYST Express lab row vector(s) to crystal CS
% %
% Vc = gtVectorLab2Cryst(Vs, g) % Vc = gtVectorLab2Cryst(Vs, g, diag)
% ------------------------------------------------------------------------- % -----------------------------------
% %
% INPUT: % INPUT:
% Vs = <double> Vector(s) in the lab CS. % Vs = <double> Vector(s) in the lab CS.
% g = <cell> Cell containing crystal orientation matrix(ces). % g = <cell> Cell containing crystal orientation matrix(ces).
% diag = <logical>
% %
% OUTPUT: % OUTPUT:
% Vc = <double> Vector Vs expressed in the crystal CS. % Vc = <double> Vector Vs expressed in the crystal CS.
......
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