NASA Logo
Ocean Color Science Software

ocssw V2022
nav.h
Go to the documentation of this file.
1 #ifndef NAV_H_
2 #define NAV_H_
3 #include "stdlib.h"
4 #include "stdio.h"
5 #include "string.h"
6 #include "stdbool.h"
7 #include "math.h"
8 #include <stdint.h>
9 #define DSIGN(A, B) B >= 0 ? fabs(A) : -fabs(A)
10 const static int32_t maxlin = 16000;
11 const static double pi = 3.141592653589793e0, radeg = 57.29577951e0, re_const = 6378.137e0, rem = 6371.e0,
12  f_const = 1.e0 / 298.257e0, omf2 = (1.e0 - f_const) * (1.e0 - f_const),
13  omegae = 7.29211585494e-5; // common /gconst/pi,radeg,re,rem,f,omf2,omegae
14 
22 double norm(const double* vec, size_t n);
23 
31 double square(const double* vec, size_t n);
32 
41 double dot(const double* vec1, const double* vec2, size_t n);
42 
43 
56 double dmod(double a, double p);
57 
58 
70 int32_t jd(int32_t i, int32_t j, int32_t k);
71 
72 
78 double julian(double tin[2]);
79 
86 void jdate(int jd, int *i, int *k);
87 
88 
108 void jddate(int jd, int *i, int *j, int *k);
109 
110 
128 void ymdhms2jul(int32_t year,int32_t month, int32_t day,int32_t hour, int32_t minute, double sec, double *jul);
129 #endif
int j
Definition: decode_rs.h:73
double norm(const double *vec, size_t n)
computes the norm of a vector
Definition: nav.c:3
int32_t day
const double pi
double dmod(double a, double p)
Description:
Definition: nav.c:23
int32_t jd(int32_t i, int32_t j, int32_t k)
c This function converts a calendar date to the corresponding Julian day starting at noon on the cale...
Definition: nav.c:119
double square(const double *vec, size_t n)
computes the square of the norm of a vector
Definition: nav.c:7
double julian(double tin[2])
Definition: nav.c:30
void jddate(int jd, int *i, int *j, int *k)
Construct a new ddate objectC C This routine computes the calendar date corresponding to C a given Ju...
Definition: nav.c:100
void jdate(int jd, int *i, int *k)
Definition: nav.c:86
void ymdhms2jul(int32_t year, int32_t month, int32_t day, int32_t hour, int32_t minute, double sec, double *jul)
c ----------------------------------------------------------— c Subroutine ymdhms2jul c c Convers fro...
Definition: nav.c:113
Definition: jd.py:1
double dot(const double *vec1, const double *vec2, size_t n)
computes the scalar/dot product of two vectors
Definition: nav.c:15
#define omf2
Definition: l1_czcs.c:697
int i
Definition: decode_rs.h:71
PGE01 indicating that PGE02 PGE01 V6 for and PGE01 V2 for MOD03 were used to produce the granule By convention adopted in all MODIS Terra PGE02 code versions are The fourth digit of the PGE02 version denotes the LUT version used to produce the granule The source of the metadata environment variable ProcessingCenter was changed from a QA LUT value to the Process Configuration A sign used in error in the second order term was changed to a
Definition: HISTORY.txt:424
int k
Definition: decode_rs.h:73
float p[MODELMAX]
Definition: atrem_corl1.h:131