H5Rget_region(
hid_t loc_id,
H5R_type_t ref_type,
void *ref
)
H5Rget_region creates a copy of the dataspace
of the dataset pointed to by a region reference, ref,
and defines a selection matching the selection pointed to by
ref within the dataspace copy.
loc_id is used to identify the file containing the
referenced region; it can be a file identifier or
an identifier for any object in the file.
The parameter ref_type specifies the reference type of
ref and must contain the following value:
H5R_DATASET_REGION (1)
hid_t loc_id |
IN: File identifier or identifier for any object in the file containing the referenced region |
H5R_type_t ref_type |
IN: Reference type of ref,
which must be H5R_DATASET_REGION |
void *ref |
IN: Region reference to open |
SUBROUTINE h5rget_region_f(obj_id, ref, space_id, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: obj_id ! Object identifier
TYPE(hdset_reg_ref_t_f), INTENT(IN) :: ref ! Dataset region reference
INTEGER(HID_T), INTENT(OUT) :: space_id ! Space identifier
INTEGER, INTENT(OUT) :: hdferr ! Error code
! 0 on success and -1 on failure
END SUBROUTINE h5rget_region_f