Python Forum
Import and/or read IMC measurement data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import and/or read IMC measurement data
#1
Hi guys,

I'm just wondering if there is a module for importing and reading IMC measurement data?
I am currently converting the files to MatLab files with Famos (read program for IMC data) and then using scipy.io.loadmat to import them into Python workspace. It would have huge advantages if I could read the data directly...

So my idea was to read the binary myself, but I soon realized that it was obviously not that easy.

A pretty small file looks like this:

Quote:|CF,2,1,1;|CK,1,3,1,1;
|Nv,1,13,7,1,14,32,0,0;
|NO,1,7,1,0,,0,;
|NL,1,10,1252,0x409;
|CG,1,5,2,3,2;
|CD,1,13,1,1,1,s,0,0,0;
|NT,1,27,26, 8,2018,23,38,16.6099999;
|CC,1,3,1,1;
|CP,1,16,1,8,8,64,0,0,1,0;
|Cb,1,28,1,0,1,1,0,4808,0,4808,1,0,0,;
|CR,1,11,0,0,0,1,1,A;
|CN,1,29,0,0,0,17,AI_CuRotorCurrent,0,;
|CC,1,3,2,1;
|CP,1,16,2,8,8,64,0,0,1,0;
|Cb,1,31,1,0,2,1,4808,4808,0,4808,1,0,0,;
|CR,1,11,0,0,0,1,1,s;
|CS,1,9618,1, Íý…@ àtÄ…@ À’3†@ Û6†@ àY†@ À˜†@ •˜†@ ò†@ ÷‡@  ~‡@ €ª‡@  ã‡@ /ˆ@ TXˆ@ —&ˆ@ º&ˆ@ ÀjYˆ@ à/*ˆ@  ˆ@  c ˆ@  'ˆ@ oˆ@ Wù‡@ Àä.ˆ@ v±‡@ @¶‡@ ଦ‡@ àðH‡@ €Õì†@ €å¦†@ ๆ@ @[y†@ @k~†@ x’†@ u†@ H…†@ À#І@  “܆@ €B£†@ ‡¥†@  pþ†@ ›Ë†@  ¢¼†@ @U‡@  ‡@  Õ3‡@ @¯H‡@ À虇@ àîw‡@  !º‡@ ­‡@  `‡@ €9T‡@ 3‡@ àÜu‡@ (:‡@ ‘*‡@  ±Y‡@ à‡@ ÀíI‡@  3-‡@ @ñ‡@ {‡@ àzð†@ @Kí†@
‡@  7 ‡@ @‡@ à–‡...

It starts with normal characters but the actual data are (I think) binary doubles and there comes my problem. How can I read the data information until a specific point and then encode these binary data? I've tried a lot of things to convert the binary data to a human readable form without success.

I would really appreciate every help!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with to check an Input list data with a data read from an external source sacharyya 3 318 Mar-09-2024, 12:33 PM
Last Post: Pedroski55
  Plot a pandas data fram via pyqtgraph with an modul import and qt designer widget Nietzsche 0 801 May-29-2023, 02:42 PM
Last Post: Nietzsche
Video doing data treatment on a file import-parsing a variable EmBeck87 15 2,667 Apr-17-2023, 06:54 PM
Last Post: EmBeck87
  Python 3.11 data import question love0715 2 772 Mar-05-2023, 06:50 PM
Last Post: snippsat
  Correctly read a malformed CSV file data klllmmm 2 1,814 Jan-25-2023, 04:12 PM
Last Post: klllmmm
  Read nested data from JSON - Getting an error marlonbown 5 1,309 Nov-23-2022, 03:51 PM
Last Post: snippsat
  Can't import csv data JonWayn 4 1,330 Sep-18-2022, 02:07 AM
Last Post: JonWayn
  Read data via bluetooth frohr 9 3,150 Jul-10-2022, 09:51 AM
Last Post: frohr
  Write and read back data Aggie64 6 1,812 Apr-18-2022, 03:23 PM
Last Post: bowlofred
  How to read rainfall time series and insert missing data points MadsM 4 2,123 Jan-06-2022, 10:39 AM
Last Post: amdi40

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020