OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ancproto.h
Go to the documentation of this file.
1 #ifndef ANCPROTO_H /* avoid re-inclusion */
2 #define ANCPROTO_H
3 
4 #include <stdint.h>
5 
6 typedef struct time_change {
7  double start;
8  double inc;
9 } timech;
10 
11 
12 int get_ancillary(float *in_lat, float *in_lon, int16_t cnt, int16_t syear,
13  int16_t sday, int16_t eday, int32_t time, char *filename1,
14  char *filename2, char *filename3, char *anc_cor_file,
15  int16_t parm_flag, float *interp, float *anc_unc,
16  int16_t *qcflag);
17 
18 int32_t set_files(int16_t parm_flag, int16_t syear, int16_t sday, int16_t eday,
19  int32_t msec, char *filename1, char *filename2, char *filename3,
20  char *file1, char *file2, timech *dtime1, timech *dtime2, int *toms);
21 
22 int32_t ck_files_in_buf(int16_t PA_flag, int16_t parm_flag, char *f1, char *f2,
23  int16_t month, int16_t *error_flag, int16_t *read_flag);
24 
25 int read_climatology(char *file1, int16_t parm_flag, int16_t month,
26  int32_t *dims, float *lat_buf,
27  float *lon_buf, void *parm_buf);
28 
29 int check_on_TOMS(int16_t parm_flag, char *file1, char *file2,
30  char *filename1, char *filename2, char *filename3, double s_jd1,
31  double s_jd2, double s_jd3, double e_jd1, double e_jd2,
32  double e_jd3, double d_jd, timech *dt1, timech *dt2);
33 
34 int read_NRT(char *file1, char *file2, char *anc_cor_file,
35  int16_t parm_flag, int16_t read_flag, int32_t *dims, float *lat_buf,
36  float *lon_buf, void *parm_buf1, void *parm_buf2,
37  int8_t *qc_buf1, int8_t *qc_buf2);
38 
39 void resiz_anc(int16_t *data, int8_t *qc, int32_t nlat, int32_t nlon1, int32_t nlon2,
40  float * lons1, float * lons2);
41 
42 void extract_data_pts(int16_t PA_flag, int16_t parm_flag, timech DTime1, timech DTime2,
43  int16_t nsamp, float *in_latlist, float *in_lonlist,
44  float *lat_bufp, float *lon_bufp, int32_t *dims, int8_t *qc_buf1,
45  int8_t *qc_buf2, void *parm_buf1, void *parm_buf2, int toms,
46  float *out_lat_list, float *out_lon_list, int16_t *qcflag,
47  float *interp, float *anc_unc);
48 
49 void gregor(int16_t jday, int16_t year, int16_t *month, int16_t *day);
50 
51 void interpolate(int16_t PA_flag, int16_t parm_flag, double DT1, double DT2,
52  float in_lat, float in_lon, float *lat_list,
53  float *lon_list, void *data_p1, void *data_p2,
54  int8_t *qc1, int8_t *qc2, float *intpdata,
55  float *anc_unc, int32_t *int_qc);
56 
57 int get_clim_data(int32_t fid, int32_t sdfid, int16_t parm_flag,
58  int16_t month, int32_t *dims,
59  float *lat_buf, float *lon_buf, void *parm_buf);
60 
61 int get_NRT_data(int32_t fid, int32_t sdfid, char *anc_cor_file,
62  int16_t parm_flag, int32_t *dims, float *lat_buf,
63  float *lon_buf, void *parm_buf, int8_t *qc_buf);
64 
65 int openHDF(char *infile, int32_t *sdfid, int32_t *fid);
66 
67 int rdlatlon(int32_t fid, int32_t *dims, float *lat_buf,
68  float *lon_buf);
69 
70 int get_refs(int32_t fid, int32_t sdfid, int32_t vid, char *parm_label,
71  char *QC_label, int32_t *geom_id, int32_t *parm_sdsid,
72  int32_t *QC_sdsid, int32_t *dims);
73 
74 int32_t anc_get_time(char *filename, double *s_jd, double *e_jd);
75 
76 int closeHDF(int32_t sdfid, int32_t fid);
77 
78 #endif /* ANCPROTO_H */
void interp(double *ephemPtr, int startLoc, double *inTime, int numCoefs, int numCom, int numSets, int velFlag, double *posvel)
int16 eday
Definition: l1_czcs_hdf.c:17
int32_t day
float f1(float x)
void resiz_anc(int16_t *data, int8_t *qc, int32_t nlat, int32_t nlon1, int32_t nlon2, float *lons1, float *lons2)
Definition: getanc.c:722
int32 * msec
Definition: l1_czcs_hdf.c:31
int syear
Definition: l1_czcs_hdf.c:15
int32_t jday(int16_t i, int16_t j, int16_t k)
Definition: jday.c:4
int get_NRT_data(int32_t fid, int32_t sdfid, char *anc_cor_file, int16_t parm_flag, int32_t *dims, float *lat_buf, float *lon_buf, void *parm_buf, int8_t *qc_buf)
Definition: HDFroutines.c:360
double start
Definition: ancproto.h:7
int sday
Definition: l1_czcs_hdf.c:15
int32_t ck_files_in_buf(int16_t PA_flag, int16_t parm_flag, char *f1, char *f2, int16_t month, int16_t *error_flag, int16_t *read_flag)
Definition: getanc.c:1180
float f2(float y)
int32_t set_files(int16_t parm_flag, int16_t syear, int16_t sday, int16_t eday, int32_t msec, char *filename1, char *filename2, char *filename3, char *file1, char *file2, timech *dtime1, timech *dtime2, int *toms)
Definition: getanc.c:1454
int openHDF(char *infile, int32_t *sdfid, int32_t *fid)
Definition: HDFroutines.c:71
void interpolate(int16_t PA_flag, int16_t parm_flag, double DT1, double DT2, float in_lat, float in_lon, float *lat_list, float *lon_list, void *data_p1, void *data_p2, int8_t *qc1, int8_t *qc2, float *intpdata, float *anc_unc, int32_t *int_qc)
Definition: getanc.c:1314
int read_NRT(char *file1, char *file2, char *anc_cor_file, int16_t parm_flag, int16_t read_flag, int32_t *dims, float *lat_buf, float *lon_buf, void *parm_buf1, void *parm_buf2, int8_t *qc_buf1, int8_t *qc_buf2)
Definition: getanc.c:645
int get_clim_data(int32_t fid, int32_t sdfid, int16_t parm_flag, int16_t month, int32_t *dims, float *lat_buf, float *lon_buf, void *parm_buf)
Definition: HDFroutines.c:264
int get_ancillary(float *in_lat, float *in_lon, int16_t cnt, int16_t syear, int16_t sday, int16_t eday, int32_t time, char *filename1, char *filename2, char *filename3, char *anc_cor_file, int16_t parm_flag, float *interp, float *anc_unc, int16_t *qcflag)
Definition: getanc.c:297
void gregor(int16_t jday, int16_t year, int16_t *month, int16_t *day)
Definition: getanc.c:1122
PRIVATE void * parm_buf1
Definition: getanc.c:110
char filename[FILENAME_MAX]
Definition: atrem_corl1.h:122
int check_on_TOMS(int16_t parm_flag, char *file1, char *file2, char *filename1, char *filename2, char *filename3, double s_jd1, double s_jd2, double s_jd3, double e_jd1, double e_jd2, double e_jd3, double d_jd, timech *dt1, timech *dt2)
Definition: getanc.c:490
int read_climatology(char *file1, int16_t parm_flag, int16_t month, int32_t *dims, float *lat_buf, float *lon_buf, void *parm_buf)
Definition: getanc.c:586
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Definition: HISTORY.txt:356
int32_t anc_get_time(char *filename, double *s_jd, double *e_jd)
Definition: getanc.c:1612
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
void extract_data_pts(int16_t PA_flag, int16_t parm_flag, timech DTime1, timech DTime2, int16_t nsamp, float *in_latlist, float *in_lonlist, float *lat_bufp, float *lon_bufp, int32_t *dims, int8_t *qc_buf1, int8_t *qc_buf2, void *parm_buf1, void *parm_buf2, int toms, float *out_lat_list, float *out_lon_list, int16_t *qcflag, float *interp, float *anc_unc)
Definition: getanc.c:847
double inc
Definition: ancproto.h:8
int closeHDF(int32_t sdfid, int32_t fid)
Definition: HDFroutines.c:221
int get_refs(int32_t fid, int32_t sdfid, int32_t vid, char *parm_label, char *QC_label, int32_t *geom_id, int32_t *parm_sdsid, int32_t *QC_sdsid, int32_t *dims)
Definition: HDFroutines.c:726
PRIVATE void * parm_buf2
Definition: getanc.c:110
int rdlatlon(int32_t fid, int32_t *dims, float *lat_buf, float *lon_buf)
Definition: HDFroutines.c:171