Skip to main content

Questions tagged [hdf5-format]

Filter by
Sorted by
Tagged with
0 votes
0 answers
85 views

Splitting HDF5 file

Below I am attaching the h5 file that I want to analyze. There are two branches "S_F_VAL_0", "S_F_VAL_1" Each branch has 10 branches, which then have a dataset that is a 3D array ...
PhysicsStudy's user avatar
1 vote
1 answer
64 views

Strange behavior exporting UnsignedInteger64 in HDF5 format

The UnsignedInteger64 data format should be able to encode correctly any integer in $[0,2^{64}-1]$. When using this data format with ...
anonymous's user avatar
  • 463
0 votes
0 answers
333 views

Handling Missing Values in HDF5

Suppose you have a dataset with missing or "bad" values e.g. X = RandomReal[{0, 1}, {10000000}]; X = If[# < 0.1, "Bad", #] & /@ X; ...
Jonathan Kinlay's user avatar
2 votes
1 answer
530 views

Some problems importing *.hdf5 files in MA12.2

I'm attempting to Import datasets from a *.hdf5 file into Mathematica 12.2 in Win 7. After looking at the syntax in the Wolfram Documentation Center and displaying the StructureGraph, I had no problem ...
Neri's user avatar
  • 21
2 votes
1 answer
341 views

Export high precision data to HDF5

Recently, I would like to use HDF5 instead of CSV because of times Import taking. Especially, I have to manage large data with high precision (about 50 degits) and ...
Keyspire's user avatar
  • 359
3 votes
1 answer
1k views

Delete dataset from hdf5 file

Is there any way to remove a dataset from an hdf5 file using mathematica? Or, alternatively, is it possible to overwrite a dataset while keeping the other datasets intact? I've tried the following <...
AJHC's user avatar
  • 369
8 votes
2 answers
308 views

Where is HDF5Tools documentation?

MMA 12 apparently has a new package, HDF5Tools, which includes desperately needed functions that allow one to open an HDF5 file, get data from it, then close it ...
Leon Avery's user avatar
  • 1,352
1 vote
1 answer
484 views

Problem importing from HDF5

I'm trying to import an item from a valid HDF5 file, but I get this error: I can read the metadata, but cannot import the actual tensor dataset: And yet it's not an issue with the file's data - as ...
M.R.'s user avatar
  • 31.8k
2 votes
0 answers
90 views

Structured HDF5 Export doesn't create any output

I tried to use this example to organize my data, but ExportStructuredHDF5[file,data] just doesn't create or override a file in the specified folder... Minimal ...
user58967's user avatar
3 votes
1 answer
143 views

How to write both Attributes and DataFormat to an HDF5 file?

I can't figure out the command to Export an HDF5 file from Mathematica that includes both an Attribute and a DataFormat. I can do one or the other, but not both. Related questions: How to export ...
jeremyc0's user avatar
  • 133
3 votes
1 answer
2k views

How can I work with larger-than-memory hdf5 files

I am using Mathematica 11.0 and am trying to work with large .h5 files. Does anyone know if it's possible to work with files that are larger than the amount of available memory? I'm hoping that ...
jeremyc0's user avatar
  • 133
0 votes
0 answers
70 views

How to export this data/string more efficiently if possible at all? [duplicate]

Previously I asked a related question about my test data. Looking at the size of the data ans // ByteCount 9602605504 ...
Chen Stats Yu's user avatar
3 votes
0 answers
102 views

HDF5 does not support string?

I did a simulation for Baccarat. So some results are saved like this. ...
Chen Stats Yu's user avatar
3 votes
0 answers
61 views

Possible to add a “Heading” for the columns in HDF5 format?

A similar post was found here, but it's not using MMA. A small test to export HDF5 file, ...
Chen Stats Yu's user avatar
6 votes
1 answer
1k views

Mathematica + HDF5 basic examples

How to export/import basic Mathematica types using HDF5 file format? I find that the official Mathematica doc is missing some examples.
Picaud Vincent's user avatar
3 votes
1 answer
420 views

Open a hdf5 file in SWMR (single writer multiple reader) mode in Mathematica 9.0?

I'm running an experiment where I want to be able to save my data to HDF5 on a shared network drive on one computer (using python and h5py), and be able to read it and do analysis while it's running (...
llama's user avatar
  • 133
16 votes
2 answers
1k views

Exporting structured data to HDF5

Sadly the documentation is lacking any useful examples on how to Export more complex data in HDF5. There is only ...
Sascha's user avatar
  • 8,529
9 votes
1 answer
454 views

How to export nontrivial data to h5?

Version 11.1.1 comes with improved support for the HDFv5 (HDF is an acronym for Hierarchical Data Format) file format. How can I export (and import) the following data into h5 format? The data I ...
M.R.'s user avatar
  • 31.8k
2 votes
2 answers
3k views

How to append new data to an already existed hdf5 file?

Assume I export some data into a file like: data = {{1, 2, 3}, {4, 5, 6}}; Export["test.h5",data,{"Datasets","/h1"}]; How can I append ...
Hesam SoltanpanahiSarabi's user avatar
9 votes
2 answers
996 views

Extracting and displaying data from GW150914 hdf5 files

Has anyone looked at the LIGO data using Mathematica or know how to do this? I'm not familiar with the hdf5 format but I've been able to import the data, consisting primarily of 131,072 floating ...
fairflow's user avatar
  • 1,048
4 votes
3 answers
499 views

How can I export to HDF5 with a specific Datatype ("DataFormat")

I am trying to export some largish integer arrays to HDF5 and know that every entry in them would fit into an unsigned 8 bit integer array. As the default "DataFormat" for export that Mathematica is ...
Albert Retey's user avatar
  • 23.6k
1 vote
3 answers
3k views

HDF5 file managing for dummies

I am new to HDF5 format and I am also not hundred percent confident with Mathematica. I have googled to find out examples to deal with HDF5 files in Mathematica but couldn't find one that work out for ...
Manfredo's user avatar
  • 179
0 votes
0 answers
180 views

File Formats for Scientific Data [duplicate]

I have a simulation written in another language which currently just dumps all its data (doubles, lists of doubles, lists of lists of doubles) in lines in ASCII, and then I read it into Mathematica by ...
user avatar
6 votes
1 answer
1k views

Best practices with HDF5 and Datasets

I work with colleagues who rely on HDF5 as their data interchange format (largely exported from Python's Pandas). Of course we ...
flip's user avatar
  • 1,800
18 votes
4 answers
1k views

HDF5 importing large arrays

I have some computations that output a 300,000,000 element array of long unsigned ints, so about 2.4GB, in an h5 file. Mathematica handles files south of 2GB fine, albeit taking very long to import ...
Kartoffelpelz's user avatar
8 votes
2 answers
3k views

HDF5 and complex numbers

I'm exporting an array with complex numbers with HDF5 format. When I'm import it, I only get the real part. Simple example: ...
Mencia's user avatar
  • 1,364
0 votes
1 answer
291 views

Importing and manipulating data in HDF format

I have two matrices A1 and A2 in HDF format. I use the following code to import them. ...
Koustubh Gohad's user avatar
6 votes
1 answer
783 views

Exporting multiple arrays in a single HDF5 file in Mathematica 7

Bug introduced in 7.0 and fixed in 8.0 I am using Mathematica 7 and I need to export a table of data and the corresponding x and ...
Angela's user avatar
  • 61
10 votes
4 answers
2k views

How to export attributes or annotations to an HDF5 file?

I'm trying to export attributes and annotations to an HDF5 file. But the documentation here is horrible and there are no examples of this. I spent some time playing, but I can't get it to work. Here ...
Ajasja's user avatar
  • 13.8k
15 votes
4 answers
2k views

DataEncoding and compression in HDF5 format

I would like to export data in HDF5 format with Mathematica 9. The Mathematica manual about Import and Export of this format can be read here. As I'm dealing with large arrays, export often lead to ...
max's user avatar
  • 1,585