OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ias_math.h
Go to the documentation of this file.
1 #ifndef IAS_MATH_H
2 #define IAS_MATH_H
3 
4 #include "ias_const.h"
5 #include "ias_structures.h"
6 
8 (
9  const IAS_VECTOR *vec1, /* I: Input vector number one */
10  const IAS_VECTOR *vec2, /* I: Input vector number two */
11  IAS_VECTOR *vec3 /* O: Output vector (cross product) */
12 );
13 
15 (
16  const IAS_VECTOR *vec1, /* I: Vector one to be multiplied */
17  const IAS_VECTOR *vec2 /* I: Vector two to be multiplied */
18 );
19 
21 (
22  const IAS_VECTOR *vec /* I: Vector to find the length of */
23 );
24 
26 (
27  const IAS_VECTOR *vec, /* I: Input vector */
28  IAS_VECTOR *unit_vector /* O: Unit vector of the input vector */
29 );
30 
32 (
33  double x, /* I: point at which to compute value */
34  const double *coefficients, /* I: Array of Coefficients */
35  int num_coefficients /* I: Number of Coefficients in array */
36 );
37 
39 (
40  const double *p_YY, /* I: Pointer to the array of input values */
41  const double *p_XX, /* I: Pointer to the array of times closest to the
42  requested time */
43  int n_pts, /* I: Number of points for the interpolation */
44  double in_time /* I: Requested time for interpolation */
45 );
46 
48 (
49  const IAS_VECTOR *p_YY, /* I: Y-axis or values to be interpolated */
50  const double *p_XX, /* I: X-axis of value to be interpolated */
51  int num_points, /* I: Number of points to use in the interpolation */
52  double in_time, /* I: X-value for which Y value is to be calculated */
53  IAS_VECTOR *output /* O: Output result */
54 );
55 
56 /* math constants */
57 double ias_math_get_pi();
61 
62 #endif
int ias_math_compute_unit_vector(const IAS_VECTOR *vec, IAS_VECTOR *unit_vector)
u5 which has been done in the LOCALGRANULEID metadata should have an extension NRT It is requested to identify the NRT production Changes from v6 which may affect scientific output
Definition: HISTORY.txt:186
double ias_math_get_arcsec_to_radian_conversion()
double ias_math_get_pi()
double ias_math_compute_3dvec_dot(const IAS_VECTOR *vec1, const IAS_VECTOR *vec2)
double ias_math_interpolate_lagrange(const double *p_YY, const double *p_XX, int n_pts, double in_time)
void ias_math_interpolate_lagrange_3dvec(const IAS_VECTOR *p_YY, const double *p_XX, int num_points, double in_time, IAS_VECTOR *output)
void ias_math_compute_3dvec_cross(const IAS_VECTOR *vec1, const IAS_VECTOR *vec2, IAS_VECTOR *vec3)
double ias_math_eval_legendre(double x, const double *coefficients, int num_coefficients)
double ias_math_get_radians_per_degree()
double ias_math_compute_vector_length(const IAS_VECTOR *vec)
double ias_math_get_degrees_per_radian()