ocssw  1.0
Defines | Typedefs | Functions
/disk01/web/ocssw/build/src/l2gen/main_vcaltarget_wl2sup.c File Reference

(r7811/r6121)

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <libgen.h>
#include <math.h>
#include <float.h>
#include <time.h>
#include "l12_proto.h"
#include "seabin.h"
#include "KDvector.h"
#include "readL2scan.h"
#include "l12_parms.h"
#include "l2_flags.h"
#include "hdf.h"
#include "target_struc.h"
#include "l1_struc.h"
#include "aer_struc.h"
#include "filehandle.h"
#include "input_struc.h"
#include <setupflags.h>

Go to the source code of this file.

Defines

#define RADIUS_MULTPL   5
#define OUTSCANLINE   100 /* writing out 100 scan-lines if cannot allocate memory to the entire scene */
#define MAXNVDATA   50

Typedefs

typedef int32 l3nvdata [MAXNVDATA]

Functions

int32 close_input_l3b (int32 fid, int32 sdfid, int32 vgid, int32 vdata_id[MAXNVDATA])
int32 open_input_l3b (char *hdf_file, int32 *fid, int32 *sdfid, int32 *vgid, int32 vdata_id[MAXNVDATA], meta_l3bType *meta_l3b, int32 *nrows)
int windex (float wave, float twave[], int ntwave)
float locate (float *vec1, float dk, float **vec2, int32_t srec, int32_t erec, int32_t spix, int32_t epix, int32_t npix, int32_t *irow, int32_t *icol)
float KDtreelocate (KDtree *tree, float *vec1, float **vec2, float dkmax, float dk, int32_t d2s, int32_t srec, int32_t erec, int32_t spix, int32_t epix, int32_t npix, int32 *l2_flags, uint32_t flagusemask, int32_t *irow, int32_t *icol)
void lonlat2geovec (float lon, float lat, float *v)
float distance (float *vec1, float *vec2)
float lldistance (float lat1, float lon1, float lat2, float lon2)
int32_t diffday (int32_t date1, int32_t date2)
void meanday (int32_t year1, int32_t day1, int32_t msec1, int32_t year2, int32_t day2, int32_t msec2, int32_t *myear, int32_t *mday, int32_t *mmsec)
uint64_t diffmsec (int32_t year1, int32_t day1, int32_t msec1, int32_t year2, int32_t day2, int32_t msec2)
int nLw_SeaWiFS2MODIS (int32_t sensorID, float *nLwbands, float *Lwbands)
void tau_interp (int32_t nl1b, float *l1wave, int32_t nl2b, float *l2wave, float *l2tau)
int compar (const void *x, const void *y)
int mscal_usage (char *prog)
int32 binlocate (int32 *binlist_buf, int32 n_records, int32 bin)
int read9km_mask (char *file, char *mask)
int is_masked (int32_t bin, char *mask, int32_t nrows)
void bandpass_correct (int32_t sensorID1, int32_t sensorID2, float *wave1, float *wave2, int32_t nwave1, int32_t nwave2, float *nLw, float *Lw)
int main (int argc, char *argv[])

Define Documentation

#define MAXNVDATA   50

Definition at line 51 of file main_vcaltarget_wl2sup.c.

#define OUTSCANLINE   100 /* writing out 100 scan-lines if cannot allocate memory to the entire scene */

Definition at line 50 of file main_vcaltarget_wl2sup.c.

#define RADIUS_MULTPL   5

Definition at line 49 of file main_vcaltarget_wl2sup.c.


Typedef Documentation

typedef int32 l3nvdata[MAXNVDATA]

Definition at line 57 of file main_vcaltarget_wl2sup.c.


Function Documentation

void bandpass_correct ( int32_t  sensorID1,
int32_t  sensorID2,
float *  wave1,
float *  wave2,
int32_t  nwave1,
int32_t  nwave2,
float *  nLw,
float *  Lw 
)
int32 binlocate ( int32 *  binlist_buf,
int32  n_records,
int32  bin 
)
int32 close_input_l3b ( int32  fid,
int32  sdfid,
int32  vgid,
int32  vdata_id[MAXNVDATA] 
)
int compar ( const void *  x,
const void *  y 
)
int32_t diffday ( int32_t  date1,
int32_t  date2 
)
uint64_t diffmsec ( int32_t  year1,
int32_t  day1,
int32_t  msec1,
int32_t  year2,
int32_t  day2,
int32_t  msec2 
)
float distance ( float *  vec1,
float *  vec2 
)

Definition at line 2419 of file main_vcaltarget_wl2sup.c.

int is_masked ( int32_t  bin,
char *  mask,
int32_t  nrows 
)

Definition at line 68 of file read9km_mask.c.

float KDtreelocate ( KDtree tree,
float *  vec1,
float **  vec2,
float  dkmax,
float  dk,
int32_t  d2s,
int32_t  srec,
int32_t  erec,
int32_t  spix,
int32_t  epix,
int32_t  npix,
int32 *  l2_flags,
uint32_t  flagusemask,
int32_t *  irow,
int32_t *  icol 
)

Definition at line 2530 of file main_vcaltarget_wl2sup.c.

float lldistance ( float  lat1,
float  lon1,
float  lat2,
float  lon2 
)

Definition at line 2429 of file main_vcaltarget_wl2sup.c.

float locate ( float *  vec1,
float  dk,
float **  vec2,
int32_t  srec,
int32_t  erec,
int32_t  spix,
int32_t  epix,
int32_t  npix,
int32_t *  irow,
int32_t *  icol 
)

Definition at line 2477 of file main_vcaltarget_wl2sup.c.

void lonlat2geovec ( float  lon,
float  lat,
float *  v 
)

Definition at line 2456 of file main_vcaltarget_wl2sup.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 82 of file main_vcaltarget_wl2sup.c.

void meanday ( int32_t  year1,
int32_t  day1,
int32_t  msec1,
int32_t  year2,
int32_t  day2,
int32_t  msec2,
int32_t *  myear,
int32_t *  mday,
int32_t *  mmsec 
)
int mscal_usage ( char *  prog)
int nLw_SeaWiFS2MODIS ( int32_t  sensorID,
float *  nLwbands,
float *  Lwbands 
)
int32 open_input_l3b ( char *  hdf_file,
int32 *  fid,
int32 *  sdfid,
int32 *  vgid,
int32  vdata_id[MAXNVDATA],
meta_l3bType meta_l3b,
int32 *  nrows 
)
int read9km_mask ( char *  file,
char *  mask 
)

Definition at line 27 of file read9km_mask.c.

void tau_interp ( int32_t  nl1b,
float *  l1wave,
int32_t  nl2b,
float *  l2wave,
float *  l2tau 
)
int windex ( float  wave,
float  twave[],
int  ntwave 
)

Definition at line 54 of file windex.c.