Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5LT_MAKE_DATASET_INT

Creates and writes a dataset.

Procedure:

H5LT_MAKE_DATASET_INT(loc_id, dset_name, rank, dims, buffer)

Signature:

herr_t H5LTmake_dataset_int ( hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const int *buffer )

subroutine h5ltmake_dataset_int_f(loc_id, dset_name, rank, dims, buf, errcode)
  implicit none
  integer(HID_T), intent(IN) :: loc_id           ! file or group identifier 
  character(LEN=*), intent(IN) :: dset_name      ! name of the dataset 
  integer, intent(IN) :: rank                    ! rank 
  integer(HSIZE_T), dimension(*), intent(IN) :: dims 
                                                 ! size of the buffer buf  
  integer, intent(IN), dimension(*) :: buf       ! data buffer 
  integer :: errcode                             ! error code
end subroutine h5ltmake_dataset_int_f

Parameters:

hid_t loc_id

IN: Identifier of the file or group to create the dataset within.

const char *dset_name

IN: The name of the dataset to create.

int rank

IN: Number of dimensions of dataspace.

const hsize_t * dims

IN: An array of the size of each dimension.

const int * buffer

IN: Buffer with data to be written to the dataset.


Description:

H5LTmake_dataset_int creates and writes a dataset named dset_name attached to the object specified by the identifier loc_id.

The dataset’s datatype will be native signed integer, H5T_NATIVE_INT.

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

Coming Soon!

History:
Release    Change
1.8.7Fortran subroutine modified in this release to accomodate arrays with more than three dimensions.

 

IN: Identifier of the file or group to create the dataset within.

--- Last Modified: December 04, 2017 | 07:12 AM