OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
swl0_utils.c File Reference
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <math.h>
#include "swl0_proto.h"
Include dependency graph for swl0_utils.c:

Go to the source code of this file.

Macros

#define TIMELEN   25
 

Functions

INT16 scid2mnftype (INT16 scid[])
 
INT16 scid2mnfnum (INT16 scid[])
 
FLOAT64 ttag2unix (INT16 ttag[])
 
char * unix2timeStr (FLOAT64 usec)
 
void ttag2ydmsec (INT16 ttag[], INT16 *year, INT16 *day, INT32 *msec)
 
INT32 filesize (const char *filename)
 
BYTE timeError (swl0indx *indx, INT32 irec)
 
BYTE timeSeqError (swl0indx *indx, INT32 irec)
 
BYTE timeContiguous (swl0indx *indx, INT32 irec)
 
BYTE timeConsistent (swl0indx *indx, INT32 irec)
 
BYTE timeShifted (swl0indx *indx, INT32 irec, FLOAT64 *shiftval)
 
BYTE sohHdrError (BYTE hdr[])
 
BYTE bitError (BYTE mnf[], INT32 *totbits, INT32 *toterrs)
 
BYTE startBitError (BYTE mnf[], INT32 *numbits, INT32 *numerrs)
 
BYTE stopBitError (BYTE mnf[], INT32 *numbits, INT32 *numerrs)
 
INT32 pixVariance (BYTE mnf[])
 

Macro Definition Documentation

◆ TIMELEN

#define TIMELEN   25

Definition at line 14 of file swl0_utils.c.

Function Documentation

◆ bitError()

BYTE bitError ( BYTE  mnf[],
INT32 totbits,
INT32 toterrs 
)

Definition at line 441 of file swl0_utils.c.

◆ filesize()

INT32 filesize ( const char *  filename)

Definition at line 93 of file swl0_utils.c.

◆ pixVariance()

INT32 pixVariance ( BYTE  mnf[])

Definition at line 582 of file swl0_utils.c.

◆ scid2mnfnum()

INT16 scid2mnfnum ( INT16  scid[])

Definition at line 29 of file swl0_utils.c.

◆ scid2mnftype()

INT16 scid2mnftype ( INT16  scid[])

Definition at line 20 of file swl0_utils.c.

◆ sohHdrError()

BYTE sohHdrError ( BYTE  hdr[])

Definition at line 416 of file swl0_utils.c.

◆ startBitError()

BYTE startBitError ( BYTE  mnf[],
INT32 numbits,
INT32 numerrs 
)

Definition at line 469 of file swl0_utils.c.

◆ stopBitError()

BYTE stopBitError ( BYTE  mnf[],
INT32 numbits,
INT32 numerrs 
)

Definition at line 528 of file swl0_utils.c.

◆ timeConsistent()

BYTE timeConsistent ( swl0indx *  indx,
INT32  irec 
)

Definition at line 255 of file swl0_utils.c.

◆ timeContiguous()

BYTE timeContiguous ( swl0indx *  indx,
INT32  irec 
)

Definition at line 178 of file swl0_utils.c.

◆ timeError()

BYTE timeError ( swl0indx *  indx,
INT32  irec 
)

Definition at line 109 of file swl0_utils.c.

◆ timeSeqError()

BYTE timeSeqError ( swl0indx *  indx,
INT32  irec 
)

Definition at line 121 of file swl0_utils.c.

◆ timeShifted()

BYTE timeShifted ( swl0indx *  indx,
INT32  irec,
FLOAT64 shiftval 
)

Definition at line 334 of file swl0_utils.c.

◆ ttag2unix()

FLOAT64 ttag2unix ( INT16  ttag[])

Definition at line 38 of file swl0_utils.c.

◆ ttag2ydmsec()

void ttag2ydmsec ( INT16  ttag[],
INT16 year,
INT16 day,
INT32 msec 
)

Definition at line 71 of file swl0_utils.c.

◆ unix2timeStr()

char* unix2timeStr ( FLOAT64  usec)

Definition at line 55 of file swl0_utils.c.