<div dir="ltr">What is the bit depth of the NTF? You might need to scale it to an 8bit range when converting it, check out the -scale option flag for gdal_translate<div><br></div><div><a href="https://gdal.org/programs/gdal_translate.html#cmdoption-gdal_translate-scale">https://gdal.org/programs/gdal_translate.html#cmdoption-gdal_translate-scale</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 29, 2021 at 3:33 PM Aparna Nimbalker via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><div dir="ltr">Hello, I am a beginner to gdal and I am working with .ntf, .NTF file formats.</div><div dir="ltr"><br></div><div dir="ltr">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.</div><div dir="ltr"><br></div><div dir="ltr">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 <span><span style="color:rgb(51,51,51);font-family:Consolas,"Liberation Mono",Courier,monospace;font-size:16px;background-color:rgb(238,239,240)">conda install -c conda-forge gdal</span></span> in the terminal.</div><div dir="ltr"><br></div><div dir="ltr">I tried running <font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="background-color:rgb(238,239,240)">for f in *.NTF do gdal_translate ${f} pngs/${f%.*}.png; done <br></span></font> 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.</div><div dir="ltr"><br></div><div dir="ltr">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?</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>