OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
hawkeyeUtil.h File Reference
#include "netcdf.h"
#include "nc4utils.h"
#include "timeutils.h"
Include dependency graph for hawkeyeUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int createFile (const char *filename, const char *cdlfile, size_t sdim, int *ncid, int *gid)
 
int parseDims (int ncid, int ndims, string dimString, int *numDims, int *dimid, int *varDims)
 
int createNCDF (int ncid, const char *sname, const char *lname, const char *standard_name, const char *units, void *fill_value, const char *flag_values, const char *flag_meanings, double low, double high, float scale_factor, float add_offset, int nt, int rank, int *dimids)
 
int tepoch2yds (double tepoch, int32_t *iyr, int32_t *idy, double *sec)
 
int readFrame (ifstream *framefile, uint8_t frame[892], int &prevFrameCnt, int ierror[2])
 
int getSHpacket (ifstream *framefile, uint8_t frame[892], int &framePtr, uint8_t **packet, int &packetLength, int &prevFrameCnt, int &frameDrop)
 
int expandEnvVar (string *sValue)
 

Variables

const int PHDRLEN = 6
 
const int SHDRLEN = 6
 
const int PUSLEN = 3
 

Function Documentation

◆ createFile()

int createFile ( const char *  filename,
const char *  cdlfile,
size_t  sdim,
int *  ncid,
int *  gid 
)

Definition at line 39 of file hawkeyeUtil.cpp.

◆ createNCDF()

int createNCDF ( int  ncid,
const char *  sname,
const char *  lname,
const char *  standard_name,
const char *  units,
void *  fill_value,
const char *  flag_values,
const char *  flag_meanings,
double  low,
double  high,
float  scale_factor,
float  add_offset,
int  nt,
int  rank,
int *  dimids 
)

Definition at line 374 of file hawkeyeUtil.cpp.

◆ expandEnvVar()

int expandEnvVar ( string sValue)
inline

Definition at line 41 of file hawkeyeUtil.h.

◆ getSHpacket()

int getSHpacket ( ifstream *  framefile,
uint8_t  frame[892],
int &  framePtr,
uint8_t **  packet,
int &  packetLength,
int &  prevFrameCnt,
int &  frameDrop 
)

Definition at line 912 of file hawkeyeUtil.cpp.

◆ parseDims()

int parseDims ( int  ncid,
int  ndims,
string  dimString,
int *  numDims,
int *  dimid,
int *  varDims 
)

Definition at line 339 of file hawkeyeUtil.cpp.

◆ readFrame()

int readFrame ( ifstream *  framefile,
uint8_t  frame[892],
int &  prevFrameCnt,
int  ierror[2] 
)

Definition at line 868 of file hawkeyeUtil.cpp.

◆ tepoch2yds()

int tepoch2yds ( double  tepoch,
int32_t *  iyr,
int32_t *  idy,
double *  sec 
)

Definition at line 725 of file hawkeyeUtil.cpp.

Variable Documentation

◆ PHDRLEN

const int PHDRLEN = 6

Definition at line 5 of file hawkeyeUtil.h.

◆ PUSLEN

const int PUSLEN = 3

Definition at line 7 of file hawkeyeUtil.h.

◆ SHDRLEN

const int SHDRLEN = 6

Definition at line 6 of file hawkeyeUtil.h.