[gdal-dev] Unable to convert NTF to png
Aparna Nimbalker
aparna_kumar at yahoo.com
Tue Jun 29 14:32:54 PDT 2021
Hello, I am a beginner to gdal and I am working with .ntf, .NTF file formats.
I am trying to convert this one .NTF file (unfortunately I cannot share the file) to a .png, so I can easily open it up and use it for a future processing. This particular .NTF file is 1.39 GB.
Right now I am working on a mac, in the terminal. I am using conda and have set up a (gdal_project) environment. I have downloaded all the necessary gdal packages and libraries by running conda install -c conda-forge gdal in the terminal.
I tried running for f in *.NTF do gdal_translate ${f} pngs/${f%.*}.png; done
in the terminal for the NTF file I mentioned above (it was the only one in the folder I was looping through). However, even though it creates a png, all I see is a large png that does not show the image, but is completely black.
Please let me know where I am going wrong. Is there something I am missing or should be doing that I am currently not? Is there a solution to my problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210629/b650582d/attachment.html>
More information about the gdal-dev
mailing list