OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
leveltwo2csv-main.c File Reference
#include "argpar.h"
#include "val_extract.h"
#include <errno.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for leveltwo2csv-main.c:

Go to the source code of this file.

Classes

struct  leveltwo2csv_main_input
 

Macros

#define OFILE_DEFAULT_EXT   ".csv"
 
#define dprintf(...)   do {} while (0)
 
#define eprintf(...)   do { fprintf(stderr, __VA_ARGS__); } while(0)
 
#define str(s)   #s
 
#define expanded_str(s)   str(s)
 

Functions

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

Variables

const char * argpar_program_name = "leveltwo2csv"
 
const char * argpar_program_version = "0.0.1"
 

Macro Definition Documentation

◆ dprintf

#define dprintf (   ...)    do {} while (0)

Definition at line 14 of file leveltwo2csv-main.c.

◆ eprintf

#define eprintf (   ...)    do { fprintf(stderr, __VA_ARGS__); } while(0)

Definition at line 17 of file leveltwo2csv-main.c.

◆ expanded_str

#define expanded_str (   s)    str(s)

Definition at line 20 of file leveltwo2csv-main.c.

◆ OFILE_DEFAULT_EXT

#define OFILE_DEFAULT_EXT   ".csv"

Definition at line 9 of file leveltwo2csv-main.c.

◆ str

#define str (   s)    #s

Definition at line 19 of file leveltwo2csv-main.c.

Function Documentation

◆ 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 194 of file leveltwo2csv-main.c.

Variable Documentation

◆ argpar_program_name

const char * argpar_program_name = "leveltwo2csv"

How to display the program name. If not given, it will be derived during a call to argpar_parse_args.

Definition at line 97 of file leveltwo2csv-main.c.

◆ argpar_program_version

const char* argpar_program_version = "0.0.1"

Used as the program version string. If set, a version=1 option is automatically added. argpar_program_version_hook takes precedence.

Definition at line 98 of file leveltwo2csv-main.c.