OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
hdf4_utils.c File Reference
#include "hdf4utils.h"
#include <hdf.h>
#include <mfhdf.h>
Include dependency graph for hdf4_utils.c:

Go to the source code of this file.

Functions

int load_att (int32_t obj_id, int32_t index, att_struct *att)
 
int load_att_byname (int32_t obj_id, const char *attname, att_struct *att)
 
void print_att_info (const att_struct att)
 
void print_att_vals (const att_struct att)
 
int init_attlist (sds_struct *sds)
 
int init_sds_byname (int32_t fileid, const char *sdsname, sds_struct *sds)
 
void print_sds_info (const sds_struct s)
 
int init_sdslist (int32_t fileid, const char *sdsnames[], sds_struct *sdslist)
 
int readall_sds (sds_struct *sds)
 
void free_sds (sds_struct *sds)
 
const char * hdf_typename (const int32_t ntype)
 
char * fmt_hdf_val (const void *array, const int32_t i, const int32_t ntype)
 
void fopen_warn (const char *filename, const char *file, const int32_t line)
 
void fopen_err (const char *filename, const char *file, const int32_t line)
 
int parse_odl (const char *odltext, const char *object, char *value)
 
int get_hdfeos_meta (int32_t sd_id, char *attribute, char *name, char *data)
 

Function Documentation

◆ fmt_hdf_val()

char* fmt_hdf_val ( const void *  array,
const int32_t  i,
const int32_t  ntype 
)

Definition at line 211 of file hdf4_utils.c.

◆ fopen_err()

void fopen_err ( const char *  filename,
const char *  file,
const int32_t  line 
)

Definition at line 266 of file hdf4_utils.c.

◆ fopen_warn()

void fopen_warn ( const char *  filename,
const char *  file,
const int32_t  line 
)

Definition at line 261 of file hdf4_utils.c.

◆ free_sds()

void free_sds ( sds_struct *  sds)

Definition at line 161 of file hdf4_utils.c.

◆ get_hdfeos_meta()

int get_hdfeos_meta ( int32_t  sd_id,
char *  attribute,
char *  name,
char *  data 
)

Definition at line 326 of file hdf4_utils.c.

◆ hdf_typename()

const char* hdf_typename ( const int32_t  ntype)

Definition at line 189 of file hdf4_utils.c.

◆ init_attlist()

int init_attlist ( sds_struct *  sds)

Definition at line 76 of file hdf4_utils.c.

◆ init_sds_byname()

int init_sds_byname ( int32_t  fileid,
const char *  sdsname,
sds_struct *  sds 
)

Definition at line 92 of file hdf4_utils.c.

◆ init_sdslist()

int init_sdslist ( int32_t  fileid,
const char *  sdsnames[],
sds_struct *  sdslist 
)

Definition at line 119 of file hdf4_utils.c.

◆ load_att()

int load_att ( int32_t  obj_id,
int32_t  index,
att_struct *  att 
)

Definition at line 8 of file hdf4_utils.c.

◆ load_att_byname()

int load_att_byname ( int32_t  obj_id,
const char *  attname,
att_struct *  att 
)

Definition at line 31 of file hdf4_utils.c.

◆ parse_odl()

int parse_odl ( const char *  odltext,
const char *  object,
char *  value 
)

Definition at line 274 of file hdf4_utils.c.

◆ print_att_info()

void print_att_info ( const att_struct  att)

Definition at line 37 of file hdf4_utils.c.

◆ print_att_vals()

void print_att_vals ( const att_struct  att)

Definition at line 50 of file hdf4_utils.c.

◆ print_sds_info()

void print_sds_info ( const sds_struct  s)

Definition at line 103 of file hdf4_utils.c.

◆ readall_sds()

int readall_sds ( sds_struct *  sds)

Definition at line 138 of file hdf4_utils.c.