Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Content Layer
id1195548671
Content Column
width50.00001%
id1195578110
classrm_pagetree_col mobile-hide
Content Block
id1195578111
 
Content Column
width50.00001%
id1195548673
classhdf-rm-main-column
Content Block
id1195548672

Include Content
render-without-blockstrue
page.rm-navbar
HTML Wrap
classhdf-print-only

Page Title

HTML Wrap
classhdf-rm-summary-block

Hdf rm anchor
AnchorNamesummary

Excerpt

Fills dataspace elements with a fill value in a memory buffer

.

HTML Wrap
classhdf-rm-content-block

Hdf rm anchor
AnchorNameprocedure

Procedure:
HTML Wrap
classhdf-rm-section
HTML Wrap
classhdf_procedure

H5D_FILL(fill, fill_type_id, buf, buf_type_id, space_id)

Hdf rm anchor
AnchorNamesignature

Signature:
HTML Wrap
classhdf-rm-section
HTML Wrap
classhdf-togglebox hdf-c

HTML Add Class
hdf-togglebutton-visible
hdf-togglebutton-visible
selector.hdf-togglebutton.hdf-c

HTML
<pre><code class="language-c">herr_t H5Dfill
(
    const void  *fill,
    hid_t        fill_type_id,
    void        *buf,
    hid_t        buf_type_id,
    hid_t        space_id
)</code></pre>
HTML Wrap
classhdf-togglebox hdf-fortran hdf-togglebox-hidden

HTML Add Class
hdf-togglebutton-visible
hdf-togglebutton-visible
selector.hdf-togglebutton.hdf-fortran

HTML
<pre><code class="language-fortran">SUBROUTINE h5dfill_f(fill_value, space_id, buf, hdferr)
  IMPLICIT NONE
  TYPE, INTENET(IN) :: fill_value        ! Fill value; may be have one of the
                                         ! following types:
                                         ! INTEGER, REAL, DOUBLE PRECISION, 
                                         ! CHARACTER
  INTEGER(HID_T), INTENT(IN) :: space_id ! Memory dataspace selection identifier 
  TYPE, DIMENSION(*) :: buf              ! Memory buffer to fill in; must have
                                         ! the same datatype as fill value
  INTEGER, INTENT(OUT) :: hdferr         ! Error code  
                                         ! 0 on success and -1 on failure
END SUBROUTINE h5dfill_f</code></pre>

Hdf rm anchor
AnchorNameparameters

Parameters:
HTML Wrap
classhdf-rm-section
const void *fillIN: Pointer to the fill value to be used

.

hid_t fill_type_id    IN: Fill value datatype identifier

.

void *bufIN/OUT: Pointer to the memory buffer containing the selection to be filled

.

hid_t buf_type_idIN: Datatype of dataspace elements to be filled

.

hid_t space_idIN: Dataspace describing memory buffer and containing the selection to be filled

.

Hdf rm anchor
AnchorNamedescription

Description:
HTML Wrap
classhdf-rm-section

H5D_FILL explicitly fills the dataspace selection in memory, space_id, with the fill value specified in fill. If fill is NULL, a fill value of 0 (zero) is used.

fill_type_id specifies the datatype of the fill value.

buf specifies the buffer in which the dataspace elements will be written.

buf_type_id specifies the datatype of those data elements.

Note that if the fill value datatype differs from the memory buffer datatype, the fill value will be converted to the memory buffer datatype before filling the selection.

Note

Applications sometimes write data only to portions of an allocated dataset. It is often useful in such cases to fill the unused space with a known fill value. See the following function for more information:

Content by Label
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "rm_h5p" and title ~ "H5P_SET_FILL_VALUE"

Other related functions include:

Content by Label
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "rm_h5p" and title ~ "H5P_GET_FILL_VALUE"

Content by Label
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "rm_h5p" and title ~ "H5P_FILL_VALUE_DEFINED"

Content by Label
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "rm_h5p" and title ~ "H5P_SET_FILL_TIME"

Content by Label
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "rm_h5p" and title ~ "H5P_GET_FILL_TIME"

Content by Label
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "rm_h5d" and title ~ "H5D_CREATE"

Content by Label
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "rm_h5d" and title ~ "H5D_CREATE_ANON"

Hdf rm anchor
AnchorNamereturns

Returns:
HTML Wrap
classhdf-rm-section

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

Hdf rm anchor
AnchorNameexample

Example:
HTML Wrap
classhdf-rm-section

Coming Soon!

Comment
HTML Wrap
classhdf-togglebox hdf-c

Bitbucket Server file
repoSlughdf5
branchIdrefs/heads/1.10/master
projectKeyHDFFV
filepathexamples/h5_subset.c
showLineNumberstrue
lineStart32
progLangcpp
lineEnd42
applicationLink5ac7b370-7412-3c8c-ad20-807a68261336

HTML Wrap
classhdf-togglebox hdf-fortran hdf-togglebox-hidden

Bitbucket Server file
repoSlughdf5
branchIdrefs/heads/1.10/master
projectKeyHDFFV
filepathfortran/examples/compound.f90
showLineNumberstrue
lineStart25
progLangplain
lineEnd35
applicationLink5ac7b370-7412-3c8c-ad20-807a68261336