From 1c346dc9b23f2a8dd0c016282c4e12a39523502c Mon Sep 17 00:00:00 2001 From: "Mohamad Jouni (Luffy Uzumaki)" <33843331+mhmdjouni@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:24:34 +0200 Subject: [PATCH] Added 'bin' to KNOWN_EXTS Some societies use the '.bin' format (like Silios' Toucan camera) to save the raw data. --- spectral/io/envi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectral/io/envi.py b/spectral/io/envi.py index 7b420b2..d81101b 100644 --- a/spectral/io/envi.py +++ b/spectral/io/envi.py @@ -41,7 +41,7 @@ # Known ENVI data file extensions. Upper and lower case versions will be # recognized, as well as interleaves ('bil', 'bip', 'bsq'), and no extension. -KNOWN_EXTS = ['img', 'dat', 'sli', 'hyspex', 'raw'] +KNOWN_EXTS = ['img', 'dat', 'sli', 'hyspex', 'raw', 'bin'] dtype_map = [('1', np.uint8), # unsigned byte ('2', np.int16), # 16-bit int