A sphere with three ocean waves in differing shades of blue. Next to the sphere, there is the bolded text "Ocean Color". Under that, there are two acronyms, separated by a vertical pipe: OB.DAAC (Ocean Biology Distributed Active Archive Center) and OBPG (Ocean Biology Processing Group).
Lorem
ipsum
dolor
sit
amet
Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
nav_seahawk
hawknav
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
get_qr.get_qr
def get_qr(q_in)
Definition:
get_qr.py:1
qinv
Definition:
qinv.py:1
qprod
Definition:
qprod.py:1