OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
libnav.h
Go to the documentation of this file.
1 #ifndef LIBNAV_H
2 #define LIBNAV_H
3 
4 /*
5  * Function prototypes for routines defined in src/libnav
6  */
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12  int crossp_(float *v1, float *v2, float *v3);
13  void sunangs_( int *year, int *day, float *gmt, float *lon, float *lat,
14  float *sunz, float *suna);
15 
16  void get_zenaz(float *pos, float lon, float lat, float *zenith, float *azimuth);
17 
18  void compute_alpha(float lon[], float lat[],
19  float senz[], float sena[],
20  double mnorm[3], int npix, float alpha[]);
21 
22  void l_sun_(int *iyr, int *idoy, double *sec, float sunr[3], float *rs);
23 
24  void ocorient_(float *pos, float *vel, float *att, float (*)[3], float *coef);
25 
26  double esdist_(int *year, int *day, int *msec);
27 
28  void cdata_();
29 
30 
31  void nav_get_vel(float ilat, float mlat, float ilon, float mlon, float *vel);
32  void nav_get_pos(float lat, float lon, float alt, float *p);
33  void nav_gd_orient(float *pos, float *vel, float *att, float *smat[], float *coef);
34  void nav_get_geonav(float *sunr, float *pos, float *pview, float *coef, float *smat[], float *xlon, float *xlat, float *solz, float *sola, float *senz, float *sena);
35  double angular_distance(double lat1, double lon1, double lat2, double lon2);
36  double deg2rad(double deg);
37  double rad2deg(double rad);
38 
39 
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 
46 #endif /* LIBNAV_H */
int crossp_(float *v1, float *v2, float *v3)
int32_t day
double mnorm[3]
void nav_gd_orient(float *pos, float *vel, float *att, float *smat[], float *coef)
Definition: get_zenaz.c:160
void nav_get_geonav(float *sunr, float *pos, float *pview, float *coef, float *smat[], float *xlon, float *xlat, float *solz, float *sola, float *senz, float *sena)
Definition: get_zenaz.c:310
double rad2deg(double rad)
Definition: compute_dist.c:32
void ocorient_(float *pos, float *vel, float *att, float(*)[3], float *coef)
double angular_distance(double lat1, double lon1, double lat2, double lon2)
Definition: read_prism.c:537
void sunangs_(int *year, int *day, float *gmt, float *lon, float *lat, float *sunz, float *suna)
float32 * pos
Definition: l1_czcs_hdf.c:35
float * lat
int32 * msec
Definition: l1_czcs_hdf.c:31
void compute_alpha(float lon[], float lat[], float senz[], float sena[], double mnorm[3], int npix, float alpha[])
Definition: compute_alpha.c:8
void get_zenaz(float *pos, float lon, float lat, float *zenith, float *azimuth)
Definition: get_zenaz.c:28
double deg2rad(double deg)
Definition: read_prism.c:550
void nav_get_vel(float ilat, float mlat, float ilon, float mlon, float *vel)
Definition: get_zenaz.c:105
void l_sun_(int *iyr, int *idoy, double *sec, float sunr[3], float *rs)
float xlon[LAC_PIXEL_NUM]
Definition: l1a_seawifs.c:93
an array had not been initialized Several spelling and grammar corrections were which is read from the appropriate MCF the above metadata values were hard coded A problem calculating the average background DN for SWIR bands when the moon is in the space view port was corrected The new algorithm used to calculate the average background DN for all reflective bands when the moon is in the space view port is now the same as the algorithm employed by the thermal bands For non SWIR changes in the averages are typically less than Also for non SWIR the black body DNs remain a backup in case the SV DNs are not available For SWIR the changes in computed averages were larger because the old which used the black body suffered from contamination by the micron leak As a consequence of the if SV DNs are not available for the SWIR the EV pixels will not be the granule time is used to identify the appropriate tables within the set given for one LUT the first two or last two tables respectively will be used for the interpolation If there is only one LUT in the set of it will be treated as a constant LUT The manner in which Earth View data is checked for saturation was changed Previously the raw Earth View DNs and Space View DNs were checked against the lookup table values contained in the table dn_sat The change made is to check the raw Earth and Space View DNs to be sure they are less than the maximum saturation value and to check the Space View subtracted Earth View dns against a set of values contained in the new lookup table dn_sat_ev The metadata configuration and ASSOCIATEDINSTRUMENTSHORTNAME from the MOD02HKM product The same metatdata with extensions and were removed from the MOD021KM and MOD02OBC products ASSOCIATEDSENSORSHORTNAME was set to MODIS in all products These changes are reflected in new File Specification which users may consult for exact the pow functions were eliminated in Emissive_Cal and Emissive bands replaced by more efficient code Other calculations throughout the code were also made more efficient Aside from a few round off there was no difference to the product The CPU time decreased by about for a day case and for a night case A minor bug in calculating the uncertainty index for emissive bands was corrected The frame the required RAM for each execution is MB on the DEC ALPHA and MB on the SGI Octane v2
Definition: HISTORY.txt:728
void cdata_()
float * lon
void nav_get_pos(float lat, float lon, float alt, float *p)
Definition: get_zenaz.c:134
double esdist_(int *year, int *day, int *msec)
int32_t iyr
Definition: atrem_corl1.h:161
int npix
Definition: get_cmp.c:27
float p[MODELMAX]
Definition: atrem_corl1.h:131