OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
bin_csub.c File Reference
#include <sys/types.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <seaproto.h>
Include dependency graph for bin_csub.c:

Go to the source code of this file.

Macros

#define PI   3.141592653589793
 

Functions

void bin_init (int32_t nrow, int64_t **nbin, int64_t **bbin, double **lbin, int64_t *tbin)
 
void bin2ll (int64_t bin, double *lat, double *lon)
 
void ll2bin (double lat, double lon, int64_t *bin)
 
void ll2rc (double lat, double lon, int32_t *row, int32_t *col)
 
void rc2ll (int32_t row, int32_t col, double *lat, double *lon)
 
void rc2bin (int32_t row, int32_t col, int64_t *bin)
 
void bin2rc (int64_t bin, int32_t *row, int32_t *col)
 

Macro Definition Documentation

◆ PI

#define PI   3.141592653589793

Definition at line 12 of file bin_csub.c.

Function Documentation

◆ bin2ll()

void bin2ll ( int64_t  bin,
double *  lat,
double *  lon 
)

Definition at line 87 of file bin_csub.c.

◆ bin2rc()

void bin2rc ( int64_t  bin,
int32_t *  row,
int32_t *  col 
)

Definition at line 169 of file bin_csub.c.

◆ bin_init()

void bin_init ( int32_t  nrow,
int64_t **  nbin,
int64_t **  bbin,
double **  lbin,
int64_t *  tbin 
)

Definition at line 30 of file bin_csub.c.

◆ ll2bin()

void ll2bin ( double  lat,
double  lon,
int64_t *  bin 
)

Definition at line 127 of file bin_csub.c.

◆ ll2rc()

void ll2rc ( double  lat,
double  lon,
int32_t *  row,
int32_t *  col 
)

Definition at line 142 of file bin_csub.c.

◆ rc2bin()

void rc2bin ( int32_t  row,
int32_t  col,
int64_t *  bin 
)

Definition at line 161 of file bin_csub.c.

◆ rc2ll()

void rc2ll ( int32_t  row,
int32_t  col,
double *  lat,
double *  lon 
)

Definition at line 153 of file bin_csub.c.