Skip to content
Discussion options

You must be logged in to vote

Thanks for the sample. When I run the following code, I can successfully read the data of the datasets where the links point to.

using PureHDF;

string rootFilePath = "/path/to/blc16728_CeO2_NIST_Standard1.h5";
using var root = H5File.OpenRead(rootFilePath);

Console.WriteLine("Children from root:");

foreach (var child in root.Children())
{
    Console.WriteLine($"  Name: '{child.Name}', Type: {child.GetType().Name}");
    
    if (child is IH5Group group)
    {
        Console.WriteLine($"    Contents:");
        foreach (var item in group.Children())
        {
            Console.WriteLine($"      - {item.Name}");
            
            if (item is IH5Dataset dataset)
            {

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@esaMark
Comment options

@Apollo3zehn
Comment options

Answer selected by esaMark
@Apollo3zehn
Comment options

@esaMark
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants