Skip to content

Viewing Nested Compound Datatypes #1928

@Snore

Description

@Snore

Is your feature request related to a problem?

I have a nested compound datatype I would like to view. The h5dump looks roughly like this:

HDF5 "./example.h5" {
GROUP "/" {
   DATASET "my_sincos_table" {
      DATATYPE  H5T_COMPOUND {
         H5T_COMPOUND {
            H5T_IEEE_F32LE "sin";
            H5T_IEEE_F32LE "cos";
         } "sincos_name";
      }
      DATASPACE  SIMPLE { ( 3 ) / ( H5S_UNLIMITED ) }
      DATA {
      (0): {
            {
               0,
               0
            }
         },
      (1): {
            {
               0,
               0
            }
         },
      (2): {
            {
               0,
               0
            }
         }
      }
   }
}
}

I cut down the data for this example.

When I open the h5 file in H5Web, it only shows me the raw output with no option to visualize it:

Image

If I remove the outer nesting, there is no problem. If I change the outer nesting to a group, there is also no problem. This is a fabricated simplified example from a more complex nested compound type I am trying to use.

Requested solution or feature

I understand it would be hard to imagine how a user would want their complex nested compound type to be displayed. But I would personally be happy if the H5Web application somehow treated the outer compound types like a Group such that I could click deep enough into my structure's layout on the left hand panel and it would display a visualization much like if it were nested in a handful of groups.

Alternatives you've considered

I'm tinkering with artificially making some of these complex nested compound types groups in a post processing manner so that H5Web will cooperate. However, as some of these are already in other groups, it would add a small amount of confusion for the user that I am hoping to avoid.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions