Detach dimension scale dsid from the dimension idx of Dataset did.

Procedure:

H5DS_DETACH_SCALE(did, dsid, idx)

Signature:

<pre><code class="language-c">herr_t H5DSdetach_scale(hid_t did, hid_t dsid, unsigned int idx)</code></pre>

<pre><code class="language-fortran">SUBROUTINE H5DSdetach_scale_f(did, dsid, idx, errcode)
    IMPLICIT NONE

    INTEGER(hid_t), INTENT(in) :: did     ! The dataset
    INTEGER(hid_t), INTENT(in) :: dsid    ! The scale to be detached 
    INTEGER       , INTENT(in) :: idx     ! The dimension of did to detach
    INTEGER                    :: errcode ! Error code
END SUBROUTINE H5DSdetach_scale_f</code></pre>

Parameters:
hid_t did;IN: the dataset
hid_t dsid;IN: the scale to be detached
unsigned int idx;    IN: the dimension of did to detach

Description:

If possible, deletes association of Dimension Scale dsid with dimension idx of Dataset did. This deletes the entries in the DIMENSION_LIST and REFERENCE_LIST attributes, as defined in section 4.2.

Fails if:

  • Bad arguments
  • The dataset did or dsid do not exist.
  • The dsid is not a Dimension Scale
  • dsid is not attached to did.

Note that a scale may be associated with more than dimension of the same dataset. If so, the detach operation only deletes one of the associations, for did.

Returns:

Zero if succeed, negative if fail.

Example:

Coming Soon!