<html><body><div style="font-family: sans serif; font-size: 12pt; color: #000000"><div> <!--StartFragment--><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">Hello,</div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;"><br></div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">I have got black and white image files saved as .dt2 files which I need to open in Python to process some information contained in the image headers. I have installed gdal and related modules to use them in Spyder. When I used the open function, error 4 shows up (saying that the file does not have the right format) and I obtain a NoneType object for the data contained in the file. You will find here a screenshot of how the dataset looks like when open in Notepad++:</div><div style="orphans: 2; text-align: start; text-indent: 0px; widows: 2; background-color: rgb(253, 253, 253); text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;"><a href="https://pasteboard.co/JxI8QWd.jpg">https://pasteboard.co/JxI8QWd.jpg</a></div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;"> Is it because the file does not contain geospatial data that gdal cannot open it? If yes, any idea about how I could open such files in Python? If gdal should be able to open this kind of files, can you please help me to do it?</div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;"><br></div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">Many thanks already for your help and answer.</div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">Kind regards,</div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;"><br></div><div style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="color: #000000; font-family: 'sans serif'; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial;">Juliette</div><!--EndFragment--> </div></div></body></html>