From 00c471c5170aaceeaf43ee662326e896b9c4da8a Mon Sep 17 00:00:00 2001 From: Tom Aldcroft Date: Thu, 13 Aug 2020 10:50:12 -0400 Subject: [PATCH] Use q_att_raw for ASPSOL quaternions if available --- mica/archive/asp_l1.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mica/archive/asp_l1.py b/mica/archive/asp_l1.py index b934305c..512c7870 100644 --- a/mica/archive/asp_l1.py +++ b/mica/archive/asp_l1.py @@ -215,7 +215,8 @@ def get_atts_from_files(asol_files, acal_files, aqual_files, filter=True): # Quaternion multiply the asol quats with that inv misalign and save # I could also do this with the transform matrix and then only need # one accessory quat function. - att_chunks.append((Quat(asol['q_att']) * Quat(q_mis_inv)).q) + q_att_name = 'q_att_raw' if 'q_att_raw' in asol.colnames else 'q_att' + att_chunks.append((Quat(asol[q_att_name]) * Quat(q_mis_inv)).q) time_chunks.append(np.array(asol['time'])) records.append(asol.meta) return np.vstack(att_chunks), np.hstack(time_chunks), records