measure 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #------------------------------------------------------------------------------
  2. # $File: measure,v 1.4 2026/01/23 16:41:32 christos Exp $
  3. # measure: file(1) magic for measurement data
  4. # DIY-Thermocam raw data
  5. 0 name diy-thermocam-parser
  6. >0 beshort x scale %d-
  7. >2 beshort x \b%d,
  8. >4 lefloat x spot sensor temperature %f,
  9. >9 ubyte 0 unit celsius,
  10. >9 ubyte 1 unit fahrenheit,
  11. >8 ubyte x color scheme %d
  12. >10 ubyte 1 \b, show spot sensor
  13. >11 ubyte 1 \b, show scale bar
  14. >12 ubyte &1 \b, minimum point enabled
  15. >12 ubyte &2 \b, maximum point enabled
  16. >13 lefloat x \b, calibration: offset %f,
  17. >17 lefloat x slope %f
  18. 0 name diy-thermocam-checker
  19. >9 ubyte <2
  20. >>10 ubyte <2
  21. >>>11 ubyte <2
  22. >>>>12 ubyte <4
  23. >>>>>17 lefloat >0.0001 DIY-Thermocam raw data
  24. # V2 and Leption 3.x:
  25. 38408 ubyte <19
  26. >38400 use diy-thermocam-checker
  27. >>38400 default x (Lepton 3.x),
  28. >>>38400 use diy-thermocam-parser
  29. # V1 or Lepton 2.x
  30. 9608 ubyte <19
  31. >9600 use diy-thermocam-checker
  32. >>9600 default x (Lepton 2.x),
  33. >>>9600 use diy-thermocam-parser
  34. # Becker & Hickl Photon Counting (PMS) data file
  35. # format documentation: https://www.becker-hickl.com/wp-content/uploads/2018/11/opm-pms400-v01.pdf (page 57)
  36. (0x02.l) string *IDENTIFICATION Becker & Hickl PMS Data File
  37. >0x12 short x (%d data blocks)
  38. !:ext sdt
  39. # https://www.asam.net/standards/detail/mdf/
  40. 0 string MDF\x20\x20\x20\x20\x20 ASAM/MDF measurement file Version
  41. >8 regex .\\... %s
  42. >12 string \x20\x20\x20\x20
  43. >62 byte !0 (unfinalized)
  44. >64 string ##HD