6
$\begingroup$

I downloaded Earth data from here. It is a GeoTiff file, which is a map of solar radiation falling on earth.

enter image description here

Mathematica claims to import GeoTiff files. However, when I import,

SetDirectory[NotebookDirectory[]]
files = FileNames["*", "./diffuse/"][[1]]
diffuse = Import[files, {"GeoTIFF", "Image"}]

The output is an error:

LinkObject::linkd: Unable to communicate with closed link LinkObject['/Applications/Mathematica.app/Contents/SystemFiles/Converters/Binaries/MacOSX-x86-64/GDAL.exe',6300,8].
Import::fmterr: Cannot import data as GeoTIFF format.

I can get the file to open using other GIS programs such as QGIS. So it does seem to be a Mathematica issue. Any ideas? It is an error which I have not encountered before.

$\endgroup$
2
  • 1
    $\begingroup$ My system (MMA 12 on Win10-64) does the same thing. The GDAL.exe file can be found where that path points, but trying to execute it manually brings up an error: "The code execution cannot proceed because ML64i4.dll was not found." This seems like a problem with MathLink. I do have copies of that DLL elsewhere in there, and copying one copy into that folder allows GDAL.EXE to execute, but unfortunately I do not know MathLink structures well enough to go any further. $\endgroup$
    – MarcoB
    May 31, 2020 at 19:51
  • 1
    $\begingroup$ Bug reported. I've been told there is no current workaround. $\endgroup$
    – Tomi
    Jun 4, 2020 at 17:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.