NASA Logo
Ocean Color Science Software

ocssw V2022
common.cpp File Reference
#include <algorithm>
#include <iterator>
#include "common.h"
Include dependency graph for common.cpp:

Go to the source code of this file.

Macros

#define BAGGBASE   2863311530
 
#define RAGGBASE   2774100650
 

Functions

int get_band_dims (uint8_t *apacket, uint16_t &ncp, uint16_t &nbb, uint16_t &nrb, uint16_t &nsp, uint16_t &ndc, uint16_t &nds, uint16_t *btaps, uint16_t *rtaps, itab *itable)
 
int get_anc_packet_time (uint8_t *apacket, int32_t &iyear, int32_t &iday, double &stime)
 
int read_oci_scan_packets (L0Stream *tfileStream, uint8_t *apacket, uint8_t(*pbuffer)[PKTSIZE], uint32_t &npkts, int32_t &spnum, int32_t &ancind, vector< int32_t > &tlmind, uint8_t &seqerr, int32_t &endfile, bool isSPW)
 
int anc_compare (uint8_t *apacket0, uint8_t *apacket)
 
int read_packet (L0Stream *tfileStream, uint8_t *packet, uint32_t &len, uint32_t &apid, int32_t &endfile, bool isSPW)
 
int get_swir_mode (uint8_t(*pbuffer)[PKTSIZE], uint32_t npkts, uint16_t &smode)
 

Macro Definition Documentation

◆ BAGGBASE

#define BAGGBASE   2863311530

Definition at line 8 of file common.cpp.

◆ RAGGBASE

#define RAGGBASE   2774100650

Definition at line 9 of file common.cpp.

Function Documentation

◆ anc_compare()

int anc_compare ( uint8_t *  apacket0,
uint8_t *  apacket 
)

Definition at line 287 of file common.cpp.

◆ get_anc_packet_time()

int get_anc_packet_time ( uint8_t *  apacket,
int32_t &  iyear,
int32_t &  iday,
double &  stime 
)

Definition at line 104 of file common.cpp.

◆ get_band_dims()

int get_band_dims ( uint8_t *  apacket,
uint16_t &  ncp,
uint16_t &  nbb,
uint16_t &  nrb,
uint16_t &  nsp,
uint16_t &  ndc,
uint16_t &  nds,
uint16_t *  btaps,
uint16_t *  rtaps,
itab itable 
)

Definition at line 21 of file common.cpp.

◆ get_swir_mode()

int get_swir_mode ( uint8_t(*)  pbuffer[PKTSIZE],
uint32_t  npkts,
uint16_t &  smode 
)

Definition at line 379 of file common.cpp.

◆ read_oci_scan_packets()

int read_oci_scan_packets ( L0Stream tfileStream,
uint8_t *  apacket,
uint8_t(*)  pbuffer[PKTSIZE],
uint32_t &  npkts,
int32_t &  spnum,
int32_t &  ancind,
vector< int32_t > &  tlmind,
uint8_t &  seqerr,
int32_t &  endfile,
bool  isSPW 
)

Definition at line 136 of file common.cpp.

◆ read_packet()

int read_packet ( L0Stream tfileStream,
uint8_t *  packet,
uint32_t &  len,
uint32_t &  apid,
int32_t &  endfile,
bool  isSPW 
)

Definition at line 342 of file common.cpp.