Hi Andrew,
no, there's no such support in GDAL itself. That could potentially be
done using VRT and pixel functions, but I'm not sure that would qualify
as "optimal", and that would require a bit of setup. You're probably
better instantiating your for(y: ...) for (x: ...) loop manually with
the operation you want to apply
xtensor (https://xtensor.readthedocs.io/en/latest/operator.html) (in a
nutshell, this is similar to numpy but in C++) could potentially be used
in combination of GDAL, but I don't think we want to drag this
dependency in GDAL itself
Even
Le 06/05/2024 à 20:43, Andrew Bell via gdal-dev a écrit :
Hi,
Is there any support in the library for applying some arithmetic
operations to all entries in a block? For example, can I optimally
subtract or add some scalar to every entry?
Thanks,
--
Andrew Bell
andrew.bell...@gmail.com
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev