1
$\begingroup$

I am trying to read a geotiff file that is not recognized by Mathematica as a geotiff file.

Import["NOAA.tif", "Elements"]

{"Animation", "Author", "BitDepth", "CameraTopOrientation", 
"Channels", "ColorMap", "ColorProfileData", "ColorSpace", "Comments", 
"CopyrightNotice", "Data", "DateTime", "Device", 
"DeviceManufacturer", "Exif", "FlashUsed", "GeoPosition", 
"GPSDateTime", "Graphics", "GraphicsList", "Image", "Image3D", 
"ImageCount", "ImageCreationDate", "ImageEncoding", "ImageList",
"ImageResolution", "ImageSize", "IPTC", "MakerNote", 
"MetaInformation", "RawData", "RawExif", "RawIPTC", "RawXMP",
"RedEyeCorrection", "RowsPerStrip", "Summary", "SummarySlideView", 
"Thumbnail", "ThumbnailList", "TileSize", "XMP"}

I can read the elevation from "Data", however, I have no clue where is the spatial coordinate range in this file. Any help is appreciated.

The file is 1.4 GB and can be accessed through https://smttt-my.sharepoint.com/:i:/r/personal/w10134554_usm_edu/Documents/NOAA.tif?csf=1&web=1&e=qSzHXh

$\endgroup$
13
  • 1
    $\begingroup$ How big is this tif file? What is its location? $\endgroup$
    – Syed
    Dec 7, 2021 at 16:39
  • 2
    $\begingroup$ Can you do Import["NOAA.tif", {"GeoTIFF", "Elements"}] and see if that comes out? $\endgroup$
    – Carl Lange
    Dec 7, 2021 at 17:03
  • 2
    $\begingroup$ @Syed I meant for the OP to do it, as they haven't supplied the file :) $\endgroup$
    – Carl Lange
    Dec 7, 2021 at 17:17
  • 1
    $\begingroup$ Are you sure it's a GeoTIFF - if you put it into (for instance) QGIS, does it work correctly? Does it come with a second file that might contain the metadata? $\endgroup$
    – Carl Lange
    Dec 7, 2021 at 17:47
  • 2
    $\begingroup$ Thanks everyone for helping me. I solved the issue by reading the original file with QGIS and exporting it as a GeoTiff. $\endgroup$ Dec 7, 2021 at 21:55

0

Browse other questions tagged or ask your own question.