MISR Toolkit  1.5.1
Data Structures | Macros | Typedefs | Functions | Variables
h5tools.h File Reference
#include "hdf5.h"
#include "h5tools_error.h"
#include "h5tools_str.h"

Go to the source code of this file.

Data Structures

struct  h5tools_dump_header_t
 
struct  h5tool_format_t
 
struct  h5tools_context_t
 
struct  subset_d
 
struct  subset_t
 

Macros

#define ESCAPE_HTML   1
 
#define OPT(X, S)   ((X) ? (X) : (S))
 
#define OPTIONAL_LINE_BREAK   "\001" /* Special strings embedded in the output */
 
#define START_OF_DATA   0x0001
 
#define END_OF_DATA   0x0002
 
#define HSIZE_T_FORMAT   "%" H5_PRINTF_LL_WIDTH "u"
 
#define H5TOOLS_DUMP_MAX_RANK   H5S_MAX_RANK
 
#define FLUSHSTREAM(S)   if(S != NULL) HDfflush(S)
 
#define PRINTSTREAM(S, F, ...)   if(S != NULL) HDfprintf(S, F, __VA_ARGS__)
 
#define PRINTVALSTREAM(S, V)   if(S != NULL) HDfprintf(S, V)
 
#define PUTSTREAM(X, S)   do { if(S != NULL) HDfputs(X, S); } while(0)
 
#define ATTRIBUTE   "ATTRIBUTE"
 
#define BLOCK   "BLOCK"
 
#define SUPER_BLOCK   "SUPER_BLOCK"
 
#define COMPRESSION   "COMPRESSION"
 
#define CONCATENATOR   "//"
 
#define COMPLEX   "COMPLEX"
 
#define COUNT   "COUNT"
 
#define CSET   "CSET"
 
#define CTYPE   "CTYPE"
 
#define DATA   "DATA"
 
#define DATASPACE   "DATASPACE"
 
#define EXTERNAL   "EXTERNAL"
 
#define FILENO   "FILENO"
 
#define HARDLINK   "HARDLINK"
 
#define NLINK   "NLINK"
 
#define OBJID   "OBJECTID"
 
#define OBJNO   "OBJNO"
 
#define S_SCALAR   "SCALAR"
 
#define S_SIMPLE   "SIMPLE"
 
#define S_NULL   "NULL"
 
#define SOFTLINK   "SOFTLINK"
 
#define EXTLINK   "EXTERNAL_LINK"
 
#define UDLINK   "USERDEFINED_LINK"
 
#define START   "START"
 
#define STRIDE   "STRIDE"
 
#define STRSIZE   "STRSIZE"
 
#define STRPAD   "STRPAD"
 
#define SUBSET   "SUBSET"
 
#define FILTERS   "FILTERS"
 
#define DEFLATE   "COMPRESSION DEFLATE"
 
#define DEFLATE_LEVEL   "LEVEL"
 
#define SHUFFLE   "PREPROCESSING SHUFFLE"
 
#define FLETCHER32   "CHECKSUM FLETCHER32"
 
#define SZIP   "COMPRESSION SZIP"
 
#define NBIT   "COMPRESSION NBIT"
 
#define SCALEOFFSET   "COMPRESSION SCALEOFFSET"
 
#define SCALEOFFSET_MINBIT   "MIN BITS"
 
#define STORAGE_LAYOUT   "STORAGE_LAYOUT"
 
#define CONTIGUOUS   "CONTIGUOUS"
 
#define COMPACT   "COMPACT"
 
#define CHUNKED   "CHUNKED"
 
#define EXTERNAL_FILE   "EXTERNAL_FILE"
 
#define FILLVALUE   "FILLVALUE"
 
#define FILE_CONTENTS   "FILE_CONTENTS"
 
#define PACKED_BITS   "PACKED_BITS"
 
#define PACKED_OFFSET   "OFFSET"
 
#define PACKED_LENGTH   "LENGTH"
 
#define BEGIN   "{"
 
#define END   "}"
 
#define H5_TOOLS_GROUP   "GROUP"
 
#define H5_TOOLS_DATASET   "DATASET"
 
#define H5_TOOLS_DATATYPE   "DATATYPE"
 

Typedefs

typedef struct h5tools_dump_header_t h5tools_dump_header_t
 
typedef struct h5tool_format_t h5tool_format_t
 
typedef struct h5tools_context_t h5tools_context_t
 
typedef struct subset_d subset_d
 

Functions

H5TOOLS_DLL void h5tools_init (void)
 
H5TOOLS_DLL void h5tools_close (void)
 
H5TOOLS_DLL int h5tools_set_data_output_file (const char *fname, int is_bin)
 
H5TOOLS_DLL int h5tools_set_attr_output_file (const char *fname, int is_bin)
 
H5TOOLS_DLL int h5tools_set_input_file (const char *fname, int is_bin)
 
H5TOOLS_DLL int h5tools_set_output_file (const char *fname, int is_bin)
 
H5TOOLS_DLL int h5tools_set_error_file (const char *fname, int is_bin)
 
H5TOOLS_DLL hid_t h5tools_fopen (const char *fname, unsigned flags, hid_t fapl, const char *driver, char *drivername, size_t drivername_len)
 
H5TOOLS_DLL hid_t h5tools_get_little_endian_type (hid_t type)
 
H5TOOLS_DLL hid_t h5tools_get_big_endian_type (hid_t type)
 
H5TOOLS_DLL htri_t h5tools_detect_vlen (hid_t tid)
 
H5TOOLS_DLL htri_t h5tools_detect_vlen_str (hid_t tid)
 
H5TOOLS_DLL hbool_t h5tools_is_obj_same (hid_t loc_id1, const char *name1, hid_t loc_id2, const char *name2)
 
H5TOOLS_DLL void init_acc_pos (h5tools_context_t *ctx, hsize_t *dims)
 
H5TOOLS_DLL hbool_t h5tools_is_zero (const void *_mem, size_t size)
 
H5TOOLS_DLL int h5tools_canreadf (const char *name, hid_t dcpl_id)
 
H5TOOLS_DLL int h5tools_can_encode (H5Z_filter_t filtn)
 
H5TOOLS_DLL void h5tools_simple_prefix (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hsize_t elmtno, int secnum)
 
H5TOOLS_DLL void h5tools_region_simple_prefix (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hsize_t elmtno, hsize_t *ptdata, int secnum)
 
H5TOOLS_DLL int render_bin_output (FILE *stream, hid_t container, hid_t tid, void *_mem, hsize_t nelmts)
 
H5TOOLS_DLL int render_bin_output_region_data_blocks (hid_t region_id, FILE *stream, hid_t container, unsigned ndims, hid_t type_id, hsize_t nblocks, hsize_t *ptdata)
 
H5TOOLS_DLL hbool_t render_bin_output_region_blocks (hid_t region_space, hid_t region_id, FILE *stream, hid_t container)
 
H5TOOLS_DLL int render_bin_output_region_data_points (hid_t region_space, hid_t region_id, FILE *stream, hid_t container, unsigned ndims, hid_t type_id, hsize_t npoints)
 
H5TOOLS_DLL hbool_t render_bin_output_region_points (hid_t region_space, hid_t region_id, FILE *stream, hid_t container)
 
H5TOOLS_DLL hbool_t h5tools_render_element (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, h5tools_str_t *buffer, hsize_t *curr_pos, size_t ncols, hsize_t local_elmt_counter, hsize_t elmt_counter)
 
H5TOOLS_DLL hbool_t h5tools_render_region_element (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, h5tools_str_t *buffer, hsize_t *curr_pos, size_t ncols, hsize_t *ptdata, hsize_t local_elmt_counter, hsize_t elmt_counter)
 

Variables

H5TOOLS_DLLVAR h5tool_format_t h5tools_dataformat
 
H5TOOLS_DLLVAR const h5tools_dump_header_t h5tools_standardformat
 
H5TOOLS_DLLVAR const h5tools_dump_header_th5tools_dump_header_format
 
H5TOOLS_DLLVAR unsigned packed_bits_num
 
H5TOOLS_DLLVAR unsigned packed_data_offset
 
H5TOOLS_DLLVAR unsigned packed_data_length
 
H5TOOLS_DLLVAR unsigned long long packed_data_mask
 
H5TOOLS_DLLVAR FILE * rawattrstream
 
H5TOOLS_DLLVAR FILE * rawdatastream
 
H5TOOLS_DLLVAR FILE * rawinstream
 
H5TOOLS_DLLVAR FILE * rawoutstream
 
H5TOOLS_DLLVAR FILE * rawerrorstream
 
H5TOOLS_DLLVAR int bin_output
 
H5TOOLS_DLLVAR int bin_form
 
H5TOOLS_DLLVAR int region_output
 
H5TOOLS_DLLVAR int oid_output
 
H5TOOLS_DLLVAR int data_output
 
H5TOOLS_DLLVAR int attr_data_output
 
H5TOOLS_DLLVAR H5_index_t sort_by
 
H5TOOLS_DLLVAR H5_iter_order_t sort_order
 
H5TOOLS_DLLVAR int enable_error_stack
 

Macro Definition Documentation

◆ ATTRIBUTE

#define ATTRIBUTE   "ATTRIBUTE"

Definition at line 47 of file h5tools.h.

◆ BEGIN

#define BEGIN   "{"

Definition at line 95 of file h5tools.h.

◆ BLOCK

#define BLOCK   "BLOCK"

Definition at line 48 of file h5tools.h.

◆ CHUNKED

#define CHUNKED   "CHUNKED"

Definition at line 87 of file h5tools.h.

◆ COMPACT

#define COMPACT   "COMPACT"

Definition at line 86 of file h5tools.h.

◆ COMPLEX

#define COMPLEX   "COMPLEX"

Definition at line 52 of file h5tools.h.

◆ COMPRESSION

#define COMPRESSION   "COMPRESSION"

Definition at line 50 of file h5tools.h.

◆ CONCATENATOR

#define CONCATENATOR   "//"

Definition at line 51 of file h5tools.h.

◆ CONTIGUOUS

#define CONTIGUOUS   "CONTIGUOUS"

Definition at line 85 of file h5tools.h.

◆ COUNT

#define COUNT   "COUNT"

Definition at line 53 of file h5tools.h.

◆ CSET

#define CSET   "CSET"

Definition at line 54 of file h5tools.h.

◆ CTYPE

#define CTYPE   "CTYPE"

Definition at line 55 of file h5tools.h.

◆ DATA

#define DATA   "DATA"

Definition at line 56 of file h5tools.h.

◆ DATASPACE

#define DATASPACE   "DATASPACE"

Definition at line 57 of file h5tools.h.

◆ DEFLATE

#define DEFLATE   "COMPRESSION DEFLATE"

Definition at line 76 of file h5tools.h.

◆ DEFLATE_LEVEL

#define DEFLATE_LEVEL   "LEVEL"

Definition at line 77 of file h5tools.h.

◆ END

#define END   "}"

Definition at line 96 of file h5tools.h.

◆ END_OF_DATA

#define END_OF_DATA   0x0002

Definition at line 30 of file h5tools.h.

◆ ESCAPE_HTML

#define ESCAPE_HTML   1

Definition at line 26 of file h5tools.h.

◆ EXTERNAL

#define EXTERNAL   "EXTERNAL"

Definition at line 58 of file h5tools.h.

◆ EXTERNAL_FILE

#define EXTERNAL_FILE   "EXTERNAL_FILE"

Definition at line 88 of file h5tools.h.

◆ EXTLINK

#define EXTLINK   "EXTERNAL_LINK"

Definition at line 68 of file h5tools.h.

◆ FILE_CONTENTS

#define FILE_CONTENTS   "FILE_CONTENTS"

Definition at line 90 of file h5tools.h.

◆ FILENO

#define FILENO   "FILENO"

Definition at line 59 of file h5tools.h.

◆ FILLVALUE

#define FILLVALUE   "FILLVALUE"

Definition at line 89 of file h5tools.h.

◆ FILTERS

#define FILTERS   "FILTERS"

Definition at line 75 of file h5tools.h.

◆ FLETCHER32

#define FLETCHER32   "CHECKSUM FLETCHER32"

Definition at line 79 of file h5tools.h.

◆ FLUSHSTREAM

#define FLUSHSTREAM (   S)    if(S != NULL) HDfflush(S)

Definition at line 38 of file h5tools.h.

◆ H5_TOOLS_DATASET

