OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
hawkeye_methods.h
Go to the documentation of this file.
1 #ifndef _HAWKEYE_METHODS_H_
2 #define _HAWKEYE_METHODS_H_
3 
4 //double constexpr PI = 3.14159265358979323846;
5 //double constexpr RADEG = 180 / PI;
6 #include <string.h>
7 #include <string>
8 
9 typedef float quat_array[4];
10 typedef float orb_array[3];
11 typedef double quat_array2[4];
12 typedef double orb_array2[3];
13 
14 int orb_interp(size_t n_SC_rec, size_t sdim,
15  double *torb, orb_array *p, orb_array *v,
16  double *time, orb_array *posi, orb_array *veli);
17 int orb_interp2(size_t n_SC_rec, size_t sdim,
18  double *torb, orb_array2 *p, orb_array2 *v,
19  double *time, orb_array2 *posi, orb_array2 *veli);
20 
21 
22 int latlon_interp(size_t n_SC_rec,size_t num_gridlines,size_t num_pixels,
23  double *torb, float **lat, float **lon,
24  double *gtime, float *lati, float *loni);
25 int latlon_interp2(size_t num_gridlines,size_t num_pixels,
26  double *gtime, float *lati, float *loni,
27  double *gtime2, float *lati2, float *loni2);
28 int latlon_interp_vec(size_t n_orb_rec, size_t num_gridlines,double *torb, double *latorb, double *lonorb,double *tmgv, float *lati, float *loni);
29 
30 int latlon_interp_dist(size_t num_gridlines,double *dist_ai,float *lati,float *loni,double *dist_a,float *lati2,float *loni2);
31 int latlon_interp1pix(size_t num_gridlines, size_t gd_index,double *tgrid, float *lat_nad, float *lon_nad, float *latpix, float *lonpix);
32 
33 int j2000_to_ecr(int32_t iyr, int32_t idy, double sec, double ecmat[3][3]);
34 int j2000_to_mod(int32_t iyr, int32_t idy, double sec, double j2mod[3][3]);
35 int get_nut(int32_t iyr, int32_t idy, double xnut[3][3]);
36 int get_ut1(int32_t iyr, int32_t idy, double &ut1utc);
37 int ephparms(double t, double &xls, double &gs, double &xlm, double &omega);
38 int nutate(double t, double xls, double gs, double xlm, double omega,
39  double &dpsi, double &eps, double &epsm);
40 int gha2000(int32_t iyr, double day, double &gha);
41 
42 
43 int expandEnvVar(std::string *sValue);
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 #endif // _GEOLOCATE_HAWKEYE_H_
data_t t[NROOTS+1]
Definition: decode_rs.h:77
int expandEnvVar(std::string *sValue)
Definition: l1agen_oci.h:142
int32_t day
int get_nut(int32_t iyr, int32_t idy, double xnut[3][3])
int latlon_interp1pix(size_t num_gridlines, size_t gd_index, double *tgrid, float *lat_nad, float *lon_nad, float *latpix, float *lonpix)
int latlon_interp2(size_t num_gridlines, size_t num_pixels, double *gtime, float *lati, float *loni, double *gtime2, float *lati2, float *loni2)
int gha2000(int32_t iyr, double day, double &gha)
int ephparms(double t, double &xls, double &gs, double &xlm, double &omega)
float * lat
float orb_array[3]
int latlon_interp_vec(size_t n_orb_rec, size_t num_gridlines, double *torb, double *latorb, double *lonorb, double *tmgv, float *lati, float *loni)
@ string
int orb_interp(size_t n_SC_rec, size_t sdim, double *torb, orb_array *p, orb_array *v, double *time, orb_array *posi, orb_array *veli)
int get_ut1(int32_t iyr, int32_t idy, double &ut1utc)
int j2000_to_mod(int32_t iyr, int32_t idy, double sec, double j2mod[3][3])
int latlon_interp_dist(size_t num_gridlines, double *dist_ai, float *lati, float *loni, double *dist_a, float *lati2, float *loni2)
data_t omega[NROOTS+1]
Definition: decode_rs.h:77
int j2000_to_ecr(int32_t iyr, int32_t idy, double sec, double ecmat[3][3])
int orb_interp2(size_t n_SC_rec, size_t sdim, double *torb, orb_array2 *p, orb_array2 *v, double *time, orb_array2 *posi, orb_array2 *veli)
int latlon_interp(size_t n_SC_rec, size_t num_gridlines, size_t num_pixels, double *torb, float **lat, float **lon, double *gtime, float *lati, float *loni)
this program makes no use of any feature of the SDP Toolkit that could generate such a then geolocation is calculated at that and then aggregated up to Resolved feature request Bug by adding three new int8 SDSs for each high resolution offsets between the high resolution geolocation and a bi linear interpolation extrapolation of the positions This can be used to reconstruct the high resolution geolocation Resolved Bug by delaying cumulation of gflags until after validation of derived products Resolved Bug by setting Latitude and Longitude to the correct fill resolving to support Near Real Time because they may be unnecessary if use of entrained ephemeris and attitude data is turned resolving bug report Corrected to filter out Aqua attitude records with missing status helping resolve bug MOD_PR03 will still correctly write scan and pixel data that does not depend upon the start time
Definition: HISTORY.txt:248
float quat_array[4]
int nutate(double t, double xls, double gs, double xlm, double omega, double &dpsi, double &eps, double &epsm)
float * lon
double quat_array2[4]
int32_t idy
Definition: atrem_corl1.h:161
int32_t iyr
Definition: atrem_corl1.h:161
float p[MODELMAX]
Definition: atrem_corl1.h:131
double orb_array2[3]