# Writing to HDF5 File with Compound Datatypes

**URL:** <https://discourse.julialang.org/t/writing-to-hdf5-file-with-compound-datatypes/55408>\
**Category:** General Usage\
**Tags:** hdf5, data\
**Created:** [February 16, 2021, 5:57pm UTC](https://discourse.julialang.org/t/writing-to-hdf5-file-with-compound-datatypes/55408 "2021-02-16T17:57:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicrummel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nicrummel/32/6304_2.png) [@nicrummel](https://discourse.julialang.org/u/nicrummel)\
**Post date:** [February 16, 2021, 5:57pm UTC](https://discourse.julialang.org/t/writing-to-hdf5-file-with-compound-datatypes/55408/1 "2021-02-16T17:57:34Z")

</div>

The HDF5.jl is a great tool for reading and analyzing data from HDF5 files in Julia, but the process of **writing** is not straight forward. It appears that I will need to go through the low level API to accomplish the task of writing compound datatypes to a file. Is there an easier way?

See linked issue for example code  
[Issue Link](https://github.com/JuliaIO/HDF5.jl/issues/819#issue-809511544)

A similar question was asked and not answered a few years ago.  
[Link To Unresolved Discourse Post](https://discourse.julialang.org/t/hdf5-writing-to-a-compound-table/6265)
