(r8102/r7836)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "hdf.h"
Go to the source code of this file.
Defines |
| #define | PI 3.1415926535897932384626433832795029L |
| #define | INFILE argv[1] |
| #define | PARAM argv[2] |
| #define | USAGE(prog) fprintf(stderr,"\Usage:\n\%s main_file_path parameter bin_number\n\or\n\%s main_file_path parameter lat lon radius\n\or\n\%s main_file_path parameter north south west east\n\",prog,prog,prog) |
| #define | NUMROWS 2160 |
| #define | EARTH_RADIUS 6371.229 |
| #define | BLIST_FIELDS "bin_num,nobs,nscenes,time_rec,weights,sel_cat,flags_set" |
| #define | BLIST_SIZE 19 |
| #define | PREC_SIZE 8 |
Functions |
| double | sqrt (double x) |
| double | asin (double x) |
| double | sin (double x) |
| double | cos (double x) |
| double | fabs (double x) |
| void | initbin (void) |
| int32 | latlon2bin (double lat, double lon) |
| void | bin2latlon (int32 bin, double *clat, double *clon) |
| void | bin2bounds (int32 bin, double *n, double *s, double *w, double *e) |
| int16 | lat2row (double lat) |
| int32 | rowlon2bin (int16 row, double lon) |
| int32 | binsearch (int32 bin, int32 vdata_id, int32 numrecs) |
| double | constrain_lat (double lat) |
| double | constrain_lon (double lon) |
| char * | bitstr16 (int16 n) |
| char * | bitstr32 (int32 n) |
| int | main (int argc, char *argv[]) |
Define Documentation
| #define BLIST_FIELDS "bin_num,nobs,nscenes,time_rec,weights,sel_cat,flags_set" |
| #define PI 3.1415926535897932384626433832795029L |
| #define USAGE |
( |
|
prog | ) |
fprintf(stderr,"\Usage:\n\%s main_file_path parameter bin_number\n\or\n\%s main_file_path parameter lat lon radius\n\or\n\%s main_file_path parameter north south west east\n\",prog,prog,prog) |
Function Documentation
| void bin2bounds |
( |
int32 |
bin, |
|
|
double * |
n, |
|
|
double * |
s, |
|
|
double * |
w, |
|
|
double * |
e |
|
) |
| |
| void bin2latlon |
( |
int32 |
bin, |
|
|
double * |
clat, |
|
|
double * |
clon |
|
) |
| |
| int32 binsearch |
( |
int32 |
bin, |
|
|
int32 |
vdata_id, |
|
|
int32 |
numrecs |
|
) |
| |
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |