<div dir="ltr">Thanks very much, Even.  Both of those suggestions are very clever.  I didn't think of that approach.  Now I'm in business.<div><br></div><div>carl</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 11, 2022 at 3:35 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</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>
    <p><br>
    </p>
    <div>Le 12/01/2022 à 00:29, Even Rouault a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <p><br>
      </p>
      <div>Le 12/01/2022 à 00:23, Carl Godkin a
        écrit :<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">Hi,<br>
          <div><br>
          </div>
          <div>I'm trying to figure out if there's a way to set the unit
            type for a raster band from any of the application
            programs.  A few seem to copy it from input to output bands,
            but I would like to assign it from the command line if
            possible.</div>
          <div><br>
          </div>
          <div>I have searched for SetUnitType()
            and GDALSetRasterUnitType() calls in the GDAL 3.4.0 source
            and don't see it anywhere but I thought perhaps I'd
            overlooked something.</div>
        </div>
      </blockquote>
      <p>python -c "from osgeo import gdal; ds = gdal.Open('my.tif',
        gdal.GA_Update); ds.GetRasterBand(1).SetUnitType('my unit')"<br>
      </p>
    </blockquote>
    <p>Actually, more simple with
      <a href="https://gdal.org/programs/gdal_edit.html#cmdoption-units" target="_blank">https://gdal.org/programs/gdal_edit.html#cmdoption-units</a>:<br>
    </p>
    <p>gdal_edit.py my.tif -units "my unit"<br>
    </p>
    <blockquote type="cite">
      <p> </p>
      <p><br>
      </p>
      <blockquote type="cite">
        <div dir="ltr">
          <div><br>
          </div>
          <div>Thanks very much,</div>
          <div><br>
          </div>
          <div>carl</div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
        <br>
        <fieldset></fieldset>
        <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
      </blockquote>
      <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </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>