# Is there a reader for Analyze 7.5 hdr/img 3D image format?

**URL:** https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209
**Category:** ParaView Support
**Created:** [May 11, 2021, 3:31pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209 "2021-05-11T15:31:58Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 11, 2021, 3:31pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/1 "2021-05-11T15:31:58Z")

</div>

I can read the img file with the “raw” reader. It is a bit fiddly because I have to first poke around the header to find out the dimensions and the data type. So I’m wondering if anyone has a plug-in or something to read this format?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 11, 2021, 3:36pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/2 "2021-05-11T15:36:51Z")

</div>

ParaView 5.9.0 has a .hdr file reader.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 11, 2021, 3:52pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/3 "2021-05-11T15:52:32Z")

</div>

Thank you. Is it perhaps called something else? I don’t see it on the list:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/ee45f2e89af1acad47a79dacca4ffe99ec1ad80f.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 11, 2021, 3:57pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/4 "2021-05-11T15:57:35Z")

</div>

It should be automatically picked. Please share your file.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 11, 2021, 4:05pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/5 "2021-05-11T16:05:20Z")

</div>

[s.hdr](https://discourse.paraview.org/uploads/short-url/27w7USvdgaqPNtpN2Y9FuFzGnIb.hdr) (348 Bytes) [s.img](https://discourse.paraview.org/uploads/short-url/rk8JWlvLcY3pQ84u4X5KbwkIg3M.img) (73.4 KB)  
Thanks!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 11, 2021, 4:08pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/6 "2021-05-11T16:08:42Z")

</div>

Your hdr file is not compatible with our reader.

[http://paulbourke.net/dataformats/pic/](http://paulbourke.net/dataformats/pic/)

> **[RGBE image format](https://en.wikipedia.org/wiki/RGBE_image_format)**
>
> RGBE or Radiance HDR is an image format invented by Gregory Ward Larson for the Radiance rendering system. It stores pixels as one byte each for RGB (red, green, and blue) values with a one byte shared exponent. Thus it stores four bytes per pixel.
> RGBE allows pixels to have the dynamic range and precision of floating-point values in a relatively compact data structure (32bits per pixel) - often when images are generated from light simulations, the range of per-pixel color intensity values are m...

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 11, 2021, 4:11pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/7 "2021-05-11T16:11:10Z")

</div>

I see. As stated above, the format is “Analyze 7.5”. Apparently readers for NIfTI images might be able to handle it…

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 11, 2021, 4:13pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/8 "2021-05-11T16:13:48Z")

</div>

Indeed, I should have read more carefully.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 11, 2021, 8:14pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/9 "2021-05-11T20:14:52Z")

</div>

Is it possible to write a Paraview reader in Python?

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 11, 2021, 9:08pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/10 "2021-05-11T21:08:20Z")

</div>

There is a bit about reading raw data from xdmf files. I hve to admit I don’t understand the example [Reading a time varying Raw file into Paraview](https://www.paraview.org/Wiki/ParaView/Data_formats#Read_a_Raw_file_into_Paraview). What is supposed to happen? The xml file is read, no error. But when is the raw file read?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 12, 2021, 11:47am UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/11 "2021-05-12T11:47:06Z")

</div>

> Is it possible to write a Paraview reader in Python?

Yes !  
[https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html?highlight=programmable%20source#reading-binary-2d-image](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html?highlight=programmable%20source#reading-binary-2d-image)

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 12, 2021, 2:41pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/12 "2021-05-12T14:41:51Z")

</div>

Splendid! Thank you very much for the link.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petrkryslucsd/32/5908_2.png) [@PetrKryslUCSD](https://discourse.paraview.org/u/PetrKryslUCSD)
#### Post date: [May 12, 2021, 2:45pm UTC](https://discourse.paraview.org/t/is-there-a-reader-for-analyze-7-5-hdr-img-3d-image-format/7209/13 "2021-05-12T14:45:23Z")

</div>

BTW: the section heading is wrong: it is a 3d image, not 2d.
