OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
main_l1mapgen.c File Reference
#include "l12_proto.h"
#include "input_struc.h"
#include "miscstruct.h"
#include "miscanfill.h"
#include "mipoly.h"
#include "clo.h"
#include <X11/X.h>
#include <X11/Xlib.h>
#include <png.h>
#include <geotiffio.h>
#include <geo_normalize.h>
#include <geo_tiffp.h>
#include <geo_keyp.h>
#include <xtiffio.h>
#include <geokeys.h>
#include <scene_meta.h>
#include <libnav.h>
Include dependency graph for main_l1mapgen.c:

Go to the source code of this file.

Macros

#define ROOT2   1.4142135623730950488016887242096981
 
#define INT32   int32_t
 
#define FLOAT32   float
 
#define BYTE   unsigned char
 
#define BINBELOWTHRESH   110
 
#define MALLOC(ptr, typ, num)
 
#define CALLOC(ptr, typ, num)
 

Functions

BYTE logscale (float val, float min, float max)
 
BYTE linscale (float val, float min, float max)
 
double rint (double)
 
int scan_convert (XPoint *)
 
int collect_bins (int, XPoint *, int *)
 
int main (int argc, char *argv[])
 
void miloadAET ()
 
void micomputeWAET ()
 
void miFreeStorage ()
 
int miCreateETandAET ()
 
int miInsertionSort ()
 

Macro Definition Documentation

◆ BINBELOWTHRESH

#define BINBELOWTHRESH   110

Definition at line 67 of file main_l1mapgen.c.

◆ BYTE

#define BYTE   unsigned char

Definition at line 65 of file main_l1mapgen.c.

◆ CALLOC

#define CALLOC (   ptr,
  typ,
  num 
)
Value:
{ \
(ptr) = (typ *)calloc((num) , sizeof(typ)); \
if((ptr) == NULL){ \
fprintf(stderr,"-E- %s line %d: Memory allocation failure.\n", \
__FILE__,__LINE__); \
exit(EXIT_FAILURE); \
} \
}

Definition at line 77 of file main_l1mapgen.c.

◆ FLOAT32

#define FLOAT32   float

Definition at line 64 of file main_l1mapgen.c.

◆ INT32

#define INT32   int32_t

Definition at line 63 of file main_l1mapgen.c.

◆ MALLOC

#define MALLOC (   ptr,
  typ,
  num 
)
Value:
{ \
(ptr) = (typ *)malloc((num) * sizeof(typ)); \
if((ptr) == NULL){ \
fprintf(stderr,"-E- %s line %d: Memory allocation failure.\n", \
__FILE__,__LINE__); \
exit(EXIT_FAILURE); \
} \
}

Definition at line 69 of file main_l1mapgen.c.

◆ ROOT2

#define ROOT2   1.4142135623730950488016887242096981

Definition at line 61 of file main_l1mapgen.c.

Function Documentation

◆ collect_bins()

int collect_bins ( int  number_of_initial_points,
XPoint *  initial_point,
int *  span_width 
)

Definition at line 920 of file main_l1mapgen.c.

◆ linscale()

BYTE linscale ( float  val,
float  min,
float  max 
)

Definition at line 25 of file l1_imgscale.c.

◆ logscale()

BYTE logscale ( float  val,
float  min,
float  max 
)

Definition at line 76 of file l1_imgscale.c.

◆ main()

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

An implementation of a Lon/Lat to UTM zone code written by Chuck Gantz chuck.nosp@m..gan.nosp@m.tz@gl.nosp@m.obal.nosp@m.star..nosp@m.com ...in 1998...found on http://www.gpsy.com/gpsinfo/geotoutm/, a site published by Karen Nakamura, last updated 22 June 2000.

Minor modifications to the code were made to eliminate deprecation warnings

Definition at line 102 of file main_l1mapgen.c.

◆ micomputeWAET()

void micomputeWAET ( )

◆ miCreateETandAET()

int miCreateETandAET ( )

◆ miFreeStorage()

void miFreeStorage ( )

◆ miInsertionSort()

int miInsertionSort ( )

◆ miloadAET()

void miloadAET ( )

◆ rint()

double rint ( double  )

◆ scan_convert()

int scan_convert ( XPoint *  ptsIn)

Definition at line 820 of file main_l1mapgen.c.

#define NULL
Definition: decode_rs.h:63