# How to convert h5 to csv

**URL:** <https://discourse.julialang.org/t/how-to-convert-h5-to-csv/60346>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 30, 2021, 9:01pm UTC](https://discourse.julialang.org/t/how-to-convert-h5-to-csv/60346 "2021-04-30T21:01:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![T-Shino-0603](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-shino-0603/32/24617_2.png) [@T-Shino-0603](https://discourse.julialang.org/u/T-Shino-0603)\
**Post date:** [April 30, 2021, 9:01pm UTC](https://discourse.julialang.org/t/how-to-convert-h5-to-csv/60346/1 "2021-04-30T21:01:15Z")

</div>

My question is very simple.

I have a h5 file with the following structure.

```julia
Dict{String,Any}("mb" => MeansBands
  class: obs
  product: forecast
  cond: none
  para: full
  dates: 2021-03-31 - 2030-12-31
  # of variables: 10
  bands: ["50.0%", "60.0%", "90.0%"]
)

```

Would you mind letting me know how to convert this h5 to csv?

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [April 30, 2021, 9:10pm UTC](https://discourse.julialang.org/t/how-to-convert-h5-to-csv/60346/2 "2021-04-30T21:10:05Z")

</div>

Hi!  
You can use the package [GitHub - JuliaIO/HDF5.jl: Save and load data in the HDF5 file format from Julia](https://github.com/JuliaIO/HDF5.jl) to read it and then the `writedlm` function from the standard library `DelimitedFiles`.

---

<div class="post-metadata">

**Author:** ![T-Shino-0603](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-shino-0603/32/24617_2.png) [@T-Shino-0603](https://discourse.julialang.org/u/T-Shino-0603)\
**Post date:** [April 30, 2021, 9:17pm UTC](https://discourse.julialang.org/t/how-to-convert-h5-to-csv/60346/3 "2021-04-30T21:17:16Z")

</div>

Thank you.

I will try it!
