[gdal-dev] How to decrease file size of colored raster bands?

afernandez afernandez at odyhpc.com
Fri Jun 2 04:50:51 PDT 2023


Hi Scott and Laurentiu,
It is now compressing the file. On a minor note I usually prefer to use 'subprocess' instead of 'os.system' but either way it is now a matter of experimenting with the flags and finding out which is the best combination to compress the project output files. 
Thanks for all your help,
Arturo
Laurențiu Nicola via gdal-dev wrote:
Hi,
Try saving the output into a new file. Those are "creation options".
Laurentiu
On Thu, Jun 1, 2023, at 20:34, afernandez wrote:
Hello Laurentiu,
The color palette is working fine. The issues seem to be caused by using UInt16 because I changed to GDT_Byte per your suggestion and everything is so much smoother (this was an oversight of mine as I recycled a snippet from somewhere and should have paid much closer attention to this detail). 
As for compressing and using overviews (for future use), I'm having some difficulty implementing them but it's less urgent and will keep working at it.
Thanks,
Arturo
Hi,
Try saving the output into a new file. Those are "creation options".
Laurentiu
On Thu, Jun 1, 2023, at 20:34, afernandez wrote:
Hello Laurentiu,
The color palette is working fine. The issues seem to be caused by using UInt16 because I changed to GDT_Byte per your suggestion and everything is so much smoother (this was an oversight of mine as I recycled a snippet from somewhere and should have paid much closer attention to this detail). 
As for compressing and using overviews (for future use), I'm having some difficulty implementing them but it's less urgent and will keep working at it.
Thanks,
Arturo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230602/9e095428/attachment.htm>


More information about the gdal-dev mailing list