API Reference Manual
The H4toH5 Conversion Library, generally referred to as the H4toH5 library, provides functions for the conversion of HDF4 data structures and objects to corresponding HDF5 data structures and objects.
Alphabetical Listing
General functions
- Name:
H4toH5open- Signature:
-
hid_t
H4toH5open(char *H4file_name,char *H5file_name,intaccess) - Purpose:
- Initializes the H4toH5 library interface.
- Description:
-
H4toH5openinitializes the H4toH5 library to convert data from one HDF4 file to one HDF5 file. Either this function orH4toH5open_idmust be the first H4toH5 library function called in an application.If
H5file_nameis set to NULL, the HDF5 filename will be similar to the HDF4 filename, but with the extension.h5.The access flag specifies whether an existing HDF5 file is to be overwritten.
The h4toh5 identifier returned by this function must be released with
H4toH5closeor resource leaks will develop. - Parameters:
H425_CREATE(or 1)- Create a new HDF5 file; if the file already exists, the function will fail.
H425_OPEN(or 3)- Open an existing HDF5 file with read and write permission; if the file does not already exist, create a new HDF5 file.
H425_CLOBBER(or 3)- If an HDF5 file of the same name already exists, truncate it, i.e., clobber it, and overwrite it with the new file; if the file does not already exist, create a new file.
char * H4file_nameIN: HDF4 filename, the source file char * H5file_nameIN: HDF5 filename, the target file int accessIN: The file access flag for the HDF5 file. May contain any one of the following values: accesscontains any value other than the above,H425_CLOBBERis assumed.- Returns:
- Returns an h4toh5 identifier if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5open_id- Signature:
- hid_t
H4toH5open_id(char *H4file_name, hid_tfile5_id) - Purpose:
- Initializes the H4toH5 library interface.
- Description:
H4toH5open_idinitializes the H4toH5 library to convert data from one HDF4 file to one HDF5 file. Either this function orH4toH5openmust be the first H4toH5 library function called in an application.In contrast to
H4toH5open, a user must first create or open an HDF5 file and optionally specify an HDF5 file property list for that file before passing an HDF5 file identifier to this function.The h4toh5 identifier returned by this function must be released with
H4toH5closeor resource leaks will develop.- Parameters:
char * H4file_nameIN: HDF4 filename hid_t file5_idIN: HDF5 file identifier - Returns:
- Returns an h4toh5 identifier if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5close- Signature:
- int
H4toH5close(hid_th5toh5id) - Purpose:
- Terminates access to the H4toH5 library.
- Description:
H4toH5closecloses all HDF4 and HDF5 object interfaces internally opened by the H4toH5 library and terminates access to the H4toH5 library.A user application should close all HDF4 and HDF5 object interfaces opened by that application.
- Parameters:
hid_t h4toh5id IN: h4toh5 identifier - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Global attributes
- Name:
H4toH5glo_sds_attr- Signature:
- int
H4toH5glo_sds_attr(hid_th4toh5id) - Purpose:
- Converts all HDF4 SD interface attributes to attributes of the HDF5 root
group.
- Description:
H4toH5glo_sds_attrconverts all global SD interface attributes to attributes of the HDF5 root group. The HDF5 attribute names will consist of the prefix GLOSDS_ appended to the HDF4 attribute names.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5glo_image_attr- Signature:
- int
H4toH5glo_image_attr(hid_th4toh5id) - Purpose:
- Converts all HDF4 GR interface attributes to attributes of the HDF5 root group.
- Description:
H4toH5glo_image_attrconverts all GR interface attributes to attributes of the HDF5 root group. The HDF5 attribute names consist of the prefixGLOIMAGE_appended to the HDF4 attribute names.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Datatypes
- Name:
H4toH5datatype- Signature:
- int
H4toH5datatype(hid_th4toh5id, const int32h4type, hid_t *h5type_ptr, hid_t *h5mem_type_ptr, size_t *h4size_ptr, size_t *h4mem_size_ptr) - Purpose:
- Retrieves HDF5 atomic file and memory datatypes and data sizes converted from HDF4 objects.
- Description:
H4toH5datatypeenables the user to retrieve datatype conversion information.File and memory datatypes, and the size of file and memory datatypes may be represented differently from machine to machine and from memory to disk.
H4toH5_datatypeconvmay help users to understand the principals and mechanics of datatype and data size conversion, particularly when doing the conversions on different platforms.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier const int32 h4typeIN: HDF4 datatype hid_t * h5type_ptrOUT: The address where the converted HDF5 datatype is stored on disk hid_t * h5memtype_ptrOUT: The address where the converted HDF5 datatype is stored in memory. size_t * h4size_ptrOUT: The address where the converted HDF4 datatype size is stored on disk size_t * h4mem_size_ptrOUT: The address where the converted HDF4 datatype size is stored in memory. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Dimension scales
- Name:
H4toH5one_dimscale- Signature:
- int
H4toH5one_dimscale(hid_th4toh5id, int32sds_id, char *h5group_full_path, char *h5dset_name, char *h5dim_group_full_path, char *h5dim_name, intattr_flag, intref_flag, intdim_index) - Purpose:
- Converts an HDF4 dimension scale dataset to an HDF5 dataset.
- Description:
H4toH5one_dimscaleconverts one dimension scale dataset of one SDS object to an HDF5 dataset.This function also provides a mechanism for associating the dimension scale dataset with a converted SDS or other equivalent HDF5 datasets. The association is made through an HDF5 dataset attribute that stores an object reference from the HDF5 dataset to dimension scale dataset. (See Mapping HDF4 Objects to HDF5 Objects [1], section 3.1 and figure 1, for details.)
The
ref_flagparameter controls whether the HDF5 dataset converted from the dimension scale is associated with the HDF5 dataset converted from the SDS or with other HDF5 datasets. The user can choose to convert only the dimension scale dataset by setting theref_flagparameter toH425_NOREF. If the user wants the converted dimension scale to be associated with another HDF5 dataset, the HDF5 dataset name must be provided inh5dset_name.The
attr_flagparameter specifies whether attributes of the dimension scale are to be converted.Note: HDF5 dimension scale specification is currently under development. This API is subject to change to maintain consistency once the HDF5 dimension scale specification is finalized.
- Parameters:
H425_NOREF(or 0)- No object reference is generated.
H425_REF(or 1)- The object reference from the dataset specified in
h5dset_nameto this dimension scale dataset is generated. H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted to attributes of the corresponding HDF5 objects.
hid_t h4toh5idIN: h4toh5 identifier int32 sds_idIN: SDS identifier with which the SDS dimension scale dataset is associated in the HDF4 file char * h5group_full_pathIN: The absolute pathname of the HDF5 group of which one member will generate an object reference to the converted dimension scale dataset. Must start with "/". char * h5dset_nameIN: The relative pathname of the HDF5 dataset containing the converted SDS or another equivalent HDF5 dataset. An object reference to the converted dimension scale dataset will be generated for this HDF5 dataset. If h5dset_nameis set to NULL, no object reference attribute will be generated to associate the converted dimension scale with any HDF5 dataset.char * h5dim_group_full_pathIN: The absolute pathname of the HDF5 group to which the converted dimension scale dataset will be assigned. Must start with "/" unless set to NULL. If set to NULL, the default dimension group name /HDF4_DIMGROUPwill be used.char * h5dim_nameIN: The relative pathname of the HDF5 dataset to which the dimension scale dataset will be converted. h5dim_nameis relative toh5dim_group_full_path. If set to NULL, a default dimension scale dataset name will be generated based on the dimension scale dataset name in the HDF4 file.int ref_flagIN: A flag indicating whether the dimension scale dataset is associated with the HDF5 dataset specified in h5dset_name.int attr_flagIN: A flag specifying whether attributes of the dimension scale dataset are to be converted. int dim_indexIN: An index indicating which dimension scale dataset will be converted. Must be a value from 0(zero), for the first dimension scale, ton-1, for the last dimension scale, wherenis the number of SDS dimensions.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5all_dimscale- Signature:
- int
H4toH5all_dimscale(hid_th4toh5id, int32sds_id, char *h5group_full_path, char *h5dset_name, char *h5dim_group_full_path, intattr_flag, intref_flag) - Purpose:
- Converts all HDF4 dimension scale datasets to HDF5 datasets.
- Description:
H4toH5all_dimscaleconverts all dimension scale datasets associated with one SDS object to HDF5 datasets.This function also provides a mechanism to associate the dimension scale datasets with the converted SDS object or another equivalent HDF5 dataset. The association is made through an attribute of the HDF5 dataset that stores an object reference from the HDF5 dataset to the dimension scale dataset. (See Mapping HDF4 Objects to HDF5 Objects [1], section 3.1 and figure 1, for details.)
The
ref_flagparameter specifies whether the HDF5 datasets containing the converted dimension scales are to be associated with another HDF5 dataset. If the dimension scales are to be converted only (i.e., and not associated with another HDF5 dataset),ref_flagis set toH425_NOREF. If the converted dimension scales are to associated with another HDF5 dataset,ref_flagis set toH425_REFand the dataset is specified inh5dset_name.The
attr_flagparameter specifies whether attributes of the dimension scale are to be converted.Note: HDF5 dimension scale specification is currently under development. This API is subject to change to maintain consistency once the HDF5 dimension scale specification is finalized.
- Parameters:
H425_NOREF(or 0)- No
H425_REF(or 1)- Yes
H425_NOREF(or 0)- No object reference is generated.
H425_REF(or 1)- The object reference from the dataset specified in
h5dset_nameto this dimension scale dataset is generated. H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted to attributes of the corresponding HDF5 objects.
hid_t h4toh5idIN: h4toh5 identifier int32 sds_idIN: SDS identifier with which the converted SDS dimension scale datasets are associated in the HDF4 file char * h5group_full_pathIN: The absolute pathname of the target HDF5 group. Object references to the converted dimension scale datasets will be generated for the member of this group specified in h5dset_name. Must start with "/".char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. Object references to the converted dimension scale datasets will be generated for this dataset. Ifh5dset_nameis set to NULL, no object reference attributes will be generated.char * h5dim_group_full_pathIN: The absolute pathname of the HDF5 group to which the converted dimension scale datasets are to be assigned. Must start with "/". If set to NULL, the default dimension scale group name /HDF4_DIMGROUPwill be used.int ref_flagIN: A flag specifying whether the converted dimension scale datasets are to be associated with another HDF5 dataset: int attr_flagIN: A flag specifying whether dimension scale attributes are to be converted: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Annotations
- Name:
H4toH5anno_file_label- Signature:
- int
H4toH5anno_file_label(hid_th4toh5id, char *anno_label_name, intlabel_index) - Purpose:
- Converts an HDF4 file label to an HDF5 root group attribute
- Description:
H4toH5anno_file_labelconverts an HDF4 file label annotation to an attribute of the root group of the target HDF5 file.If
anno_label_nameis set to NULL, a default attribute name is created as the stringHDF4_FILE_LABEL_index, where index is the index of the file label.If
label_indexis beyond the range of valid HDF4 file label annotations, a warning message will be generated and nothing will be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier char * anno_label_nameIN: The attribute name in the HDF5 file of the converted file label. int label_indexIN: The HDF4 index of the label that is to be converted. Must be a value from 0(zero), for the first file label, ton-1, for the last file label, wherenis the number of file labels.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5anno_file_desc- Signature:
- int
H4toH5anno_file_desc(hid_th4toh5id, char *anno_desc_name, intdesc_index) - Purpose:
- Converts an HDF4 file description to an attribute of the HDF5 root group.
- Description:
H4toH5annofil_descconverts an HDF4 file description annotation to an attribute of the root group of the target HDF5 file.If the
anno_desc_nameparameter is set to NULL, a default attribute name is created as the stringHDF4_FILE_DESCRIPTION_index, where index is the HDF4 index of the file description annotation.If
desc_indexis beyond the range of valid HDF4 file description annotations, a warning message will be generated and nothing will be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier char * anno_desc_nameIN: The attribute name in the HDF5 file of the converted file description annotation int desc_indexIN: The HDF4 index of the file description annotation that is to be converted. Must be a value from 0(zero), for the first file description, ton-1, for the last file description, wherenis the number of file descriptions.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5anno_file_all_labels- Signature:
- int
H4toH5anno_file_all_labels(hid_th4toh5id) - Purpose:
- Converts all HDF4 file labels to HDF5 root group attributes.
- Description:
H4toH5anno_file_all_labelsconverts all HDF4 file label annotations to attributes of the root group of the target HDF5 file.The name of each attribute is created as the string
HDF4_FILE_LABEL_index, where index is the HDF4 index of the file label annotation.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5anno_file_all_descs- Signature:
- int
H4toH5anno_file_all_descs(hid_th4toh5id) - Purpose:
- Converts all HDF4 file descriptions to HDF5 root group attributes.
- Description:
H4toH5anno_file_all_descsconverts all HDF4 file description annotations to attributes of the root group of the target HDF5 file.The name of each attribute is created as the string
HDF4_FILE_DESCRIPTION_index, where index is the index of the file description annotation.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5anno_obj_label- Signature:
- int
H4toH5anno_obj_label(hid_th4toh5id, char *h5group_full_path, char *h5dset_name, uint16obj_ref, int32obj_tag, char *anno_label_name, intlabel_index) - Purpose:
- Converts an HDF4 object label to an HDF5 object attribute.
- Description:
H4toH5anno_obj_labelconverts an HDF4 object label annotation to an attribute of the corresponding HDF5 dataset or group.H4toH5anno_obj_labelpasses the absolute pathname of an HDF5 group inh5group_full_path. If the object label to be converted is a group annotation,h5dset_nameis set to NULL and the converted label will be associated with the group indicated byh5group_full_path. If the object label to be converted is a dataset annotation, the converted label will be associated with the dataset specified inh5dset_name.If
anno_label_nameis set to NULL, a default attribute name is created as the stringHDF4_OBJECT_LABEL_index, where index is the index of the object label.Only object label annotations associated with the following basic HDF4 objects can be converted: Vgroups, Vdatas, SDSs, images, and palettes.
If
label_indexis beyond the range of valid HDF4 object label annotations, a warning message will be generated and nothing will be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier char * h5group_full_pathIN: The absolute pathname of the target HDF5 group. The converted object attribute will be associated with either this group or the member of this group specified in h5dset_name.char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. The object attribute will be associated with this dataset; if the object attribute is to be associated with the group,h5dset_namemust be set to NULL.uint16 obj_refIN: The HDF4 reference number of the HDF4 object with which the object label annotation is associated. int32 obj_tagIN: The HDF4 tag of the HDF4 object with which the object label annotation is associated. char * anno_label_nameIN: The name of the HDF5 attribute containing the converted object label. int label_indexIN: The HDF4 index of the object label that is to be converted. Must be a value from 0(zero), for the first object label, ton-1, for the last object label, wherenis the number of object label annotations.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5anno_obj_desc- Signature:
- int
H4toH5anno_obj_desc(hid_th4toh5id, char *h5group_full_path, char *h5dset_name, uint16bj_ref, int32obj_tag, char *anno_desc_name, intdesc_index) - Purpose:
- Converts an HDF4 object description to HDF5 object attribute.
- Description:
H4toH5anno_obj_descconverts an HDF4 object description annotation to an attribute of the corresponding HDF5 dataset or group.This function passes the absolute pathname of an HDF5 group in
h5group_full_path. If the object description to be converted is a group annotation,h5dset_nameis set to NULL and the converted description will be associated with the group indicated byh5group_full_path. If the object description to be converted is a dataset annotation, the converted description will be associated with the dataset specified inh5dset_name.If the
anno_desc_nameparameter is not provided, a default attribute name is created as the stringHDF4_OBJECT_DESCRIPTION_index, where index is the index of the object description.Only object description annotations associated with the following basic HDF4 objects can be converted: Vgroups, Vdatas, SDSs, images, and palettes.
If
desc_indexis beyond the range of valid HDF4 object description annotations, a warning message will be generated and nothing will be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier char * h5group_full_pathIN: The absolute pathname of the target HDF5 group. The object description will be associated with either this group or the member of this group specified in h5dset_name.char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. The object attribute will be associated with this dataset; if the object attribute is to be associated with the group,h5dset_namemust be set to NULL.uint16 obj_refIN: The HDF4 reference number of the HDF4 object with which the object description annotation is associated. int32 obj_tagIN: The HDF4 tag of the HDF4 object with which the object description annotation is associated. char * anno_descnnameIN: The name of the HDF5 attribute containing the converted object description. int desc_indexIN: The HDF4 index of the object description that is to be converted. Must be a value from 0(zero), for the first object description, ton-1, for the last object description, wherenis the number of object description annotations.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5anno_obj_all_labels- Signature:
- int
H4toH5anno_obj_all_labels(hid_th4toh5id, char *h5group_full_path, char *h5dset_name, uint16obj_ref, int32obj_tag) - Purpose:
- Converts all label annotations of an HDF4 object to HDF5 attributes.
- Description:
H4toH5anno_obj_all_labelsconverts all object label annotations associated with an HDF4 object to attributes of the corresponding HDF5 dataset or group.H4toH5anno_obj_all_labelspasses the absolute pathname of an HDF5 group inh5group_full_path. If the object labels to be converted are group annotations,h5dset_nameis set to NULL and the converted labels will be associated with the group indicated byh5group_full_path. If the object labels to be converted are dataset annotations, the converted labels will be associated with the dataset specified inh5dset_name.Attribute names are created as the string
HDF4_OBJECT_LABEL_index, where index is the index of the object label.Only object label annotations associated with the following basic HDF4 objects can be converted: Vgroups, Vdatas, SDSs, images, and palettes.
- Parameters:
hid_t h4toh5idIN: h4toh5 identifier char * h5group_full_pathIN: The absolute pathname of the target HDF5 group. The object label attributes will be associated with either this group or the member of this group specified in h5dset_name.char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. The object attributes will be associated with this dataset; if the object attributes are to be associated with the group,h5dset_namemust be set to NULL.uint16 obj_refIN: The HDF4 reference number of the HDF4 object with which the object label annotations are associated. int32 obj_tagIN: The HDF4 tag of the HDF4 object with which the object label annotations are associated. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5anno_obj_all_descs- Signature:
- int
H4toH5anno_obj_all_descs(hid_th4toh5id, char *h5group_full_path, char *h5dset_name, uint16obj_ref, int32obj_tag) - Purpose:
- Converts all description annotations of an HDF4 object to HDF5 attributes.
- Description:
H4toH5anno_obj_all_descsconverts all description annotations associated with an HDF4 object to attributes of the corresponding HDF5 dataset or group.H4toH5anno_obj_all_descspasses the absolute pathname of an HDF5 group inh5group_full_path. If the object descriptions to be converted are group annotations,h5dset_nameis set to NULL and the converted labels will be associated with the group indicated byh5group_full_path. If the object descriptions to be converted are dataset annotations, the converted labels will be associated with the dataset specified inh5dset_name.Default attribute names are created as the string
HDF4_OBJECT_DESCRIPITION_index, where index is the object description index.Only object description annotations associated with the following basic HDF4 objects can be converted: Vgroups, Vdatas, SDSs, images, and palettes.
- Parameters:
hid_t h4toh5idIN: h4toh5 identifier char * h5group_full_pathIN: The absolute pathname of the target HDF5 group. The object description attributes are associated with either this group or the member of this group specified in h5dset_name.char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. The object attributes will be associated with this dataset; if the object attributes are to be associated with the group,h5dset_namemust be set to NULL.uint16 obj_refIN: The HDF4 reference number of the HDF4 object with which the object description annotations are associated. int32 obj_tagIN: The HDF4 tag of the HDF4 object with which the object description annotations are associated. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Error messages
- Name:
H4toH5error_get- Signature:
- int
H4toH5error_get(hid_th4toh5id) - Purpose:
- Prints error information.
- Description:
H4toH5error_getprints error information to standard output.The error information includes the following:
- Error level number
- Error message - a brief message describing the error
- Error code number - see the H4toH5 Conversion Library User’s Guide for error code descriptions
- Line at which the error occurred
- File in which the error occurred
This function is provided primarily for debugging purposes.
- Parameters:
hid_t h4toh5idIN: h4toh5 identifier - Returns:
- Should always return 0 (zero).
- Non-C API(s):
Vgroups
- Name:
H4toH5bas_vgroup- Signature:
- int
H4toH5bas_vgroup(hid_th4toh5id,int32vgroup_id,char *h5parent_group_full_path,char *h5child_group_name,intvg_flag,intattr_flag) - Purpose:
- Converts an HDF4 Vgroup to an HDF5 group.
- Description:
H4toH5bas_vgroupconverts an HDF4 Vgroup to an HDF5 group.Depending on the setting of the
vg_flagparameter, either the Vgroup only or the Vgroup and its non-Vgroup members will be converted to corresponding HDF5 objects.H4toH5bas_vgroupis designed for use with a single Vgroup. UseH4toH5adv_groupto recursively convert a Vgroup and member Vgroups to HDF5 objects.- Parameters:
H425_NONMEMBERS(or 0)- Non-Vgroup members are not converted.
H425_ALLMEMBERS(or 1)- All non-Vgroup members of this Vgroup are converted to corresponding HDF5 objects.
H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted to attributes of the corresponding HDF5 objects.
hid_t h4toh5idIN: h4toh5 identifier int32 vgroup_idIN: Vgroup identifier in the HDF4 file char * h5parent_group_full_pathIN: The absolute pathname of the HDF5 group of which the converted Vgroup is to be a member. Must start with "/". char * h5child_group_nameIN: The relative pathname of the converted Vgroup, relative to h5parent_group_full_path. If set to NULL, the H4toH5 library generates a default HDF5 group name based on the HDF4 Vgroup name.int vg_flagIN: a flag specifying whether non-Vgroup members of the vgroup are to be converted: int attr_flagIN: A flag specifying whether attributes of the converted vgroup and its non-Vgroup members are to be converted: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5vgroup_attr_name- Signature:
- int
H4toH5vgroup_attr_name(hid_th4toh5id,int32vgroup_id,char *h5parent_group_full_path,char *h5child_group_name,char *attr_name) - Purpose:
- Converts an HDF4 Vgroup attribute to an HDF5 group attribute.
- Description:
H4toH5vgroup_attr_nameconverts an HDF4 Vgroup attribute, specified by its HDF4 name, to an HDF5 group attribute.This function assumes the preexistence of an HDF5 group that the converted Vgroup attribute will belong to. If
h5child_group_nameis set to NULL, the HDF4 Vgroup specified invgroup_idshould be converted before this function is called.The
attr_nameparameter specifies which Vgroup attribute is to be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 vgroup_idIN: HDF4 Vgroup identifier char * h5parent_group_full_pathIN: The absolute pathname of an HDF5. Must start with "/". The converted Vgroup attribute will be associated with a member of this group as specified in h5child_group_name.char * h5child_group_nameIN: The relative pathname of the target HDF5 group, relative to h5parent_group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 group name based on the HDF4 Vgroup name.char * attr_nameIN: The HDF4 name of the Vgroup attribute to be converted. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5vgroup_attr_index- Signature:
- int
H4toH5vgroup_attr_index(hid_th4toh5id,int32vgroup_id,char *h5parent_group_full_path,char *h5child_group_name,intattr_index) - Purpose:
- Converts an HDF4 Vgroup attribute to an HDF5 group attribute.
- Description:
H4toH5vgroup_attr_indexconverts an HDF4 Vgroup attribute, specified by its HDF4 index, to an HDF5 group attribute.This function assumes the preexistence of an HDF5 group that the converted Vgroup attribute will belong to. If
h5child_group_nameis set to NULL, The HDF4 Vgroup specified invgroup_idshould be converted before this function is called.The
attr_indexparameter specifies which Vgroup attribute to be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 vgroup_idIN: HDF4 Vgroup identifier char * h5parent_group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted Vgroup attribute will be associated with a member of this group as specified in h5child_group_name.char * h5child_group_nameIN: The relative pathname of the target HDF5 group, relative to h5parent_group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 group name based on the name of the HDF4 Vgroup object.int attr_indexIN: The HDF4 index of the Vgroup attribute to be converted. Must be a value from 0(zero), for the first Vgroup attribute, ton-1, for the last Vgroup attribute, wherenis the number of HDF4 Vgroup attributes.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5adv_group- Signature:
- int
H4toH5adv_group(hid_th4toh5id, int32vgroup_id, char *h5parent_group_full_path, char *h5child_group_name) - Purpose:
- Converts an HDF4 Vgroup and its descendents to an HDF5 group.
- Description:
H4toH5adv_groupconverts an HDF4 Vgroup and all its descendents to an HDF5 group and its members.Users should be extremely careful when using this function, especially when the Vgroup structure to be converted is complicated.
- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 vgroup_idIN: Vgroup identifier in the HDF4 file char * h5parent_group_full_pathIN: The absolute pathname of the group of which the converted Vgroup is to be a member. Must start with "/". char * h5child_group_nameIN: The relative pathname of the converted Vgroup, relative to h5parent_group_full_path. If set to NULL, the H4toH5 library generates a default HDF5 group name based on HDF4 Vgroup name.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Vdatas
- Name:
H4toH5vdata- Signature:
- int
H4toH5vdata(hid_th4toh5id, int32vdata_id, char *h5group_full_path, char *h5dset_name, intattr_flag) - Purpose:
- Converts an HDF4 Vdata object to an HDF5 dataset.
- Description:
H4toH5vdataconverts an independent Vdata object to an HDF5 dataset. Theattr_flagparameter controls the conversion of Vdata attributes.- Parameters:
H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted to attributes of the corresponding HDF5 dataset.
hid_t h4toh5idIN: h4toh5 identifier int32 vdata_idIN: Vdata identifier in the HDF4 file char * h5group_full_pathIN: The absolute pathname of the HDF5 group to which the converted dataset will be assigned. Must start with "/". char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. The Vdata is converted to this dataset. Ifh5dset_nameis set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the Vdata name.int attr_flagIN: a flag specifying whether Vdata attributes are to be converted: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5vdata_attr_name- Signature:
- int
H4toH5vdata_attr_name(hid_th4toh5id, int32vdata_id, char *h5group_full_path, char *h5dset_name, char*attr_name) - Purpose:
- Converts an HDF4 Vdata object attribute to an HDF5 dataset attribute.
- Description:
H4toH5vdata_attr_nameconverts an HDF4 Vdata attribute, specified by its HDF4 name, to an HDF5 dataset attribute.This function assumes the preexistence of an HDF5 dataset that the converted Vdata attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 Vdata specified invdata_idshould be converted before this function is called.The
attr_nameparameter specifies which SDS attribute is to be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 vdata_idIN: HDF4 Vdata identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted Vdata attribute will be associated with a member of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of an HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 Vdata name.char * attr_nameIN: The HDF4 name of the Vdata attribute to be converted. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5vdata_attr_index- Signature:
- int
H4toH5vdata_attr_index(hid_th4toh5id, int32vdata_id, char *h5group_full_path, char *h5dset_name, intattr_index) - Purpose:
- Converts an HDF4 Vdata object attribute to an HDF5 dataset attribute.
- Description:
H4toH5vdata_attr_indexconverts an HDF4 Vdata attribute, specified by its HDF4 index, to an HDF5 dataset attribute.This function assumes the preexistence of an HDF5 dataset that the converted Vdata attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 Vdata specified invdata_idshould be converted before this function is called.The
attr_indexparameter specifies which Vdata attribute is to be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 vdata_idIN: HDF4 Vdata identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted Vdata attribute will be associated with a dataset of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 Vdata name.int attr_indexIN: The HDF4 index of the Vdata attribute to be converted. Must be a value from 0(zero), for the first Vdata attribute, ton-1, for the last Vdata attribute, wherenis the number of HDF4 Vdata attributes.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5vdata_field_attr_name- Signature:
- int
H4toH5vdata_field_attr_name(hid_th4toh5id, int32vdata_id, char *h5group_full_path, char *h5dset_name, char *field_name, char *field_attr_name) - Purpose:
- Converts an HDF4 Vdata field attribute to an HDF5 dataset attribute.
- Description:
H4toH5vdata_field_attr_nameconverts an object attribute associated with an HDF4 Vdata field to an HDF5 dataset attribute. The Vdata field and the associated attribute are specified by their HDF4 names.This function assumes the preexistence of an HDF5 dataset that the converted Vdata field attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 Vdata specified invdata_idshould be converted before this function is called.The parameters
field_nameandfield_attrname, respectively, specify the Vdata field name and the associated object attribute name.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 vdata_idIN: HDF4 Vdata identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted Vdata field attribute will be associated with a member of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 Vdata name.char * field_nameIN: The HDF4 name of the Vdata field to be converted. char * field_attr_nameIN: The HDF4 name of the Vdata field attribute to be converted. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5vdata_field_attr_index- Signature:
- int
H4toH5vdata_field_attr_index(hid_th4toh5id, int32vdata_id, char *h5group_full_path, char *h5dset_name, intfield_index, intfield_attr_index) - Purpose:
- Converts an HDF4 Vdata field object attribute into an HDF5 dataset attribute.
- Description:
H4toH5vdata_field_attr_indexconverts an object attribute associated with an HDF4 Vdata field to an HDF5 dataset attribute. The Vdata field and the associated attribute are specified by their HDF4 indexes.This function assumes the preexistence of an HDF5 dataset that the converted Vdata field attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 Vdata specified invdata_idshould be converted before this function is called.The parameters
field_indexandfield_attr_index, respectively, specify the Vdata field index and the associated object attribute index.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 vdata_idIN: HDF4 Vdata identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted Vdata field attribute will be associated with a member of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 Vdata name.int field_indexIN: The HDF4 index of the Vdata field to be converted. Must be a value from 0(zero), for the first Vdata field, ton-1, for the last Vdata field, wherenis the number of HDF4 Vdata fields.int field_attr_indexIN: The HDF4 index of the Vdata field attribute to be converted. Must be a value from 0(zero), for the first Vdata field attribute, ton-1, for the last Vdata field attribute, wherenis the number of HDF4 Vdata field attributes.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
SDSs
- Name:
H4toH5sds- Signature:
- int
H4toH5sds(hid_th4toh5id,int32sds_id,char *h5group_full_path,char *h5dset_name,char *h5dim_group_full_path,intdim_flag,intattr_flag) - Purpose:
- Converts an HDF4 SDS object into an HDF5 dataset.
- Description:
H4toH5sdsconverts an SDS object in the HDF4 file to an HDF5 dataset in the HDF5 file.Depending on the settings of the
dim_flagandattr_flagparameters, the dimension scale datasets and attributes of the SDS object may or may not be converted.If dimension scale datasets are converted, the
attr_flagparameter controls the conversion of their attributes.- Parameters:
H425_NODIMSCALE(or 0)- The dimension scale datasets are not converted.
H425_DIMSCALE(or 1)- The dimension scale datasets are converted to corresponding HDF5 objects.
H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted to attributes of the corresponding HDF5 objects; if dim_flag is set, attributes of the dimension scale datasets are also converted.
hid_t h4toh5idIN: h4toh5 identifier int32 sds_idIN: SDS identifier in the HDF4 file char * h5group_full_pathIN: The absolute pathname of the HDF5 group into which the converted SDS is to be placed. Must start with "/". char * h5dset_nameIN: The relative pathname of the HDF5 dataset, relative to h5group_full_path.If set to NULL, the H4toH5 library generates a default HDF5 dataset name based on the SDS name.char * h5dim_group_full_pathIN: The absolute pathname of the HDF5 group into which the converted dimension scale datasets are to be placed. If set to NULL, the default dimension group name /HDF4_DIMGROUPis used.int dim_flagIN: A flag specifying whether dimension scale datasets are to be converted: int attr_flagIN: A flag specifying whether SDS attributes are to be converted - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5sds_attr_name- Signature:
- int
H4toH5sds_attr_name( hid_t h4toh5id,int32 sds_id,char *h5group_full_path,char *h5dset_name,char *attr_name) - Purpose:
- Converts an HDF4 SDS object attribute to an HDF5 dataset attribute.
- Description:
H4toH5sds_attr_nameconverts an HDF4 SDS attribute, specified by its HDF4 name, to an HDF5 dataset attribute.This function assumes the preexistence of an HDF5 dataset that the converted SDS attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 SDS specified in sds_id should be converted before this function is called.The
attr_nameparameter specifies which SDS attribute is to be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 sds_idIN: HDF4 SDS identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted SDS attribute will be associated with a dataset of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of target HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 SDS name.char * attr_nameIN: The name of the HDF4 SDS attribute to be converted. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5sds_attr_index- Signature:
- int
H4toH5sds_attr_index(hid_th4toh5id,int32sds_id,char *h5group_full_path,char *h5dset_name,intattr_index) - Purpose:
- Converts an HDF4 SDS object attribute to an HDF5 dataset attribute.
- Description:
H4toH5sds_attr_indexconverts an HDF4 SDS attribute, specified by its HDF4 index, to an HDF5 dataset attribute.This function assumes the preexistence of an HDF5 dataset that the converted SDS attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 SDS specified in sds_id should be converted before this function is called.The
attr_indexparameter specifies which SDS attribute is to be converted.- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 sds_idIN: HDF4 SDS identifier char * h5group_full_pathIN: The absolute pathname of HDF5 group. Must start with "/". The converted SDS attribute will be associated with a member of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of the target HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 SDS name.int attr_indexIN: The HDF4 index of the SDS attribute to be converted. Must be a value from 0(zero), for the first SDS attribute, ton-1, for the last SDS attribute, wherenis the number of HDF4 SDS attributes.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Images and palettes
- Name:
H4toH5image- Signature:
- int
H4toH5image(hid_th4toh5id,int32ri_id,char *h5group_full_path,char *h5dset_name,char *h5pal_group_full_path,char *h5pal_name,intattr_flag,intpal_flag) - Purpose:
- Converts an HDF4 image object to an HDF5 dataset.
- Description:
- H4toH5image converts an HDF4 image object to an HDF5 dataset.
Depending on the settings of the
attr_flagandpal_flagparameters, the associated palette and attributes may be converted. If the palette is converted, theattr_flagparameter also controls the conversion of the associated palette attributes. - Parameters:
H425_NOPAL(or 0)- The palette is not converted.
H425_PAL(or 1)- The palette is converted.
H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted. If
pal_flagparameter is set toH425_PAL, palette attributes are also converted.
hid_t h4toh5idIN: h4toh5 identifier int32 ri_idIN: Raster image identifier in the HDF4 file char * h5group_full_pathIN: The absolute pathname of the HDF5 group to which the converted image dataset will be assigned. Must start with "/". char * h5dset_nameIN: The relative pathname of an HDF5 dataset, relative to h5group_full_path.Ifh5dset_nameis set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the name of the converted image.char * h5pal_group_full_pathIN: The absolute pathname of the HDF5 group to which the converted palette will be assigned. If the pathname is not set to NULL, it must start with "/". If set to NULL, a default palette group name /HDF4_PALROUPwill be used.char * h5pal_nameIN: The relative pathname of the target HDF5 dataset, relative to h5pal_group_full_path.The palette will be converted to this dataset. Ifh5_palnameis set to NULL, a default palette dataset name is created as the stringHDF4_PALETTE_ref, where ref is the reference number of the palette object in the HDF4 file.int pal_flagIN: A flag specifying whether a palette associated with the image is to be converted: int attr_flagIN: A flag to determine whether image attributes are to be converted: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5image_attr_name- Signature:
- int
H4toH5image_attr_name(hid_th4toh5id,int32ri_id, char *h5group_full_path, char *h5dset_name, char *attr_name) - Purpose:
- Converts an HDF4 image object attribute to an HDF5 dataset attribute.
- Description:
H4toH5image_attr_nameconverts an HDF4 image attribute, specified by its HDF4 name, to an HDF5 dataset attribute.This function assumes the preexistence of an HDF5 dataset that the converted image attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 image specified inri_idshould be converted before this function is called.The
attr_nameparameter specifies which image attribute is to be converted.This function works for the following types of HDF4 images: GR, RI8, and RI24.
- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 ri_idIN: HDF4 raster image identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted image attribute will be associated with a dataset of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of an HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 image name.char * attr_nameIN: The HDF4 name of the image attribute to be converted. - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5image_attr_index- Signature:
- int
H4toH5image_attr_index(hid_th4toh5id, int32image_id, char *h5group_full_path, char *h5dset_name, intattr_index) - Purpose:
- Converts an HDF4 image object attribute to an HDF5 dataset attribute.
- Description:
H4toH5image_attr_indexconverts an HDF4 image attribute, specified by its HDF4 index, to an HDF5 dataset attribute.This function assumes the preexistence of an HDF5 dataset that the converted image attribute will belong to. If
h5dset_nameis set to NULL, the HDF4 image specified inri_idshould be converted before this function is called.The
attr_indexparameter specifies which image attribute is to be converted.This function works for the following types of HDF4 images: GR, RI8, and RI24.
- Parameters:
hid_t h4toh5idIN: h4toh5 identifier int32 image_idIN: HDF4 raster image identifier char * h5group_full_pathIN: The absolute pathname of HDF5 group. Mst start with "/". The converted image attribute will be associated with a member of this group as specified in h5dset_name.char * h5dset_nameIN: The relative pathname of an HDF5 dataset, relative to h5group_full_path. If set to NULL, the H4toH5 library will generate a default HDF5 dataset name based on the HDF4 image name.int attr_indexIN: The HDF4 index of the image attribute. Must be a value from 0(zero), for the first image attribute, ton-1, for the last image attribute, wherenis the number of HDF4 image attributes.- Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5pal- Signature:
- int
H4toH5pal(hid_th4toh5id, int32ri_id, char *h5group_full_path, char *h5dset_name, char *h5pal_group_full_path, char *h5pal_name, intattr_flag, intref_flag) - Purpose:
- Converts an HDF4 palette object to an HDF5 dataset and optionally attaches it to an HDF5 image dataset.
- Description:
H4toH5palconverts an HDF4 palette object to an HDF5 palette dataset.The parameter
ref_flagspecifies whether to attach the palette to an HDF5 dataset. This HDF5 dataset should either be a converted HDF4 image object or conform to the HDF5 image specification (See section 3.4 and Figure 2 in Mapping HDF4 Objects to HDF5 Objects [1] for details.)The
attr_flagparameter specifies whether the palette attributes are to be converted.- Parameters:
H425_NOATTRS(or 0)- No palette attributes are converted.
H425_ALLATTRS(or 1)- All palette attributes are converted to attributes of the corresponding HDF5 dataset.
H425_NOREF(or 0)- The palette is not associated with another HDF5 dataset.
H425_REF(or 1)- The palette is associated with another HDF5 dataset.
hid_t h4toh5idIN: h4toh5 identifier int32 ri_idIN: Raster image identifier with which the current palette is associated in the HDF4 file char * h5group_full_pathIN: The absolute pathname of target HDF5 parent group of the HDF5 image dataset. Must start with "/". If ref_flagis set toH425_NOREF, this parameter will be ignored.char * h5dset_nameIN: The relative pathname of an HDF5 dataset, relative to h5group_full_path. This HDF5 dataset should either be a converted HDF4 image object or conform to the HDF5 image specification. An object reference to the palette will be generated for this dataset. Ifh5dset_nameis set to NULL, no object reference attribute will be generated to associate the converted palette with any HDF5 dataset.char * h5pal_group_full_pathIN: The absolute pathname of the target HDF5 group to which the converted palette dataset will be assigned. Must start with "/" unless set to NULL. If set to NULL, the default palette group name /HDF4_PALGROUPwill be used.char * h5pal_nameIN: The relative pathname of the target HDF5 dataset, relative to h5pal_group_full_path. The palette is converted to this dataset. Ifh5pal_nameis set to NULL, a default palette dataset name will be created as the stringHDF4_PALETTE_ref, where ref is the object reference number of the palette object in the HDF4 file.int attr_flagIN: A flag specifying whether palette attributes are to be converted: int ref_flagIN: A flag specifying whether the converted palette is to be associated with another HDF5 dataset: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
Lone objects
- Name:
H4toH5all_lone_sds- Signature:
- int
H4toH5all_lone_sds(hid_th4toh5id, char *h5group_full_path, char *h5dim_group_full_path, intdim_flag, intattr_flag) - Purpose:
- Converts all independent HDF4 SDS objects to HDF5 datasets.
- Description:
H4toH5all_lone_sdsidentifies all SDS objects in the HDF4 file that are not members of a user-defined Vgroup structure and converts them to HDF5 datasets. Such SDSs are sometimes referred to as lone or independent SDSs.- Parameters:
- 0
- Dimension scale datasets are not converted.
- 1
- Dimension scale datasets are converted.
H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted. If
dim_flagis set to1, attributes of the dimension scale datasets are also converted.
hid_t h4toh5idIN: h4toh5 identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted SDSs will become members of this group. char * h5dim_group_full_pathIN: The absolute pathname of the HDF5 group to which the converted dimension scale datasets associated with the SDS will be assigned. Must start with "/". If set to NULL, the default dimension scale group name /HDF4_DIMGROUPwill be used.int dim_flagIN: A flag specifying whether dimension scale datasets associated with the SDS are to be converted: int attr_flagIN: A flag specifying whether SDS attributes are to be converted to attributes of the corresponding HDF5 datasets: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5all_lone_image- Signature:
- int
H4toH5all_lone_image(hid_th4toh5id, char *h5group_full_path, char *h5pal_group_full_path, intpal_flag, intattr_flag) - Purpose:
- Converts all independent HDF4 image objects attribute to HDF5 datasets.
- Description:
H4toH5all_lone_imageidentifies all image objects in the HDF4 file that are not members of a user-defined Vgroup structure and converts them to HDF5 datasets. Such images are sometimes referred to as lone or independent images.- Parameters:
H425_NOPAL- Palettes are not converted.
H425_PAL- Palette are converted
H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted. If
pal_flagis set to1, palette attributes are also converted.
hid_t h4toh5idIN: h4toh5 identifier char * h5group_full_pathIN: The absolute pathname of an HDF5 group. Must start with "/". The converted image datasets will become members of this group. char * h5pal_group_full_pathIN: The absolute pathname of the HDF5 group to which the palettes associated with the converted image will be assigned. If set to NULL, the default dimension group name /HDF4_PALGROUPwill be used.int pal_flagIN: A flag specifying whether palettes associated with the converted images are to be converted: int attr_flagIN: A flag specifying whether attributes associated with the converted images are to be converted to the attributes of the corresponding HDF5 datasets: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
- Name:
H4toH5all_lone_vdata- Signature:
- int
H4toH5all_lone_vdata(hid_th4toh5id, char *h5group_full_path, intattr_flag) - Purpose:
- Converts all lone HDF4 Vdata objects into HDF5 datasets.
- Description:
H4toH5all_lone_vdataidentifies all Vdatas in the HDF4 file that are not members of a user-defined Vgroup structure and converts them to HDF5 datasets.- Parameters:
H425_NOATTRS(or 0)- No attributes are converted.
H425_ALLATTRS(or 1)- All attributes are converted to attributes of the corresponding HDF5 datasets.
hid_t h4toh5idIN: h4toh5 identifier char * h5group_full_pathIN: The absolute pathname of HDF5 group. Must start with "/". The converted Vdata datasets will become members of this group. int attr_flag:IN: A flag specifying whether Vdata attributes are to be converted: - Returns:
- Returns a non-negative value if successful; otherwise returns a negative value.
- Non-C API(s):
|
Describes H4toH5 Conversion Library Release 2.0 |
