From 8b9d20fe239b4b32eb1c70ada58ff3dc2ba6cc63 Mon Sep 17 00:00:00 2001 From: Daniel Savage <7084261+djm87@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:38:36 -0700 Subject: [PATCH] Update loadEBSD_h5oina.m Orientation of orientation array matters for e.g. calcGrains. --- interfaces/loadEBSD_h5oina.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interfaces/loadEBSD_h5oina.m b/interfaces/loadEBSD_h5oina.m index 2fc0bb98b..7b587ef62 100644 --- a/interfaces/loadEBSD_h5oina.m +++ b/interfaces/loadEBSD_h5oina.m @@ -324,8 +324,10 @@ else rot = rotation.byEuler(EBSDdata.Euler'); %don't rotate - keep CS1 (default - acquisition surface0 end - - + + if size(rot,2)>1 + rot = transpose(rot); + end % what data should we read, all or just the standard phase = EBSDdata.Phase;