Giter VIP home page Giter VIP logo

Comments (16)

rimmartin avatar rimmartin commented on June 23, 2024

Yes it needs added. Thanks for the example.

Which nodejs version are you running with?

from hdf5.node.

scottwittenburg avatar scottwittenburg commented on June 23, 2024

Thanks for looking into this :-) I'm running with node version 4.2.2

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

Ok, I'll put it with the master branch; test and then republish

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

btw, the use of nodejs Buffer is now the same as using Uint8Array which has a major size limitation to 2 Gb; am looking into streaming to overcome this change of the V8 that caused the node team to make Buffer derive completely from Uint8Array

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

Hi, I have some code working for my own attribute example; haven't been able to read http://wikisend.com/download/692318/simple-nba.h5 with HDFView or by api.

Are the attributes you are using on groups and/or datasets?

from hdf5.node.

scottwittenburg avatar scottwittenburg commented on June 23, 2024

They are on a group. I am able to read them with h5dump on linux, and I have a patch to attributes.hpp that reads them, if you are interested. Or let me know if there is some other way I can help. Thanks for your great work!

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

I meant to say couldn't open http://wikisend.com/download/692318/simple-nba.h5 with any tool; not just see variable length strings

from hdf5.node.

scottwittenburg avatar scottwittenburg commented on June 23, 2024

Hmmm, I just downloaded it from there, and ran h5dump on it, and this is what I see:

HDF5 "/.../Downloads/simple-nba.h5" {
GROUP "/" {
   GROUP "info" {
      ATTRIBUTE "packageHash" {
         DATATYPE  H5T_STRING {
            STRSIZE H5T_VARIABLE;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
         DATA {
         (0): "457ba473cc529e0e6c2dac3c64f1865c"
         }
      }
      ATTRIBUTE "packageID" {
         DATATYPE  H5T_STRING {
            STRSIZE H5T_VARIABLE;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
         DATA {
         (0): "DEADBEEF87726342"
         }
      }
      ATTRIBUTE "packageName" {
         DATATYPE  H5T_STRING {
            STRSIZE H5T_VARIABLE;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
         DATA {
         (0): "NBA Player DAta (2014/2015)"
         }
      }
      ATTRIBUTE "parentPackage" {
         DATATYPE  H5T_STRING {
            STRSIZE H5T_VARIABLE;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
         DATA {
         (0): "NA"
         }
      }
      ATTRIBUTE "rootPackage" {
         DATATYPE  H5T_STRING {
            STRSIZE H5T_VARIABLE;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
         DATA {
         (0): "NA"
         }
      }
   }
}
}

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

If I left click it takes me to a page that downloads a movie of a gymnastics practice; called MAGpr1.MOV
If I right click and download and check it with h5debug I get

HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
  #000: /home/roger/Software/hdf5-1.8.16/src/H5F.c line 604 in H5Fopen(): unable to open file
    major: File accessibilty
    minor: Unable to open file
  #001: /home/roger/Software/hdf5-1.8.16/src/H5Fint.c line 1087 in H5F_open(): unable to read superblock
    major: File accessibilty
    minor: Read failed
  #002: /home/roger/Software/hdf5-1.8.16/src/H5Fsuper.c line 277 in H5F_super_read(): file signature not found
    major: File accessibilty
    minor: Not an HDF5 file
cannot open file

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

yea right-click is the html page

but left click goes to mov clip

from hdf5.node.

scottwittenburg avatar scottwittenburg commented on June 23, 2024

Ok, now that's what I'm seeing too, though an hour or two ago, the data at that link was still my example, or perhaps my browser had cached the page. I think that means I should no longer use wikisend. Do you have any other suggestion for how I should share the file?

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

Seems a useful way; my mistake was right-clicking to download last week and not testing right away. Could try it again.

npm owner ls

in a working folder of hdf5.node will give you my email too

from hdf5.node.

scottwittenburg avatar scottwittenburg commented on June 23, 2024

Ok, I uploaded again, it says you should have 7 days to access the file:

http://wikisend.com/download/654088/simple-nba.h5

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

Thank you, can read and test with this

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

Test is working. Been puzzling over when writing string type attributes when to make their size variable [with H5T_VARIABLE] or known size. Or how to distinguish these on the javascript side.

from hdf5.node.

rimmartin avatar rimmartin commented on June 23, 2024

Have both fixed and variable attributes

from hdf5.node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.