Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use q_att_raw for ASPSOL quaternions if available #233

Merged
merged 1 commit into from
Aug 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mica/archive/asp_l1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down