Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3196

Binary File Problem

$
0
0

Hi again,

 

I am trying to extract data from a specific binary file (extension .elf, zipped and attached) containing 21 fields and of block size 1158. There are about 5000 or so blocks in the file. They are mostly individual values of double or int type and present no challenge to read or extract. However, one of the above fields is 512 shorts in size (F spectrum) and I would like the data plugin to create an individual channel for each of the blocks it extracts this field from. In other words Channel F1 (512 in size) for Block 1, Channel F2 (512 in size) for Block 2 and so on. The said field starts at offset 42.

 

So as I understand it :

 

oBlock.BlockWidth =1158
oBlock.Position = 42

oBlock.BlockLength = 512

 

I cannot seem to extract the channels in the way I  need them, hence this message. Help is most appreciated.

Binary file attached.

 

Best regards,

 


Viewing all articles
Browse latest Browse all 3196

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>