Comments (16)
Yes it needs added. Thanks for the example.
Which nodejs version are you running with?
from hdf5.node.
Thanks for looking into this :-) I'm running with node version 4.2.2
from hdf5.node.
Ok, I'll put it with the master branch; test and then republish
from hdf5.node.
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.
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.
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.
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.
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.
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.
yea right-click is the html page
but left click goes to mov clip
from hdf5.node.
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.
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.
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.
Thank you, can read and test with this
from hdf5.node.
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.
Have both fixed and variable attributes
from hdf5.node.
Related Issues (20)
- Support for Single Writer Multiple Reader (SWMR)? HOT 7
- Getting dataset attribute (getDatasetAttribute) on a 32 bit floating point in NODE/javascript returns a totally different value HOT 6
- hdf5_home_win does not get set HOT 2
- Read dataset with 2d array stored fails on reading chunks HOT 10
- issues reading 4 dimensional dataset HOT 2
- SyntaxError: unsupported data type on compound datasets HOT 5
- Node 12? HOT 32
- Delete attribute HOT 6
- Tutorial: "Writing & Reading subsets" is not working. HOT 3
- Segfault reading HOT 4
- issue with appending to tables on windows 10
- Error: The specified procedure could not be found. (process.dlopen) HOT 1
- `hdf5.File is not a constructor` when bundled with webpack HOT 2
- cannot install HOT 3
- Win10+Node v14.15.5 Compilation errors HOT 6
- Getting data from Buffer
- Compile Error HOT 12
- install with yarn? HOT 2
- windows-build-tools / vs2017? HOT 37
- Error with handling variable length data (H5T_VLEN) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hdf5.node.