OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
bin_util.h File Reference
#include <sstream>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include <iostream>
#include "hdf5.h"
#include "L3Shape.h"
Include dependency graph for bin_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  binIndexStruct
 
struct  binIndexStruct_cdf4
 
struct  binIndexStruct64_cdf4
 
struct  binListStruct
 
struct  binListStruct_hdf5
 
struct  binListStruct_cdf4
 
struct  binListStruct64_cdf4
 

Namespaces

 Hdf
 

Macros

#define PI   3.141592653589793
 
#define MAXNPROD   256
 
#define MAXNVDATA   MAXNPROD+3
 
#define SWAP_4(x)
 

Functions

int create_vdata (int32_t fileid, int32_t vgid, int32_t *vdata_id, const char *vdata_name, const char *class_name, int32_t n_flds, char const *const fldname[], int32_t type[], int32_t noext, int32_t *aid)
 
int32_t write_vdata (int vdata_id, int32_t n_recs_to_write, void *data)
 
int read_binList (int n_elem, int32_t vdata_id_binlist, binListStruct *binList, l3::L3Shape *shape)
 
int write_binList (int n_elem, int32_t vdata_id_binlist, binListStruct *binList)
 
int write_prodData (int n_elem, int32_t vdata_id_proddata, float *data, binListStruct *binList)
 
int copy_prodData (int n_elem, int32_t *binsToCopy, char const *const fldname3[], int32_t in_vdata_id_proddata, int32_t out_vdata_id_proddata)
 
int create_compound (hid_t group_id, const char *dataset_name, hid_t *dataset_id, hid_t *type_id, size_t typesize, int32_t n_flds, char const *const fldname[], size_t offset[], hid_t type[], hid_t *filespace, hid_t dataspace)
 

Macro Definition Documentation

◆ MAXNPROD

#define MAXNPROD   256

Definition at line 20 of file bin_util.h.

◆ MAXNVDATA

#define MAXNVDATA   MAXNPROD+3

Definition at line 21 of file bin_util.h.

◆ PI

#define PI   3.141592653589793

Definition at line 6 of file bin_util.h.

◆ SWAP_4

#define SWAP_4 (   x)
Value:
( ((x) << 24) | \
(((x) << 8) & 0x00ff0000) | \
(((x) >> 8) & 0x0000ff00) | \
((x) >> 24) )

Definition at line 23 of file bin_util.h.