OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
smitoppm.c File Reference
#include <stdio.h>
#include <unistd.h>
#include "netcdf.h"
#include "map.h"
#include "mapproto_o.h"
#include "hdf5.h"
#include "mapproto.h"
#include <math.h>
Include dependency graph for smitoppm.c:

Go to the source code of this file.

Macros

#define NX   4096 /* Map grid x-dimension */
 
#define NY   2048 /* Map grid y-dimension */
 
#define MAXSTRNGLEN   255 /* Max generic string length */
 
#define CMD_ARGS   "b:w:s" /* Valid commandline options */
 
#define VERSION   "3.4"
 

Typedefs

typedef unsigned char byte
 

Functions

void usage (char *progname)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ CMD_ARGS

#define CMD_ARGS   "b:w:s" /* Valid commandline options */

Definition at line 52 of file smitoppm.c.

◆ MAXSTRNGLEN

#define MAXSTRNGLEN   255 /* Max generic string length */

Definition at line 50 of file smitoppm.c.

◆ NX

#define NX   4096 /* Map grid x-dimension */

Definition at line 48 of file smitoppm.c.

◆ NY

#define NY   2048 /* Map grid y-dimension */

Definition at line 49 of file smitoppm.c.

◆ VERSION

#define VERSION   "3.4"

Definition at line 54 of file smitoppm.c.

Typedef Documentation

◆ byte

typedef unsigned char byte

Definition at line 39 of file smitoppm.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 70 of file smitoppm.c.

◆ usage()

void usage ( char *  progname)

Definition at line 59 of file smitoppm.c.