From 3980160e2323cab7825bfb323d62ee431facb3ed Mon Sep 17 00:00:00 2001 From: Christos Zoulas <christos@zoulas.com> Date: Tue, 28 Nov 2017 14:01:14 +0000 Subject: [PATCH] DYI-Thermocam magic from Harald Geyer --- magic/Magdir/measure | 39 +++++++++++++++++++++++++++++++++++++++ magic/Makefile.am | 3 ++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 magic/Magdir/measure diff --git a/magic/Magdir/measure b/magic/Magdir/measure new file mode 100644 index 00000000..f23c1d6b --- /dev/null +++ b/magic/Magdir/measure @@ -0,0 +1,39 @@ + +#------------------------------------------------------------------------------ +# $File: measure,v 1.1 2017/11/28 14:01:14 christos Exp $ +# measure: file(1) magic for measurement data + +# DIY-Thermocam raw data +0 name diy-thermocam-parser +>0 beshort x scale %d- +>2 beshort x \b%d, +>4 lefloat x spot sensor temperature %f, +>9 byte 0 unit celsius, +>9 byte 1 unit fahrenheit, +>8 byte x color scheme %d +>10 byte 1 \b, show spot sensor +>11 byte 1 \b, show scale bar +>12 byte &1 \b, minimum point enabled +>12 byte &2 \b, maximum point enabled +>13 lefloat x \b, calibration: offset %f, +>17 lefloat x slope %f + +0 name diy-thermocam-checker +>9 byte <2 +>>10 byte <2 +>>>11 byte <2 +>>>>12 byte <4 +>>>>>17 lefloat >0.0001 DIY-Thermocam raw data + +# V2 and Leption 3.x: +38408 byte <19 +>38400 use diy-thermocam-checker +>>38400 default x (Lepton 3.x), +>>>38400 use diy-thermocam-parser + +# V1 or Lepton 2.x +9608 byte <19 +>9600 use diy-thermocam-checker +>>9600 default x (Lepton 2.x), +>>>9600 use diy-thermocam-parser + diff --git a/magic/Makefile.am b/magic/Makefile.am index d595d7d0..b3a74fb9 100644 --- a/magic/Makefile.am +++ b/magic/Makefile.am @@ -1,5 +1,5 @@ # -# $File: Makefile.am,v 1.128 2017/11/03 23:37:34 christos Exp $ +# $File: Makefile.am,v 1.129 2017/11/28 14:01:14 christos Exp $ # MAGIC_FRAGMENT_BASE = Magdir MAGIC_DIR = $(top_srcdir)/magic @@ -157,6 +157,7 @@ $(MAGIC_FRAGMENT_DIR)/mathcad \ $(MAGIC_FRAGMENT_DIR)/mathematica \ $(MAGIC_FRAGMENT_DIR)/matroska \ $(MAGIC_FRAGMENT_DIR)/mcrypt \ +$(MAGIC_FRAGMENT_DIR)/measure \ $(MAGIC_FRAGMENT_DIR)/mercurial \ $(MAGIC_FRAGMENT_DIR)/metastore \ $(MAGIC_FRAGMENT_DIR)/meteorological \ -- 2.40.0