OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
neb2raw.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include "loghdr.h"
Include dependency graph for neb2raw.c:

Go to the source code of this file.

Macros

#define CMD_ARGS   "f:o:b:" /* Valid commandline options */
 
#define HRPTRECLEN   13902 /* Length of HRPT nebula record */
 
#define STORRECLEN   3540 /* Length of recorded data rec */
 
#define FRAMELEN   13860 /* Bytes in spacecraft mnf */
 
#define SIZEOFBUF   (16*10124) /* Data buffer length */
 
#define SIZEOFHDR   sizeof(struct LOGHDR) /* Nebula header length */
 
#define SIZEOFHDLC   8 /* HDLC header length */
 
#define GACID   80 /* GAC ID in HDLC header */
 
#define LACID   96 /* LAC ID in HDLC header */
 
#define BRBID   64 /* Back-orbit ID in HDLC header */
 
#define IDBYTE   3 /* ID byte location HDLC header */
 
#define SQBYTE   5 /* Sequence # location HDLC hdr */
 

Functions

int issoh (int addr)
 
int extract_loggermsgs (FILE *outfp, BYTE *buf, int buflen)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ BRBID

#define BRBID   64 /* Back-orbit ID in HDLC header */

Definition at line 100 of file neb2raw.c.

◆ CMD_ARGS

#define CMD_ARGS   "f:o:b:" /* Valid commandline options */

Definition at line 91 of file neb2raw.c.

◆ FRAMELEN

#define FRAMELEN   13860 /* Bytes in spacecraft mnf */

Definition at line 94 of file neb2raw.c.

◆ GACID

#define GACID   80 /* GAC ID in HDLC header */

Definition at line 98 of file neb2raw.c.

◆ HRPTRECLEN

#define HRPTRECLEN   13902 /* Length of HRPT nebula record */

Definition at line 92 of file neb2raw.c.

◆ IDBYTE

#define IDBYTE   3 /* ID byte location HDLC header */

Definition at line 101 of file neb2raw.c.

◆ LACID

#define LACID   96 /* LAC ID in HDLC header */

Definition at line 99 of file neb2raw.c.

◆ SIZEOFBUF

#define SIZEOFBUF   (16*10124) /* Data buffer length */

Definition at line 95 of file neb2raw.c.

◆ SIZEOFHDLC

#define SIZEOFHDLC   8 /* HDLC header length */

Definition at line 97 of file neb2raw.c.

◆ SIZEOFHDR

#define SIZEOFHDR   sizeof(struct LOGHDR) /* Nebula header length */

Definition at line 96 of file neb2raw.c.

◆ SQBYTE

#define SQBYTE   5 /* Sequence # location HDLC hdr */

Definition at line 102 of file neb2raw.c.

◆ STORRECLEN

#define STORRECLEN   3540 /* Length of recorded data rec */

Definition at line 93 of file neb2raw.c.

Function Documentation

◆ extract_loggermsgs()

int extract_loggermsgs ( FILE *  outfp,
BYTE buf,
int  buflen 
)

Definition at line 368 of file neb2raw.c.

◆ issoh()

int issoh ( int  addr)

Definition at line 417 of file neb2raw.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 115 of file neb2raw.c.