From a51a52291f6e478db6238cb1cd4a410b4d4dbd83 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 31 Oct 2024 15:39:09 +0100 Subject: Correct radiometric kelvin offset for P200 The P200 uses 273.2K instead of 273.0K like e.g. the C201. We now read this value from a suspected file header field. --- src/infiray_irg.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/infiray_irg.py b/src/infiray_irg.py index 22d500e..273d3fe 100644 --- a/src/infiray_irg.py +++ b/src/infiray_irg.py @@ -1,4 +1,5 @@ from PIL import Image +import warnings import numpy as np import struct import io @@ -26,14 +27,19 @@ def load(data): _zero0, _unk1, _zero1, fine_offset, _unk2, jpeg_length,\ y_res_2, x_res_2, _unk3, = struct.unpack('