|
FiberBundleHDF5
FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
|
Go to the source code of this file.
Functions | |
| F5_API int | F5Fopen_group_or_dataset (F5Path *f, const char *name, hid_t *gid, hid_t *did) |
| F5_API int | F5Fopen_or_create_group_or_dataset_attribute (F5Path *f, const char *attribute_name, hid_t gid, hid_t did, hsize_t N, hid_t type_id, int force, hid_t *space_id, hid_t *attr_id) |
| F5_DEPRECATED ("Function does not provide benefits over raw HDF5 call", F5_API int F5Fread_attr_data(void *data, hsize_t N, hid_t type_id, hid_t attr_id, const char *attribute_name)) | |
| F5_DEPRECATED ("Function does not provide benefits over raw HDF5 call", F5_API int F5Fwrite_attr_data(const void *data, hsize_t N, hid_t type_id, hid_t attr_id, const char *attribute_name)) | |
| F5_API int | F5Fget_attribute (F5Path *f, const char *attribute_name, void *data, hsize_t N, hid_t mem_type_id) |
| F5_API int | F5Fset_attribute (F5Path *f, const char *attribute_name, const void *data, hsize_t N, hid_t mem_type_id, int force) |
| F5_API int | F5Fget_fragment_attribute (F5Path *f, const char *fragment_name, const char *attribute_name, void *data, hsize_t N, hid_t mem_type_id) |
| F5_API int | F5Fset_fragment_attribute (F5Path *f, const char *fragment_name, const char *attribute_name, const void *data, hsize_t N, hid_t mem_type_id, int force) |
| F5_API int | F5Fset_string_attribute (F5Path *f, const char *fragment_name, const char *attribute_name, const char *text, int force) |
| F5_API int | F5Fget_string_attribute (F5Path *f, const char *fragment_name, const char *attribute_name, char **text) |
| F5_API int | F5Fhas_attribute (F5Path *f, const char *attr_name) |
| F5_API hssize_t | F5Fget_attribute_nr_elements (F5Path *f, const char *fragment_name, const char *attribute_name) |
| F5_API int | F5Fhas_fragment_attribute (F5Path *f, const char *fragment_name, const char *attribute_name) |
| F5_API int | F5Fis_attribute_of_type (F5Path *f, const char *attribute_name, hid_t HDF5_type) |
| F5_API int | F5Fis_fragment_attribute_of_type (F5Path *f, const char *attribute_name, const char *fragment_name, hid_t HDF5_type) |
| F5_API int | F5Fis_range_of_type (F5Path *f, const char *fragment_name, hid_t HDF5_type) |
| F5_API int | F5Fget_fragment_range_ghost (F5Path *f, const char *fragment_name, void *minmax, void *minmax_ghost, hid_t mem_type_id) |
| F5_API int | F5Fget_fragment_range_ghost2 (F5Path *f, const char *fragment_name, void *minmax_ghost) |
| F5_API int | F5Fset_fragment_range_ghost2 (F5Path *f, const char *fragment_name, const void *minmax, const void *minmax_ghost, unsigned force) |
| F5_API int | F5Fset_fragment_range_ghost (F5Path *f, const char *fragment_name, const void *minmax, const void *minmax_ghost) |
| F5_API int | F5Fget_fragment_ghost_size (F5Path *f, const char *fragment_name, unsigned long *size_real, unsigned long *size_ghost) |
| F5_API int | F5Fset_fragment_ghost_size (F5Path *f, const char *fragment_name, unsigned long size_real, unsigned long size_ghost, int force) |
| F5_API int | F5Fget_average (F5Path *f, const char *fragment_name, void *avg) |
| F5_API int | F5Fset_average2 (F5Path *f, const char *fragment_name, const void *avg, int force) |
| F5_API int | F5Fset_average (F5Path *f, const char *fragment_name, const void *avg) |
| F5_API int | F5Fget_deviation (F5Path *f, const char *fragment_name, void *dev) |
| F5_API int | F5Fset_deviation2 (F5Path *f, const char *fragment_name, const void *dev, int force) |
| F5_API int | F5Fset_deviation (F5Path *f, const char *fragment_name, const void *dev) |
| F5_API int | F5Fget_histogram (F5Path *f, const char *fragment_name, unsigned long *histogram, hsize_t size) |
| F5_API int | F5Fset_histogram2 (F5Path *f, const char *fragment_name, const unsigned long *his, hsize_t size, int force) |
| F5_API int | F5Fset_histogram (F5Path *f, const char *fragment_name, const unsigned long *his, hsize_t size) |
| F5_API int | F5Fset_original_type2 (F5Path *f, const char *fragment_name, int force) |
| F5_API int | F5Fset_dictionary2 (F5Path *f, const char *fragment_name, const char *dictionary, const F5_uint16_t *words, int word_count, int force) |
| F5_API int | F5Fset_dictionary (F5Path *f, const char *fragment_name, const char *dictionary, const F5_uint16_t *words, int word_count, int force) |
| F5_API int | F5Fget_dictionary (F5Path *f, const char *fragment_name, char **dictionary, F5_uint16_t *words, int word_count) |
| F5_API int | F5Fset_metric_unit_description (F5Path *f, const char *unit) |
| F5_DEPRECATED | ( | "Function does not provide benefits over raw HDF5 call" | , |
| F5_API int | F5Fread_attr_datavoid *data, hsize_t N, hid_t type_id, hid_t attr_id, const char *attribute_name ) |
References F5_API.
| F5_DEPRECATED | ( | "Function does not provide benefits over raw HDF5 call" | , |
| F5_API int | F5Fwrite_attr_dataconst void *data, hsize_t N, hid_t type_id, hid_t attr_id, const char *attribute_name ) |
References F5_API.
| F5_API int F5Fget_attribute | ( | F5Path * | f, |
| const char * | attribute_name, | ||
| void * | data, | ||
| hsize_t | N, | ||
| hid_t | mem_type_id ) |
Helper function. Retrieve an attribute of 2 values (e.g. 2 float, 2 doubles, 2 ints, 2 F5_vec3_float_t ... ) from a fragment.
Definition at line 191 of file F5Fmeta.c.
References F5_API, F5Fopen_group_or_dataset_attribute(), F5Fread_attr_data(), F5Path::Field_hid, and H5Tclose().
Referenced by F5Fget_average(), F5Fget_deviation(), F5Fget_dictionary(), and F5Fget_histogram().
| F5_API hssize_t F5Fget_attribute_nr_elements | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | attribute_name ) |
Definition at line 667 of file F5Fmeta.c.
References F5_API, F5Aopen_name(), F5Fopen_group_or_dataset(), F5printf, F5Path::Field_hid, and H5Gclose.
Field attribute (optional): The average value of a dataset.
Definition at line 781 of file F5Fmeta.c.
References F5_API, F5Fget_attribute(), F5Fget_fragment_attribute(), F5Fget_type(), FIBER_FIELD_COMPONENT_AVERAGE, and H5Tclose().
Field attribute (optional): The standard deviation of data values from a field's average value.
Definition at line 813 of file F5Fmeta.c.
References F5_API, F5Fget_attribute(), F5Fget_fragment_attribute(), F5Fget_type(), FIBER_FIELD_COMPONENT_DEVIATION, and H5Tclose().
| F5_API int F5Fget_dictionary | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| char ** | dictionary, | ||
| F5_uint16_t * | words, | ||
| int | word_count ) |
Dictionary string has to be passed by reference. Dynamic memory is reserved for the dictionary and must be released afterwards. e.g. : char* dict; F5Fget_dictionary(f, NULL, &dict, .. ); free(dictionary)
Definition at line 945 of file F5Fmeta.c.
References F5_API, F5Fget_attribute(), F5Fget_fragment_attribute(), F5Fget_string_attribute(), FIBER_FIELD_DICTIONARY, and FIBER_FIELD_DICTIONARY_WORDS.
| F5_API int F5Fget_fragment_attribute | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | attribute_name, | ||
| void * | data, | ||
| hsize_t | N, | ||
| hid_t | mem_type_id ) |
Definition at line 267 of file F5Fmeta.c.
References F5_API, F5Fopen_group_or_dataset(), F5Fopen_group_or_dataset_attribute(), F5Fread_attr_data(), F5printf, H5Gclose, and H5Tclose().
Referenced by F5Fget_average(), F5Fget_deviation(), F5Fget_dictionary(), F5Fget_fragment_ghost_size(), F5Fget_fragment_range_ghost(), F5Fget_fragment_range_ghost2(), and F5Fget_histogram().
| F5_API int F5Fget_fragment_ghost_size | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| unsigned long * | size_real, | ||
| unsigned long * | size_ghost ) |
If available a data-array icludes values of a ghost zone and the array is partitioned in two contiguous parts. The first part contains the values inside the fragment and has size size_real, the second part contains the value inside the ghost zone with size size_ghost.
Definition at line 554 of file F5Fmeta.c.
References F5_API, F5Fget_fragment_attribute(), and FIBER_FRAGMENT_ARRAY_SIZE_GHOST_ATTRIBUTE.
| F5_API int F5Fget_fragment_range_ghost | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| void * | minmax, | ||
| void * | minmax_ghost, | ||
| hid_t | mem_type_id ) |
Field attribute (optional): Bounding box including the ghost zone.
Definition at line 533 of file F5Fmeta.c.
References F5_API, F5Fget_fragment_attribute(), FIBER_FIELD_COMPONENT_RANGE, and FIBER_FIELD_COMPONENT_RANGE_GHOST.
| F5_API int F5Fget_fragment_range_ghost2 | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| void * | minmax_ghost ) |
Definition at line 545 of file F5Fmeta.c.
References F5_API, F5Fget_fragment_attribute(), F5Fget_type(), and FIBER_FIELD_COMPONENT_RANGE_GHOST.
| F5_API int F5Fget_histogram | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| unsigned long * | histogram, | ||
| hsize_t | size ) |
Field attribute (optional): The histogram of a scalar field.
Definition at line 846 of file F5Fmeta.c.
References F5_API, F5Fget_attribute(), F5Fget_fragment_attribute(), and FIBER_FIELD_COMPONENT_HISTOGRAM.
| F5_API int F5Fget_string_attribute | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | attribute_name, | ||
| char ** | text ) |
Definition at line 425 of file F5Fmeta.c.
References F5_API, F5Fis_group(), F5Fopen_group_or_dataset_attribute(), F5printf, F5Path::Field_hid, and H5Tclose().
Referenced by F5Fget_dictionary().
Test whether a field attribute exists or not
Definition at line 646 of file F5Fmeta.c.
References F5_API, F5printf, and F5Path::Field_hid.
| F5_API int F5Fhas_fragment_attribute | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | attribute_name ) |
Test whether a field fragment attribute exists or not
Definition at line 732 of file F5Fmeta.c.
References F5_API, F5printf, F5Path::Field_hid, and H5Gclose.
Definition at line 577 of file F5Fmeta.c.
References F5_API, F5Aget_type(), F5printf, F5Path::Field_hid, and H5Tclose().
Referenced by F5Fis_range_of_type().
| F5_API int F5Fis_fragment_attribute_of_type | ( | F5Path * | f, |
| const char * | attribute_name, | ||
| const char * | fragment_name, | ||
| hid_t | HDF5_type ) |
Definition at line 611 of file F5Fmeta.c.
References F5_API, F5Aget_type(), F5Fopen_group_or_dataset(), F5printf, H5Gclose, and H5Tclose().
Referenced by F5Fis_range_of_type().
Test if range attribute is of certain type
Definition at line 602 of file F5Fmeta.c.
References F5_API, F5Fis_attribute_of_type(), F5Fis_fragment_attribute_of_type(), and FIBER_FIELD_COMPONENT_RANGE.
Definition at line 26 of file F5Fmeta.c.
References F5_API, F5printf, F5Path::Field_hid, and name.
Referenced by F5Fget_attribute_nr_elements(), F5Fget_fragment_attribute(), F5Fis_fragment_attribute_of_type(), and F5Fset_fragment_attribute().
| F5_API int F5Fopen_or_create_group_or_dataset_attribute | ( | F5Path * | f, |
| const char * | attribute_name, | ||
| hid_t | gid, | ||
| hid_t | did, | ||
| hsize_t | N, | ||
| hid_t | type_id, | ||
| int | force, | ||
| hid_t * | space_id, | ||
| hid_t * | attr_id ) |
Definition at line 117 of file F5Fmeta.c.
References F5_API, F5Fopen_group_or_dataset_attribute(), F5printf, and H5Tclose().
Referenced by F5Fset_attribute(), F5Fset_fragment_attribute(), and F5Fset_string_attribute().
| F5_API int F5Fset_attribute | ( | F5Path * | f, |
| const char * | attribute_name, | ||
| const void * | data, | ||
| hsize_t | N, | ||
| hid_t | mem_type_id, | ||
| int | force ) |
Definition at line 216 of file F5Fmeta.c.
References F5_API, F5Fis_group(), F5Fopen_or_create_group_or_dataset_attribute(), F5Fwrite_attr_data(), F5printf, F5Path::Field_hid, and H5Tclose().
Referenced by F5Fset_average2(), F5Fset_deviation2(), F5Fset_dictionary2(), F5Fset_histogram2(), F5Fset_original_type2(), and F5Rcreate_uniform_sparse2().
Definition at line 808 of file F5Fmeta.c.
References F5_API, and F5Fset_average2().
Referenced by F5Rcreate_uniform_cartesian3D(), and F5Rcreate_uniform_cartesian3Dbbox().
Definition at line 794 of file F5Fmeta.c.
References F5_API, F5Fget_type(), F5Fset_attribute(), F5Fset_fragment_attribute(), FIBER_FIELD_COMPONENT_AVERAGE, and H5Tclose().
Referenced by F5Fset_average().
Definition at line 841 of file F5Fmeta.c.
References F5_API, and F5Fset_deviation2().
| F5_API int F5Fset_deviation2 | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const void * | dev, | ||
| int | force ) |
Definition at line 826 of file F5Fmeta.c.
References F5_API, F5Fget_type(), F5Fset_attribute(), F5Fset_fragment_attribute(), FIBER_FIELD_COMPONENT_DEVIATION, and H5Tclose().
Referenced by F5Fset_deviation().
| F5_API int F5Fset_dictionary | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | dictionary, | ||
| const F5_uint16_t * | words, | ||
| int | word_count, | ||
| int | force ) |
Definition at line 940 of file F5Fmeta.c.
References F5_API, and F5Fset_dictionary2().
| F5_API int F5Fset_dictionary2 | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | dictionary, | ||
| const F5_uint16_t * | words, | ||
| int | word_count, | ||
| int | force ) |
Field attribute (optional): A dictionary of words and a stored as string attribute, along with a seperator i.e. used for a field containing integer indeces into the dictionary (label-field) The get function does not allocate the string buffers
Definition at line 915 of file F5Fmeta.c.
References F5_API, F5Fset_attribute(), F5Fset_fragment_attribute(), F5Fset_string_attribute(), FIBER_FIELD_DICTIONARY, and FIBER_FIELD_DICTIONARY_WORDS.
Referenced by F5Fset_dictionary().
| F5_API int F5Fset_fragment_attribute | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | attribute_name, | ||
| const void * | data, | ||
| hsize_t | N, | ||
| hid_t | mem_type_id, | ||
| int | force ) |
Definition at line 300 of file F5Fmeta.c.
References F5_API, F5Fopen_group_or_dataset(), F5Fopen_or_create_group_or_dataset_attribute(), F5Fwrite_attr_data(), F5printf, F5Path::Field_hid, H5Gclose, and H5Tclose().
Referenced by F5Fset_average2(), F5Fset_deviation2(), F5Fset_dictionary2(), F5Fset_fragment_ghost_size(), F5Fset_fragment_range_ghost2(), F5Fset_histogram2(), and F5Fset_original_type2().
| F5_API int F5Fset_fragment_ghost_size | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| unsigned long | size_real, | ||
| unsigned long | size_ghost, | ||
| int | force ) |
Definition at line 568 of file F5Fmeta.c.
References F5_API, F5Fset_fragment_attribute(), and FIBER_FRAGMENT_ARRAY_SIZE_GHOST_ATTRIBUTE.
| F5_API int F5Fset_fragment_range_ghost | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const void * | minmax, | ||
| const void * | minmax_ghost ) |
Definition at line 528 of file F5Fmeta.c.
References F5_API, and F5Fset_fragment_range_ghost2().
| F5_API int F5Fset_fragment_range_ghost2 | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const void * | minmax, | ||
| const void * | minmax_ghost, | ||
| unsigned | force ) |
Definition at line 514 of file F5Fmeta.c.
References F5_API, F5Fget_type(), F5Fset_fragment_attribute(), FIBER_FIELD_COMPONENT_RANGE, FIBER_FIELD_COMPONENT_RANGE_GHOST, and H5Tclose().
Referenced by F5Fset_fragment_range_ghost().
| F5_API int F5Fset_histogram | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const unsigned long * | his, | ||
| hsize_t | size ) |
Definition at line 862 of file F5Fmeta.c.
References F5_API, and F5Fset_histogram2().
| F5_API int F5Fset_histogram2 | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const unsigned long * | his, | ||
| hsize_t | size, | ||
| int | force ) |
Definition at line 854 of file F5Fmeta.c.
References F5_API, F5Fset_attribute(), F5Fset_fragment_attribute(), and FIBER_FIELD_COMPONENT_HISTOGRAM.
Referenced by F5Fset_histogram().
Adds a string attribute to describe units to a data field. The F5Path must contain a valid Field_hid identifier, which2 may be either a group or a dataset. This function will set an attribute named F5_METRIC_UNIT_DESCRIPTION to the given object, which can be an arbitrary string.
Definition at line 967 of file F5Fmeta.c.
References F5_API, F5_METRIC_UNIT_DESCRIPTION, and F5Fset_string_attribute().
Referenced by F5write_particle_cartesian3DvU().
Definition at line 867 of file F5Fmeta.c.
References F5_API, F5Fget_type(), F5Fset_attribute(), F5Fset_fragment_attribute(), F5T_BIVEC3_DOUBLE, F5T_BIVEC3_FLOAT, F5T_COORD3_DOUBLE, F5T_COORD3_FLOAT, F5T_METRIC33_DOUBLE, F5T_VEC3_DOUBLE, F5T_VEC3_FLOAT, FIBER_FIELD_ORIGIANL_TYPE, and H5Tclose().
| F5_API int F5Fset_string_attribute | ( | F5Path * | f, |
| const char * | fragment_name, | ||
| const char * | attribute_name, | ||
| const char * | text, | ||
| int | force ) |
Definition at line 350 of file F5Fmeta.c.
References F5_API, F5Fis_group(), F5Fopen_or_create_group_or_dataset_attribute(), F5printf, F5Path::Field_hid, and H5Tclose().
Referenced by F5Fset_dictionary2(), and F5Fset_metric_unit_description().