cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
nikles
Level VI

Help on opening hdf5 files

Hi,

 

I'm trying to use JMP to open a hdf5 file using a script.  I can successfully open it using the Open() command:

blobpath = "/Documents/myblob";
dtblob_lis = Open(blobpath);

but I get a pop-up asking which data set I'd like to open: 

nikles_0-1734559582775.png

My question: is there an option in the Open() command I could use to specify which data set within the blob I wish to open, and avoid the pop-up?  Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Help on opening hdf5 files

You can open individual items within the HDF5 dataset by using a JSL list to specify the members to open.  For example, the following worked for me (specifying the file extension as well):

open("d:\testdata\HDF5\hdf5data.h5", {"/g2/float"});

 

In your case, it might look like:

open("/Documents/myblob.h5", {"/CSIG_RAW_IMG_OFF/F0/FrameNumbers", "/CSIG_RAW_IMG_OFF/F0/Frames"});

 

I hope that helps.

 

Brian Corcoran

JMP Development

View solution in original post

12 REPLIES 12
hogi
Level XII

Re: Help on opening hdf5 files

... and is there a way to record the action?

hogi
Level XII

Re: Help on opening hdf5 files

as an alternative: use h5py.
very smooth sinde JMP18 : )

nikles
Level VI

Re: Help on opening hdf5 files

Unfortunately my org has not adopted JMP18 yet.

hogi
Level XII

Re: Help on opening hdf5 files

LearnBot: the same.
refreshingly honest : )

hogi_0-1734565267266.png

nikles
Level VI

Re: Help on opening hdf5 files

Ha.

hogi
Level XII

Re: Help on opening hdf5 files

hogi_2-1734629957662.png vs. hogi_0-1734629899220.png

hogi_1-1734629926501.png

 

nikles
Level VI

Re: Help on opening hdf5 files

That was the first thing I tried.  No, there is no apparent recording of actions in the log or in the table(s) that are created.

jthi
Super User

Re: Help on opening hdf5 files

This is a guess but based on the discussion on Automate opening an hdf5 file Python Integration might be the answer. @briancorcoran 

 

You don't have to use JMP's Python integration to manage file opening/conversion with Python, create a python script which you can run from command line (using Run Program())which takes inputs you need (file path at least), saves it as .csv and then open that .csv in JMP. That is how I used Python before JMP18 in JMP (and still do from time to time). You can of course try using JMP's Python integration in versions earlier than 18, but I wouldn't bother and would just run it from command line.

-Jarmo

Re: Help on opening hdf5 files

You can open individual items within the HDF5 dataset by using a JSL list to specify the members to open.  For example, the following worked for me (specifying the file extension as well):

open("d:\testdata\HDF5\hdf5data.h5", {"/g2/float"});

 

In your case, it might look like:

open("/Documents/myblob.h5", {"/CSIG_RAW_IMG_OFF/F0/FrameNumbers", "/CSIG_RAW_IMG_OFF/F0/Frames"});

 

I hope that helps.

 

Brian Corcoran

JMP Development