Re: [gdal-dev] Command line /python syntax differences

2022-11-02 Thread Chris Smemoe via gdal-dev
Jonas, I think your formatting of the arguments is not correct. There are lots of ways to do what you need to do. You can just use your commandline options directly in the python gdal.Translate options or you can call gdal_translate directly using the python subprocess.call command. There

Re: [gdal-dev] Command line /python syntax differences

2022-11-02 Thread Jonas Ardö via gdal-dev
Thanks Even, Still some discrepancy. *Python (don't work but no error and no output ): *src_ds = gdal.Open("I:\indata\VPDsc\VPD_scalar.tif")     #1 GDALWARP to warp all bands in one go     options = gdal.WarpOptions(options=srcSRS="EPSG:4326", dstSRS="EPSG:32628", xRes=20.0, yRes=20.0, resample

Re: [gdal-dev] Command line /python syntax differences

2022-11-02 Thread Even Rouault
Jonas, The doc is at: https://gdal.org/api/python/osgeo.gdal.html#osgeo.gdal.TranslateOptions Even Le 02/11/2022 à 11:53, Jonas Ardö via gdal-dev a écrit : Dear gdal-gurus, I am new to using gdal via Python. As the command line arguments/keywords differ from command prompt mode and Python-

Re: [gdal-dev] Command line /python syntax differences

2022-11-02 Thread Kirk Waters - NOAA Federal via gdal-dev
Jonas, I believe the information is under the python API section of the gdal.org site. For example, the description of the translate options is at https://gdal.org/api/python/osgeo.gdal.html#osgeo.gdal.TranslateOptions. Kirk Waters, PhD NOAA Office for

[gdal-dev] Command line /python syntax differences

2022-11-02 Thread Jonas Ardö via gdal-dev
Dear gdal-gurus, I am new to using gdal via Python. As the command line arguments/keywords differ from command prompt mode and Python-mode (for example for example is *-r* in gdal_translate  the same  as *resampleAlg* in gdal.Translate in Python). I find it tricky to find arguments/keywords i