Skip to content

Commit

Permalink
Added bin to KNOWN_EXTS
Browse files Browse the repository at this point in the history
Some societies use ".bin"  as the format for raw data, such as data acquired by Silios' Toucan camera.
  • Loading branch information
mhmdjouni authored Oct 18, 2024
1 parent 0659ee7 commit d23eccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectral/io/envi.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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
Expand Down

0 comments on commit d23eccc

Please sign in to comment.