digitalcourage.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Diese Instanz wird betrieben von Digitalcourage e.V. für die Allgemeinheit. Damit wir das nachhaltig tun können, erheben wir einen jährlichen Vorausbeitrag von 1€/Monat per SEPA-Lastschrifteinzug.

Server stats:

814
active users

#gdal

2 posts2 participants0 posts today
Seth G<p>New <a href="https://mastodon.social/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> tutorial published "Working with a Digital Terrain Model (DTM)" <a href="https://gdal.org/en/latest/tutorials/raster_dtm_tut.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gdal.org/en/latest/tutorials/r</span><span class="invisible">aster_dtm_tut.html</span></a> <a href="https://mastodon.social/tags/osgeo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>osgeo</span></a> <a href="https://mastodon.social/tags/gis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gis</span></a></p>
Hugh Graham<p>{vrtility} now has fancy cloud masking! Check out the vignette here: <a href="https://permian-global-research.github.io/vrtility/articles/OmniCloudMask.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">permian-global-research.github</span><span class="invisible">.io/vrtility/articles/OmniCloudMask.html</span></a> </p><p>Check out the improvement of a median composite when using CloudOmniMask! </p><p>The ability to have image processing - included directly in a file format still blows my mind a bit! woop for VRT pixel functions!</p><p><a href="https://fosstodon.org/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> <a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/rspatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rspatial</span></a></p>
geoObserver<p>GDAL Released: v3.11.3 <a href="https://geoobserver.de/2025/07/15/gdal-released-v3-11-3/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">geoobserver.de/2025/07/15/gdal</span><span class="invisible">-released-v3-11-3/</span></a> via @GdalOrg <span class="h-card" translate="no"><a href="https://mastodon.social/@EvenRouault" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>EvenRouault</span></a></span> <a href="https://mastodon.social/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> <a href="https://mastodon.social/tags/ogr" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ogr</span></a> <a href="https://mastodon.social/tags/qgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qgis</span></a> <a href="https://mastodon.social/tags/switch2qgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>switch2qgis</span></a> <a href="https://mastodon.social/tags/fossgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fossgis</span></a> <a href="https://mastodon.social/tags/foss4g" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>foss4g</span></a> <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://mastodon.social/tags/gistribe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gistribe</span></a> <a href="https://mastodon.social/tags/gischat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gischat</span></a> <a href="https://mastodon.social/tags/spatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spatial</span></a> <a href="https://mastodon.social/tags/geospatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geospatial</span></a> <a href="https://mastodon.social/tags/gis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gis</span></a> <a href="https://mastodon.social/tags/geo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geo</span></a> <a href="https://mastodon.social/tags/geoObserver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geoObserver</span></a> pls RT</p>
Chris Toney<p>New CRAN release of gdalraster, R bindings to GDAL. v2.1.0 adds incremental new features and enhancements, minor bug fixes and several internal improvements:<br><a href="https://github.com/USDAForestService/gdalraster/releases/tag/v.2.1.0" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/USDAForestService/g</span><span class="invisible">dalraster/releases/tag/v.2.1.0</span></a></p><p>Vector read benchmarks: <a href="https://usdaforestservice.github.io/gdalraster/articles/vector-read-benchmarks.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">usdaforestservice.github.io/gd</span><span class="invisible">alraster/articles/vector-read-benchmarks.html</span></a></p><p><a href="https://fosstodon.org/tags/rspatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rspatial</span></a> <a href="https://fosstodon.org/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a></p>
GDAL<p><a href="https://mastodon.social/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> 3.11.3 is released: <a href="https://lists.osgeo.org/pipermail/gdal-dev/2025-July/060754.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lists.osgeo.org/pipermail/gdal</span><span class="invisible">-dev/2025-July/060754.html</span></a></p>
GDAL<p><a href="https://mastodon.social/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> 3.11.2 is released: <a href="https://lists.osgeo.org/pipermail/gdal-dev/2025-July/060751.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lists.osgeo.org/pipermail/gdal</span><span class="invisible">-dev/2025-July/060751.html</span></a></p>
Even Rouault<p>With about 250 lines of code (not counting libdeflate for ZLIB compression...), one can generate PNG files significantly faster than with libpng, and smaller!</p><p><a href="https://github.com/OSGeo/gdal/pull/12731" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/OSGeo/gdal/pull/127</span><span class="invisible">31</span></a></p><p><a href="https://mastodon.social/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a></p>
Hugh Graham<p>Okay - further to my early rants about CDSE data, it aint as bad as I thought 😅 it also prompted me to properly sort out my approach to scaling/offsets which had been driving me mad! So if anyone cares for another way to download data from CDSE, with <a href="https://fosstodon.org/tags/rspatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rspatial</span></a> / <a href="https://fosstodon.org/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> I made a gist:</p><p><a href="https://gist.github.com/h-a-graham/86cd3403445cf163ce958efa2d29c621" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gist.github.com/h-a-graham/86c</span><span class="invisible">d3403445cf163ce958efa2d29c621</span></a></p><p>There are still some improvements to be made for sure. </p><p>FYI <span class="h-card" translate="no"><a href="https://fosstodon.org/@Micha_Silver" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Micha_Silver</span></a></span></p>
Hugh Graham<p>okay <a href="https://fosstodon.org/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> fans - how the hell am I supposed to work with jpeg2000 files and why on God's earth is the Copernicus Data Space Ecosystem using this format? I would much rather make requests to a european server but it looks like I'm expected to just download entire files and nothing is cloud optimised 😩 - really hoping I'm wrong...</p>
Alex G Rice<p>I am excited to be mentioned in this post by Wyvern about my usage of their Open Data Program! </p><p><a href="https://www.linkedin.com/feed/update/urn:li:activity:7346567124296908800" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">linkedin.com/feed/update/urn:l</span><span class="invisible">i:activity:7346567124296908800</span></a></p><p><a href="https://mapstodon.space/tags/GIS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GIS</span></a> <a href="https://mapstodon.space/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> <a href="https://mapstodon.space/tags/hyperspectral" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hyperspectral</span></a> <a href="https://mapstodon.space/tags/wyvern" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wyvern</span></a> <a href="https://mapstodon.space/tags/remotesensing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>remotesensing</span></a> <a href="https://mapstodon.space/tags/spatialanalysis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spatialanalysis</span></a> <a href="https://mapstodon.space/tags/earthobservation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>earthobservation</span></a> <a href="https://mapstodon.space/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mapstodon.space/tags/geospatialanalytics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geospatialanalytics</span></a> <a href="https://mapstodon.space/tags/opendata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opendata</span></a> <a href="https://mapstodon.space/tags/rasteranalyis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rasteranalyis</span></a> <a href="https://mapstodon.space/tags/geospatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geospatial</span></a></p>
Hugh Graham<p>I've been quiet about {vrtility} recently but I've made some nice steady progress with improved asynch read/write of raster files. A colleague wanted some help getting at the amazing Digital Earth Africa GeoMAD landsat catalogs so I put togther this gist - sharing incase it's useful to anyone else! with an already beautifully processed annual image composite - this is a classic and simple use case for VRT 🤓 . <a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/rspatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rspatial</span></a> <a href="https://fosstodon.org/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> <a href="https://gist.github.com/h-a-graham/46153e63e25905ba337d93ebe99607c4" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gist.github.com/h-a-graham/461</span><span class="invisible">53e63e25905ba337d93ebe99607c4</span></a></p>
geoObserver<p>GDAL Released: v3.11.1 <a href="https://geoobserver.de/2025/07/02/gdal-released-v3-11-1/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">geoobserver.de/2025/07/02/gdal</span><span class="invisible">-released-v3-11-1/</span></a> via @GdalOrg <span class="h-card" translate="no"><a href="https://mastodon.social/@EvenRouault" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>EvenRouault</span></a></span> <a href="https://mastodon.social/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> <a href="https://mastodon.social/tags/ogr" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ogr</span></a> <a href="https://mastodon.social/tags/qgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qgis</span></a> <a href="https://mastodon.social/tags/switch2qgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>switch2qgis</span></a> <a href="https://mastodon.social/tags/fossgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fossgis</span></a> <a href="https://mastodon.social/tags/foss4g" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>foss4g</span></a> <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://mastodon.social/tags/gistribe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gistribe</span></a> <a href="https://mastodon.social/tags/gischat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gischat</span></a> <a href="https://mastodon.social/tags/spatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spatial</span></a> <a href="https://mastodon.social/tags/geospatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geospatial</span></a> <a href="https://mastodon.social/tags/gis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gis</span></a> <a href="https://mastodon.social/tags/geo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geo</span></a> <a href="https://mastodon.social/tags/geoObserver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geoObserver</span></a> pls RT</p>
Robin Wilson<p>Found a cool feature of ogr2ogr: you can use SQL like 'SELECT * EXCEPT (col1, col2) FROM table' with the -sql parameter to exclude a few fields from the conversion process. Handy when you've got lots of fields and don't want to list them all out in the SELECT.</p><p>Now I just wish Postgres had this functionality (DuckDB does!)</p><p>See <a href="https://gdal.org/en/stable/user/ogr_sql_dialect.html#list-operators" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gdal.org/en/stable/user/ogr_sq</span><span class="invisible">l_dialect.html#list-operators</span></a> for details, and I found it from <a href="https://github.com/OSGeo/gdal/issues/854" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/OSGeo/gdal/issues/8</span><span class="invisible">54</span></a></p><p><a href="https://mastodon.me.uk/tags/gis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gis</span></a> <a href="https://mastodon.me.uk/tags/geospatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geospatial</span></a> <a href="https://mastodon.me.uk/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a></p>
Michel Stuyts 🌍<p><a href="https://www.foss4g.be/en/call_for_presentations.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">foss4g.be/en/call_for_presenta</span><span class="invisible">tions.html</span></a></p><p><a href="https://fosstodon.org/tags/FOSS4G" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FOSS4G</span></a> <a href="https://fosstodon.org/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> <a href="https://fosstodon.org/tags/Geo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Geo</span></a> <a href="https://fosstodon.org/tags/GIS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GIS</span></a> <a href="https://fosstodon.org/tags/QGIS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>QGIS</span></a> <a href="https://fosstodon.org/tags/PostGIS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PostGIS</span></a> <a href="https://fosstodon.org/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> <a href="https://fosstodon.org/tags/OSM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OSM</span></a> <a href="https://fosstodon.org/tags/OpenStreetMap" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenStreetMap</span></a> <a href="https://fosstodon.org/tags/Belgium" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Belgium</span></a></p>
geoObserver<p>BDay: 13 Jahre <a href="https://mastodon.social/tags/geoObserver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geoObserver</span></a>! <a href="https://geoobserver.de/2025/06/25/bday-13-jahre-geoobserver/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">geoobserver.de/2025/06/25/bday</span><span class="invisible">-13-jahre-geoobserver/</span></a> <a href="https://mastodon.social/tags/gistribe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gistribe</span></a> <a href="https://mastodon.social/tags/gischat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gischat</span></a> <a href="https://mastodon.social/tags/fossgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fossgis</span></a> <a href="https://mastodon.social/tags/foss4g" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>foss4g</span></a> <a href="https://mastodon.social/tags/OSGeo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OSGeo</span></a> <a href="https://mastodon.social/tags/spatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spatial</span></a> <a href="https://mastodon.social/tags/geospatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geospatial</span></a> <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://mastodon.social/tags/PostGIS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PostGIS</span></a> <a href="https://mastodon.social/tags/PostgreSQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PostgreSQL</span></a> <a href="https://mastodon.social/tags/mapping" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mapping</span></a> <a href="https://mastodon.social/tags/DataViz" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataViz</span></a> <a href="https://mastodon.social/tags/mapserver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mapserver</span></a> <a href="https://mastodon.social/tags/opendata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opendata</span></a> <a href="https://mastodon.social/tags/osm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>osm</span></a> <a href="https://mastodon.social/tags/openstreetmap" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openstreetmap</span></a> <a href="https://mastodon.social/tags/geoserver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geoserver</span></a> <a href="https://mastodon.social/tags/qgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qgis</span></a> <a href="https://mastodon.social/tags/switch2qgis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>switch2qgis</span></a> <a href="https://mastodon.social/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> <a href="https://mastodon.social/tags/geos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geos</span></a> <a href="https://mastodon.social/tags/gis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gis</span></a> <a href="https://mastodon.social/tags/geo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geo</span></a> <a href="https://mastodon.social/tags/geoObserver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geoObserver</span></a> pls RT</p>
Michael Sumner<p><a href="https://rstats.me/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> is there a way to specify an empty raster source entirely as a text string (compactly)? </p><p>I can use MEM and generate a datapointer description from an array in memory, but what about the equivalent of an empty cog? something like</p><p>"MEM:::EMPTY_COG,87,61,1,Float64,0/1/0/61/0/-1"</p><p>(I certainly don't recommend experimenting with arbitrary values for DATAPOINTER)</p>
Hugh Graham<p>Ooh CNN-based cloud masking baked right into a VRT file. This should be fun! <a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/rspatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rspatial</span></a> <a href="https://fosstodon.org/tags/gdal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gdal</span></a> <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> </p><p>This is using <a href="https://github.com/DPIRD-DMA/OmniCloudMask" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/DPIRD-DMA/OmniCloud</span><span class="invisible">Mask</span></a> and appears to be a massive improvement on the standard Sentinel 2A SCL band!</p>
Olivier Leroy<p><span class="h-card" translate="no"><a href="https://social.coop/@MichaelTBacon" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>MichaelTBacon</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@eliocamp" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>eliocamp</span></a></span> here it seems <a href="https://fosstodon.org/tags/Rspatial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rspatial</span></a> is innocent, <a href="https://fosstodon.org/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> error is helpful here.</p>
Michael Sumner<p>Upcoming <a href="https://rstats.me/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> cli modernization webinar, free registration (it's 2pm UTC, in 4.3 hours from now)</p><p><a href="https://discourse.pangeo.io/t/webinar-about-gdal-3-11-cli-refactor-june-3rd-at-1400-utc/5159" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discourse.pangeo.io/t/webinar-</span><span class="invisible">about-gdal-3-11-cli-refactor-june-3rd-at-1400-utc/5159</span></a></p>
Even Rouault<p>Quite excited by the new artihmetic <a href="https://mastodon.social/tags/GDAL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GDAL</span></a> band on-the-fly capabilities of <a href="https://github.com/OSGeo/gdal/pull/12507" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/OSGeo/gdal/pull/125</span><span class="invisible">07</span></a></p><p>```python<br>with gdal.Open("rgb.tif") as ds:<br> R = ds.GetRasterBand(1)<br> G = ds.GetRasterBand(2)<br> B = ds.GetRasterBand(3)<br> gray = (0.299 * R + 0.587 * G + 0.114 * B).as_type(gdal.GDT_Byte)<br> gdal.GetDriverByName("GTiff").CreateCopy("gray.tif", gray)<br>```</p>