OB.DAAC Logo
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.

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 (fstream *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)
 
int anc_compare (uint8_t *apacket0, uint8_t *apacket)
 
int read_packet (fstream *tfileStream, uint8_t *packet, uint32_t &len, uint32_t &apid, int32_t &endfile)
 
int get_swir_mode (uint8_t(*pbuffer)[PKTSIZE], uint32_t npkts, uint16_t &smode)
 

Function Documentation

◆ anc_compare()

int anc_compare ( uint8_t *  apacket0,
uint8_t *  apacket 
)

Definition at line 285 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 97 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 17 of file common.cpp.

◆ get_swir_mode()

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

Definition at line 370 of file common.cpp.

◆ read_oci_scan_packets()

int read_oci_scan_packets ( fstream *  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 
)

Definition at line 132 of file common.cpp.

◆ read_packet()

int read_packet ( fstream *  tfileStream,
uint8_t *  packet,
uint32_t &  len,
uint32_t &  apid,
int32_t &  endfile 
)

Definition at line 340 of file common.cpp.