#define H5_TOOLS_DATASET   "DATASET"

Definition at line 552 of file h5tools.h.

◆ H5_TOOLS_DATATYPE

#define H5_TOOLS_DATATYPE   "DATATYPE"

Definition at line 553 of file h5tools.h.

◆ H5_TOOLS_GROUP

#define H5_TOOLS_GROUP   "GROUP"

Definition at line 551 of file h5tools.h.

◆ H5TOOLS_DUMP_MAX_RANK

#define H5TOOLS_DUMP_MAX_RANK   H5S_MAX_RANK

Definition at line 35 of file h5tools.h.

◆ HARDLINK

#define HARDLINK   "HARDLINK"

Definition at line 60 of file h5tools.h.

◆ HSIZE_T_FORMAT

#define HSIZE_T_FORMAT   "%" H5_PRINTF_LL_WIDTH "u"

Definition at line 33 of file h5tools.h.

◆ NBIT

#define NBIT   "COMPRESSION NBIT"

Definition at line 81 of file h5tools.h.

◆ NLINK

#define NLINK   "NLINK"

Definition at line 61 of file h5tools.h.

◆ OBJID

#define OBJID   "OBJECTID"

Definition at line 62 of file h5tools.h.

◆ OBJNO

#define OBJNO   "OBJNO"

Definition at line 63 of file h5tools.h.

◆ OPT

#define OPT (   X,
 
)    ((X) ? (X) : (S))

Definition at line 27 of file h5tools.h.

◆ OPTIONAL_LINE_BREAK

#define OPTIONAL_LINE_BREAK   "\001" /* Special strings embedded in the output */

Definition at line 28 of file h5tools.h.

◆ PACKED_BITS

#define PACKED_BITS   "PACKED_BITS"

Definition at line 91 of file h5tools.h.

◆ PACKED_LENGTH

#define PACKED_LENGTH   "LENGTH"

Definition at line 93 of file h5tools.h.

◆ PACKED_OFFSET

#define PACKED_OFFSET   "OFFSET"

Definition at line 92 of file h5tools.h.

◆ PRINTSTREAM

#define PRINTSTREAM (   S,
  F,
  ... 
)    if(S != NULL) HDfprintf(S, F, __VA_ARGS__)

Definition at line 39 of file h5tools.h.

◆ PRINTVALSTREAM

#define PRINTVALSTREAM (   S,
 
)    if(S != NULL) HDfprintf(S, V)

Definition at line 40 of file h5tools.h.

◆ PUTSTREAM

#define PUTSTREAM (   X,
 
)    do { if(S != NULL) HDfputs(X, S); } while(0)

Definition at line 41 of file h5tools.h.

◆ S_NULL

#define S_NULL   "NULL"

Definition at line 66 of file h5tools.h.

◆ S_SCALAR

#define S_SCALAR   "SCALAR"

Definition at line 64 of file h5tools.h.

◆ S_SIMPLE

#define S_SIMPLE   "SIMPLE"

Definition at line 65 of file h5tools.h.

◆ SCALEOFFSET

#define SCALEOFFSET   "COMPRESSION SCALEOFFSET"

Definition at line 82 of file h5tools.h.

◆ SCALEOFFSET_MINBIT

#define SCALEOFFSET_MINBIT   "MIN BITS"

Definition at line 83 of file h5tools.h.

◆ SHUFFLE

#define SHUFFLE   "PREPROCESSING SHUFFLE"

Definition at line 78 of file h5tools.h.

◆ SOFTLINK

#define SOFTLINK   "SOFTLINK"

Definition at line 67 of file h5tools.h.

◆ START

#define START   "START"

Definition at line 70 of file h5tools.h.

◆ START_OF_DATA

#define START_OF_DATA   0x0001

Definition at line 29 of file h5tools.h.

◆ STORAGE_LAYOUT

#define STORAGE_LAYOUT   "STORAGE_LAYOUT"

Definition at line 84 of file h5tools.h.

◆ STRIDE

#define STRIDE   "STRIDE"

Definition at line 71 of file h5tools.h.

◆ STRPAD

#define STRPAD   "STRPAD"

Definition at line 73 of file h5tools.h.

◆ STRSIZE

