OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_qr.py
Go to the documentation of this file.
1 def get_qr(q_in):
2  # input: q_in
3  # output: qr
4  # Ported from get_qr.pro by Fred Patt
5  # Liang Hong, 2/19/2020
6 
7  import numpy as np
8  from hawknav.qinv import qinv
9  from hawknav.qprod import qprod
10 
11  nq = np.shape(q_in)[0]
12  qi = qinv(q_in[0:nq-1,:])
13  qr = qprod(qi,q_in[1:nq,:])
14 
15  j=np.where(qr[:,3] < 0)
16  if (np.size(j)>0):
17  qr[j,:] = -qr[j,:]
18 
19  return qr
20 
def get_qr(q_in)
Definition: get_qr.py:1
Definition: qinv.py:1
Definition: qprod.py:1