Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Matt.Wilkie
..) The fixed and working script is attached. -Matt -Original Message- From: Even Rouault Sent: October 14, 2021 12:11 PM To: Matt.Wilkie ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions. *** External email: Do not click on link

Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Even Rouault
you could do something along: tmp_vrt = gdal.Translate("", src_ds, format = 'VRT') call SetColorInterpretation() / SetDescription() on tmp_vrt gdal.Translate(dstname, tmp_vrt, format = 'COG', ...) Le 14/10/2021 à 20:45, matt.wil...@yukon.ca a écrit : For Problem 2 there’s a new wrinkle: in s

Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Matt.Wilkie
> For Problem 2 there’s a new wrinkle: in spite of the warning about being > unable to save the .aux.xml info into the source zip sometimes it actually > does. I haven’t sorted out when it can and can’t yet. Solved it: the first time the script is run it saves the Color Interp and Descriptions

Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Matt.Wilkie
tt.wil...@yukon.ca<mailto:matt.wil...@yukon.ca> Sent: October 13, 2021 4:39 PM To: gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> Subject: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions. Hi, The attached python script that reads from a vendor’s

[gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-13 Thread Matt.Wilkie
Hi, The attached python script that reads from a vendor’s SPOT6 distribution archive and creates a cloud optimized geotiff. Reading and writing works, but the band description does not take properly. Problem 1: The greek letter Mu or Micron