How to read a 16-bit unsigned integer big endian binary file in Python

174 views Asked by At

I need to read a 16-bit unsigned integer big endian binary file in Python. Here's some information that may be relevant:

  • No. of Dimensions: 3
  • Dimension Size: 64 x 384 x 384
  • Max Dimension Size: 64 x 384 x 384
  • Data type: 16-bit unsigned integer
  • Storage Layout: CHUNKED 32 x 128 x 128
  • Compression: 2.526:1 GZIP: level=2
  • Storage: SIZE: 742159, allocation time: Incremental
  • Fill value: NONE

The file itself is supposed to be a 3-dimensional image of a brain. I exported the file from an IMS file using HDFView. I want to convert the file to a numpy array. The file extension is ".bin".

Supplementary Information:

Picture of HDFView, a tool used to export the data in question from an IMS file

HDFViewer

Link to a description of the IMS file-type

https://imaris.oxinst.com/support/imaris-file-format

Link to the machine used to make the IMS file

https://www.zeiss.com/microscopy/en/products/light-microscopes/light-sheet-microscopes/lightsheet-7.html

Data:

Google drive link to the data

https://drive.google.com/file/d/1wo4iSBLvNu51qYPTyUpGdKgdwJUG0eed/view?usp=sharing

0

There are 0 answers