OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
main_l2mapgen.c File Reference
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdint.h>
#include <netcdf.h>
#include <png.h>
#include "miscstruct.h"
#include "miscanfill.h"
#include "mipoly.h"
#include "mfhdf.h"
#include <clo.h>
#include "l2mapgen.h"
#include "l2mapgen_input.h"
#include <genutils.h>
#include <readL2scan.h>
#include <stdio.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <unistd.h>
#include <geotiffio.h>
#include <geo_normalize.h>
#include <geo_tiffp.h>
#include <geo_keyp.h>
#include <xtiffio.h>
#include <geokeys.h>
Include dependency graph for main_l2mapgen.c:

Go to the source code of this file.

Macros

#define ROOT2   1.4142135623730950488016887242096981
 
#define PI   3.14159265358979323846
 
#define BINBELOWTHRESH   110
 
#define CALLOC(ptr, typ, num)
 

Functions

int scan_convert (XPoint *ptsIn)
 
int collect_bins (int number_of_initial_points, XPoint *initial_point, int *span_width)
 
int miCreateETandAET ()
 
int miInsertionSort ()
 
int main (int argc, char *argv[])
 
void miloadAET ()
 
void micomputeWAET ()
 
void miFreeStorage ()
 

Variables

int32_t l3m_params = 0
 
char ** parmname_list
 
char ** parmname_short
 
char ** unit_list
 
char ** scaling_list
 
float * maximum_list
 
float * minimum_list
 
char ** palette_list
 
char ** precision_list
 

Macro Definition Documentation

◆ BINBELOWTHRESH

#define BINBELOWTHRESH   110

Definition at line 49 of file main_l2mapgen.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 51 of file main_l2mapgen.c.

◆ PI

#define PI   3.14159265358979323846

Definition at line 48 of file main_l2mapgen.c.

◆ ROOT2

#define ROOT2   1.4142135623730950488016887242096981

Definition at line 47 of file main_l2mapgen.c.

Function Documentation

◆ collect_bins()

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

Definition at line 1186 of file main_l2mapgen.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 83 of file main_l2mapgen.c.

◆ micomputeWAET()

void micomputeWAET ( )

◆ miCreateETandAET()

int miCreateETandAET ( )

◆ miFreeStorage()

void miFreeStorage ( )

◆ miInsertionSort()

int miInsertionSort ( )

◆ miloadAET()

void miloadAET ( )

◆ scan_convert()

int scan_convert ( XPoint *  ptsIn)

Definition at line 1088 of file main_l2mapgen.c.

Variable Documentation

◆ l3m_params

int32_t l3m_params = 0

Definition at line 73 of file main_l2mapgen.c.

◆ maximum_list

float* maximum_list

Definition at line 78 of file main_l2mapgen.c.

◆ minimum_list

float* minimum_list

Definition at line 79 of file main_l2mapgen.c.

◆ palette_list

char** palette_list

Definition at line 80 of file main_l2mapgen.c.

◆ parmname_list

char** parmname_list

Definition at line 74 of file main_l2mapgen.c.

◆ parmname_short

char** parmname_short

Definition at line 75 of file main_l2mapgen.c.

◆ precision_list

char** precision_list

Definition at line 81 of file main_l2mapgen.c.

◆ scaling_list

char** scaling_list

Definition at line 77 of file main_l2mapgen.c.

◆ unit_list

char** unit_list

Definition at line 76 of file main_l2mapgen.c.

#define NULL
Definition: decode_rs.h:63