Help us improve by taking our short survey: https://www.hdfgroup.org/website-survey/

| HDF5 Last Updated on 2025-11-11 The HDF5 Field Guide

- Main Page
- Getting started
- User Guide
- Reference Manual
- Cookbook
- Technical Notes
- RFCs
- Specifications
- Glossary
- Full-Text Search
- About

Loading...
Searching...
No Matches
Macros | Typedefs | Functions
H5DSpublic.h File Reference

## Macros
#define | DIMENSION_LABELS "DIMENSION_LABELS"
#define | DIMENSION_LIST "DIMENSION_LIST"
#define | DIMENSION_SCALE_CLASS "DIMENSION_SCALE"
#define | REFERENCE_LIST "REFERENCE_LIST"

## Typedefs
typedef herr_t(* | H5DS_iterate_t) (hid_t dset, unsigned dim, hid_t scale, void *visitor_data)
| Prototype for H5DSiterate_scales() operator.

## Functions
H5HL_DLL herr_t | H5DSattach_scale (hid_t did, hid_t dsid, unsigned int idx)
| Attach dimension scale `dsid` to dimension `idx` of dataset did.
H5HL_DLL herr_t | H5DSdetach_scale (hid_t did, hid_t dsid, unsigned int idx)
| Detach dimension scale `dsid` from the dimension `idx` of dataset `did`.
H5HL_DLL ssize_t | H5DSget_label (hid_t did, unsigned int idx, char *label, size_t size)
| Read the label for dimension `idx` of `did` into buffer `label`.
H5HL_DLL int | H5DSget_num_scales (hid_t did, unsigned int idx)
| Determines how many Dimension Scales are attached to dimension `idx` of `did`.
H5HL_DLL ssize_t | H5DSget_scale_name (hid_t did, char *name, size_t size)
| Retrieves name of scale `did` into buffer `name`.
H5HL_DLL htri_t | H5DSis_attached (hid_t did, hid_t dsid, unsigned int idx)
| Report if dimension scale `dsid` is currently attached to dimension `idx` of dataset `did`.
H5HL_DLL htri_t | H5DSis_scale (hid_t did)
| Determines whether `did` is a Dimension Scale.
H5HL_DLL herr_t | H5DSiterate_scales (hid_t did, unsigned int dim, int *idx, H5DS_iterate_t visitor, void *visitor_data)
| Iterates the operation visitor through the scales attached to dimension `dim`.
H5HL_DLL herr_t | H5DSset_label (hid_t did, unsigned int idx, const char *label)
| Set label for the dimension `idx` of `did` to the value `label`.
H5HL_DLL herr_t | H5DSset_scale (hid_t dsid, const char *dimname)
| Convert dataset `dsid` to a dimension scale, with optional name, `dimname`.
H5HL_DLL herr_t | H5DSwith_new_ref (hid_t obj_id, bool *with_new_ref)
| Determines if new references are used with dimension scales.

## Macro Definition Documentation

## ◆ DIMENSION_LABELS

#define DIMENSION_LABELS "DIMENSION_LABELS"

## ◆ DIMENSION_LIST

#define DIMENSION_LIST "DIMENSION_LIST"

## ◆ DIMENSION_SCALE_CLASS

#define DIMENSION_SCALE_CLASS "DIMENSION_SCALE"

## ◆ REFERENCE_LIST

#define REFERENCE_LIST "REFERENCE_LIST"

## Typedef Documentation

## ◆ H5DS_iterate_t

typedef herr_t(* H5DS_iterate_t) (hid_t dset, unsigned dim, hid_t scale, void *visitor_data)

Prototype for H5DSiterate_scales() operator.