OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
getanc.c File Reference
#include <mfhdf.h>
#include "anc.h"
#include "ancproto.h"
#include <genutils.h>
Include dependency graph for getanc.c:

Go to the source code of this file.

Macros

#define FLIMIT   12
 
#define BS_INCR   0 /* increasing order */
 
#define BS_DECR   1 /* decreasing order */
 

Functions

int get_ancillary (float *lat, float *lon, int16_t nsamp, int16_t syear, int16_t sday, int16_t eday, int32_t msec, char *filename1, char *filename2, char *filename3, char *anc_cor_file, int16_t parm_flag, float *interp, float *anc_unc, int16_t *qcflag)
 
intn get_ancillary_ (float32 *lat, float32 *lon, int16 nsamp, int16 syear, int16 sday, int16 eday, int32 msec, char *filename1, char *filename2, char *filename3, char *anc_cor_file, int16 parm_flag, float32 *interp, float32 *anc_unc, int16 *qcflag)
 
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)
 
int read_climatology (char *file1, int16_t parm_flag, int16_t month, int32_t *dims, float *lat_buf, float *lon_buf, void *parm_buf)
 
int read_NRT (char *file1, char *file2, char *anc_cor_file, int16_t parm_flag, int16_t rd_flag, int32_t *dims, float *lat_buf, float *lon_buf, void *parm_buf1, void *parm_buf2, int8_t *qc_buf1, int8_t *qc_buf2)
 
void resiz_anc (int16_t *data, int8_t *qc, int32_t nlat, int32_t nlon1, int32_t nlon2, float *lons1, float *lons2)
 
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)
 
void gregor (int16_t sday, int16_t syear, int16_t *month, int16_t *day)
 
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)
 
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)
 
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)
 
int32_t anc_get_time (char *filename, double *s_jd, double *e_jd)
 

Variables

PRIVATE int32 fid1
 
PRIVATE int32 fid2
 
PRIVATE int32 sdfid1
 
PRIVATE int32 sdfid2
 
PRIVATE void * parm_buf1
 
PRIVATE void * parm_buf2
 
char ERR_MSG [1024]
 

Macro Definition Documentation

◆ BS_DECR

#define BS_DECR   1 /* decreasing order */

Definition at line 116 of file getanc.c.

◆ BS_INCR

#define BS_INCR   0 /* increasing order */

Definition at line 115 of file getanc.c.

◆ FLIMIT

#define FLIMIT   12

Definition at line 113 of file getanc.c.

Function Documentation

◆ anc_get_time()

int32_t anc_get_time ( char *  filename,
double *  s_jd,
double *  e_jd 
)

Definition at line 1612 of file getanc.c.

◆ check_on_TOMS()

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 at line 490 of file getanc.c.

◆ ck_files_in_buf()

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 at line 1180 of file getanc.c.

◆ extract_data_pts()

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 at line 847 of file getanc.c.

◆ get_ancillary()

int get_ancillary ( float *  lat,
float *  lon,
int16_t  nsamp,
int16_t  syear,
int16_t  sday,
int16_t  eday,
int32_t  msec,
char *  filename1,
char *  filename2,
char *  filename3,
char *  anc_cor_file,
int16_t  parm_flag,
float *  interp,
float *  anc_unc,
int16_t *  qcflag 
)

Definition at line 297 of file getanc.c.

◆ get_ancillary_()

intn get_ancillary_ ( float32 *  lat,
float32 *  lon,
int16  nsamp,
int16  syear,
int16  sday,
int16  eday,
int32  msec,
char *  filename1,
char *  filename2,
char *  filename3,
char *  anc_cor_file,
int16  parm_flag,
float32 *  interp,
float32 *  anc_unc,
int16 *  qcflag 
)

Definition at line 443 of file getanc.c.

◆ gregor()

void gregor ( int16_t  sday,
int16_t  syear,
int16_t *  month,
int16_t *  day 
)

Definition at line 1122 of file getanc.c.

◆ interpolate()

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 at line 1314 of file getanc.c.

◆ read_climatology()

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 at line 586 of file getanc.c.

◆ read_NRT()

int read_NRT ( char *  file1,
char *  file2,
char *  anc_cor_file,
int16_t  parm_flag,
int16_t  rd_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 at line 645 of file getanc.c.

◆ resiz_anc()

void resiz_anc ( int16_t *  data,
int8_t *  qc,
int32_t  nlat,
int32_t  nlon1,
int32_t  nlon2,
float *  lons1,
float *  lons2 
)

Definition at line 722 of file getanc.c.

◆ set_files()

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 at line 1454 of file getanc.c.

Variable Documentation

◆ ERR_MSG

char ERR_MSG[1024]

Definition at line 111 of file getanc.c.

◆ fid1

PRIVATE int32 fid1

Definition at line 109 of file getanc.c.

◆ fid2

PRIVATE int32 fid2

Definition at line 109 of file getanc.c.

◆ parm_buf1

PRIVATE void* parm_buf1

Definition at line 110 of file getanc.c.

◆ parm_buf2

PRIVATE void * parm_buf2

Definition at line 110 of file getanc.c.

◆ sdfid1

PRIVATE int32 sdfid1

Definition at line 109 of file getanc.c.

◆ sdfid2

PRIVATE int32 sdfid2

Definition at line 109 of file getanc.c.