#define STRSIZE   "STRSIZE"

Definition at line 72 of file h5tools.h.

◆ SUBSET

#define SUBSET   "SUBSET"

Definition at line 74 of file h5tools.h.

◆ SUPER_BLOCK

#define SUPER_BLOCK   "SUPER_BLOCK"

Definition at line 49 of file h5tools.h.

◆ SZIP

#define SZIP   "COMPRESSION SZIP"

Definition at line 80 of file h5tools.h.

◆ UDLINK

#define UDLINK   "USERDEFINED_LINK"

Definition at line 69 of file h5tools.h.

Typedef Documentation

◆ h5tool_format_t

◆ h5tools_context_t

◆ h5tools_dump_header_t

◆ subset_d

typedef struct subset_d subset_d

Function Documentation

◆ h5tools_can_encode()

H5TOOLS_DLL int h5tools_can_encode ( H5Z_filter_t  filtn)

◆ h5tools_canreadf()

H5TOOLS_DLL int h5tools_canreadf ( const char *  name,
hid_t  dcpl_id 
)

◆ h5tools_close()

H5TOOLS_DLL void h5tools_close ( void  )

◆ h5tools_detect_vlen()

H5TOOLS_DLL htri_t h5tools_detect_vlen ( hid_t  tid)

◆ h5tools_detect_vlen_str()

H5TOOLS_DLL htri_t h5tools_detect_vlen_str ( hid_t  tid)

◆ h5tools_fopen()

H5TOOLS_DLL hid_t h5tools_fopen ( const char *  fname,
unsigned  flags,
hid_t  fapl,
const char *  driver,
char *  drivername,
size_t  drivername_len 
)

◆ h5tools_get_big_endian_type()

H5TOOLS_DLL hid_t h5tools_get_big_endian_type ( hid_t  type)

◆ h5tools_get_little_endian_type()

H5TOOLS_DLL hid_t h5tools_get_little_endian_type ( hid_t  type)

◆ h5tools_init()

H5TOOLS_DLL void h5tools_init ( void  )

◆ h5tools_is_obj_same()

H5TOOLS_DLL hbool_t h5tools_is_obj_same ( hid_t  loc_id1,
const char *  name1,
hid_t  loc_id2,
const char *  name2 
)

◆ h5tools_is_zero()

H5TOOLS_DLL hbool_t h5tools_is_zero ( const void *  _mem,
size_t  size 
)

◆ h5tools_region_simple_prefix()

H5TOOLS_DLL void h5tools_region_simple_prefix ( FILE *  stream,
const h5tool_format_t info,
h5tools_context_t ctx,
hsize_t  elmtno,
hsize_t ptdata,
int  secnum 
)

◆ h5tools_render_element()

H5TOOLS_DLL hbool_t h5tools_render_element ( FILE *  stream,
const h5tool_format_t info,
h5tools_context_t ctx,
h5tools_str_t buffer,
hsize_t curr_pos,
size_t  ncols,
hsize_t  local_elmt_counter,
hsize_t  elmt_counter 
)

◆ h5tools_render_region_element()

H5TOOLS_DLL hbool_t h5tools_render_region_element ( FILE *  stream,
const h5tool_format_t info,
h5tools_context_t ctx,
h5tools_str_t buffer,
hsize_t curr_pos,
size_t  ncols,
hsize_t ptdata,
hsize_t  local_elmt_counter,
hsize_t  elmt_counter 
)

◆ h5tools_set_attr_output_file()

H5TOOLS_DLL int h5tools_set_attr_output_file ( const char *  fname,
int  is_bin 
)

◆ h5tools_set_data_output_file()

H5TOOLS_DLL int h5tools_set_data_output_file ( const char *  fname,
int  is_bin 
)

◆ h5tools_set_error_file()

H5TOOLS_DLL int h5tools_set_error_file ( const char *  fname,
int  is_bin 
)

◆ h5tools_set_input_file()

H5TOOLS_DLL int h5tools_set_input_file ( const char *  fname,
int  is_bin 
)

◆ h5tools_set_output_file()

H5TOOLS_DLL int h5tools_set_output_file ( const char *  fname,
int  is_bin 
)

◆ h5tools_simple_prefix()

