OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
hdf5util.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include "hdf5utils.h"
#include "passthebuck.h"
Include dependency graph for hdf5util.cpp:

Go to the source code of this file.

Namespaces

 Hdf
 

Macros

#define FAIL   -1
 
#define DATACENTER   "NASA/GSFC Aquarius Data Processing Center"
 
#define MISSIONCHARACTERISTICS   "Nominal orbit: inclination=98.0 (Sun-synchronous); node=6PM (ascending); eccentricity=<0.002; altitude=657 km; ground speed=6.825 km/sec"
 
#define SENSORCHARACTERISTICS   "Number of beams=3; channels per receiver=4; frequency 1.413 GHz; bits per sample=16; instatntaneous field of view=6.5 degrees; science data block period=1.44 sec."
 

Functions

int32_t get_millisec (string *ydhmsf_str)
 
int h5a_set (hid_t dataset, const char *nam, hid_t typ, hid_t cnt, void *data)
 
hid_t h5d_create (hid_t grp, const char *nam, hid_t typ, int rank, hsize_t d0, hsize_t d1, hsize_t d2, hsize_t d3, hsize_t d4, hsize_t d5, hid_t *dataset, hid_t *dataspace, hid_t plist)
 
int SetScalarH5A (hid_t id, const char *name, hid_t type, const void *value)
 
int CreateH5D (hid_t grp, const char *sname, const char *lname, const char *units, double low, double high, float slope, float offset, hid_t nt, int rank, int32_t d0, int32_t d1, int32_t d2, int32_t d3, int32_t d4, int32_t d5, const char *dn0, const char *dn1, const char *dn2, const char *dn3, const char *dn4, const char *dn5, hid_t plist)
 
int CreateH5D (hid_t grp, const char *sname, const char *lname, const char *stdname, const char *units, double low, double high, float slope, float offset, float fillvalue, hid_t nt, int rank, int32_t d0, int32_t d1, int32_t d2, int32_t d3, int32_t d4, int32_t d5, const char *dn0, const char *dn1, const char *dn2, const char *dn3, const char *dn4, const char *dn5, hid_t plist)
 
herr_t h5d_write (hid_t id, const char *name, void *data, hsize_t rank, hsize_t s[6], hsize_t e[6])
 
herr_t h5d_read (hid_t id, const char *name, void *data, hsize_t rank, hsize_t s[6], hsize_t e[6])
 

Macro Definition Documentation

◆ DATACENTER

#define DATACENTER   "NASA/GSFC Aquarius Data Processing Center"

Definition at line 12 of file hdf5util.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 10 of file hdf5util.cpp.

◆ MISSIONCHARACTERISTICS

#define MISSIONCHARACTERISTICS   "Nominal orbit: inclination=98.0 (Sun-synchronous); node=6PM (ascending); eccentricity=<0.002; altitude=657 km; ground speed=6.825 km/sec"

Definition at line 13 of file hdf5util.cpp.

◆ SENSORCHARACTERISTICS

#define SENSORCHARACTERISTICS   "Number of beams=3; channels per receiver=4; frequency 1.413 GHz; bits per sample=16; instatntaneous field of view=6.5 degrees; science data block period=1.44 sec."

Definition at line 15 of file hdf5util.cpp.

Function Documentation

◆ get_millisec()

int32_t get_millisec ( string ydhmsf_str)

Definition at line 19 of file hdf5util.cpp.