Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.
NASA Logo
Ocean Color Science Software

ocssw V2022
vmag.f
Go to the documentation of this file.
1  real*4 function vmag(vec)
2 c
3 c real*4 function vmag(vec)
4 c
5 c purpose: create the magnitude of a vector of size 3
6 c
7 c calling arguments:
8 c
9 c name Type i/o description
10 c -------- ---- --- -----------
11 c vec r*4 i size 3 vector
12 c vmag r*4 o magnitude of the vector
13 c
14 c by: w. robinson, gsc, 13 apr 93
15 c
16 c notes:
17 c
18 c modification history:
19 c
20  implicit none
21  real*4 vec(3)
22 c
23 c
24  vmag = sqrt( vec(1) * vec(1) + vec(2) * vec(2) + vec(3) * vec(3) )
25 c
26  return
27  end
float * vector(long nl, long nh)
Definition: nrutil.c:15
#define real
Definition: DbAlgOcean.cpp:26
real *4 function vmag(vec)
Definition: vmag.f:2