H5TOOLS_DLL void h5tools_simple_prefix ( FILE *  stream,
const h5tool_format_t info,
h5tools_context_t ctx,
hsize_t  elmtno,
int  secnum 
)

◆ init_acc_pos()

H5TOOLS_DLL void init_acc_pos ( h5tools_context_t ctx,
hsize_t dims 
)

◆ render_bin_output()

H5TOOLS_DLL int render_bin_output ( FILE *  stream,
hid_t  container,
hid_t  tid,
void *  _mem,
hsize_t  nelmts 
)

◆ render_bin_output_region_blocks()

H5TOOLS_DLL hbool_t render_bin_output_region_blocks ( hid_t  region_space,
hid_t  region_id,
FILE *  stream,
hid_t  container 
)

◆ render_bin_output_region_data_blocks()

H5TOOLS_DLL int render_bin_output_region_data_blocks ( hid_t  region_id,
FILE *  stream,
hid_t  container,
unsigned  ndims,
hid_t  type_id,
hsize_t  nblocks,
hsize_t ptdata 
)

◆ render_bin_output_region_data_points()

H5TOOLS_DLL int render_bin_output_region_data_points ( hid_t  region_space,
hid_t  region_id,
FILE *  stream,
hid_t  container,
unsigned  ndims,
hid_t  type_id,
hsize_t  npoints 
)

◆ render_bin_output_region_points()

H5TOOLS_DLL hbool_t render_bin_output_region_points ( hid_t  region_space,
hid_t  region_id,
FILE *  stream,
hid_t  container 
)

Variable Documentation

◆ attr_data_output

H5TOOLS_DLLVAR int attr_data_output

Definition at line 541 of file h5tools.h.

◆ bin_form

H5TOOLS_DLLVAR int bin_form

Definition at line 537 of file h5tools.h.

◆ bin_output

H5TOOLS_DLLVAR int bin_output

Definition at line 536 of file h5tools.h.

◆ data_output

H5TOOLS_DLLVAR int data_output

Definition at line 540 of file h5tools.h.

◆ enable_error_stack

H5TOOLS_DLLVAR int enable_error_stack

Definition at line 548 of file h5tools.h.

◆ h5tools_dataformat

H5TOOLS_DLLVAR h5tool_format_t h5tools_dataformat

Definition at line 519 of file h5tools.h.

◆ h5tools_dump_header_format

H5TOOLS_DLLVAR const h5tools_dump_header_t* h5tools_dump_header_format

Definition at line 521 of file h5tools.h.

◆ h5tools_standardformat

H5TOOLS_DLLVAR const h5tools_dump_header_t h5tools_standardformat

Definition at line 520 of file h5tools.h.

◆ oid_output

H5TOOLS_DLLVAR int oid_output

Definition at line 539 of file h5tools.h.

◆ packed_bits_num

H5TOOLS_DLLVAR unsigned packed_bits_num

Definition at line 527 of file h5tools.h.

◆ packed_data_length

H5TOOLS_DLLVAR unsigned packed_data_length

Definition at line 529 of file h5tools.h.

◆ packed_data_mask

H5TOOLS_DLLVAR unsigned long long packed_data_mask

Definition at line 530 of file h5tools.h.

◆ packed_data_offset

H5TOOLS_DLLVAR unsigned packed_data_offset

Definition at line 528 of file h5tools.h.

◆ rawattrstream

H5TOOLS_DLLVAR FILE* rawattrstream

Definition at line 531 of file h5tools.h.

◆ rawdatastream

H5TOOLS_DLLVAR FILE* rawdatastream

Definition at line 532 of file h5tools.h.

◆ rawerrorstream

H5TOOLS_DLLVAR FILE* rawerrorstream

Definition at line 535 of file h5tools.h.

◆ rawinstream

H5TOOLS_DLLVAR FILE* rawinstream

Definition at line 533 of file h5tools.h.

◆ rawoutstream

H5TOOLS_DLLVAR FILE* rawoutstream

Definition at line 534 of file h5tools.h.

◆ region_output

H5TOOLS_DLLVAR int region_output

Definition at line 538 of file h5tools.h.

◆ sort_by

Definition at line 544 of file h5tools.h.

◆ sort_order

Definition at line 545 of file h5tools.h.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:54