[gdal-dev] Passing Python PixelFunctionArguments or kwargs from command line?

Even Rouault even.rouault at spatialys.com
Mon Jan 29 02:54:50 PST 2024


Hi,

no, the values of pixel function arguments are hardcoded in the VRT.   
If someone wanted to implement what you mention, that should rather be 
done as open option (-oo) of the VRT driver

Even

Le 29/01/2024 à 08:29, Scott via gdal-dev a écrit :
> With a python pixel function in a .vrt file, is it possible to pass 
> values from the command line?
>
> Example:
> gdal_translate ... -lco PixelFunctionArguments=? or -lco -kwargs=?
>
> Basically I want to change the 'min' and 'max' values on the command 
> line:
> <PixelFunctionArguments min="0" max="100" />
>
> Thanks!
> Scott
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list