<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="monospace">Thanks Even,<br>
<br>
</font><font face="monospace">Still some discrepancy.<br>
<br>
<b>Python (don't work but no error and no output ):<br>
</b>src_ds = gdal.Open("I:\indata\VPDsc\VPD_scalar.tif")<br>
#1 GDALWARP to warp all bands in one go<br>
options = gdal.WarpOptions(options=srcSRS="EPSG:4326",
dstSRS="EPSG:32628", xRes=20.0, yRes=20.0, resampleAlg="bilinear",
format='GTiff', outputBounds=[453123, 1702425, 454123, 1703425])<br>
newfile = gdal.Warp(out_path+"tmp.tif", src_ds,
options=options)<br>
<br>
<b>Command line work ok:</b><br>
gdalwarp -s_srs EPSG:4326 -t_srs EPSG:32628 -overwrite -tr 20
20 -wm 9000 -multi -r near -te 453123 1702425 454123 1703425
-te_srs EPSG:32628 /cygdrive/i/indata/VPDsc/VPD_scalar.tif
/cygdrive/i/data/SNDHR/VPDsc/VPD_scalar_test.tif <br>
<br>
</font>
<div class="moz-cite-prefix"><font face="monospace">Assuming using
-te_srs and -t_srs are redundant?<br>
("</font><font face="monospace"><strong>outputBoundsSRS</strong>
– SRS in which output bounds are expressed, in the case they are
not expressed in dstSRS")<br>
</font><br>
Regards<br>
/Jonas<br>
On 02/11/2022 12:03, Even Rouault wrote:<br>
</div>
<blockquote type="cite"
cite="mid:7c74da9d-48e6-2ae9-ce01-c3dd39536117@spatialys.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Jonas,</p>
<p>The doc is at:<br>
</p>
<p><a class="moz-txt-link-freetext"
href="https://gdal.org/api/python/osgeo.gdal.html#osgeo.gdal.TranslateOptions"
moz-do-not-send="true">https://gdal.org/api/python/osgeo.gdal.html#osgeo.gdal.TranslateOptions</a></p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 02/11/2022 à 11:53, Jonas Ardö via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:f1cdb631-c0e3-f42d-7495-731201416a03@nateko.lu.se"> <font
face="Courier New, Courier, monospace">Dear gdal-gurus,<br>
</font><font face="Courier New, Courier, monospace"><br>
I am new to using gdal via Python.<br>
<br>
As the command line arguments/keywords differ from command
prompt mode and Python-mode (for example for example is <b>-r</b>
in gdal_translate the same as <b>resampleAlg</b> in
gdal.Translate in Python). <br>
I find it tricky to find </font><font face="Courier New,
Courier, monospace"><font face="Courier New, Courier,
monospace">arguments/keywords </font>in Python.<br>
<br>
How can all options/full syntax for gdal-pythons commands be
listed as done <a moz-do-not-send="true"
href="https://gis.stackexchange.com/questions/352643/gdal-translate-in-python-where-do-i-find-how-to-convert-the-command-line-argum">here</a>
?<br>
Where they also refer to<a moz-do-not-send="true"
href="https://gdal.org/python/"
class="moz-txt-link-freetext"> https://gdal.org/python/</a>
which do not exist.<br>
Any other (full/completed) online resource for this?<br>
Can "pydoc -g osgeo" be used?<br>
Are the The gdal-dev Archives searchable?<br>
<br>
<br>
</font><font face="Courier New, Courier, monospace">Regards </font>
<pre class="moz-signature" cols="72"><font face="Courier New, Courier, monospace">/Jonas, Lund University, Sweden
</font></pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:gdal-dev@lists.osgeo.org" moz-do-not-send="true">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com" moz-do-not-send="true">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jonas Ardö
Physical Geography and Ecosystem Science
Lund University
Sölvegatan 12 22362 Lund Sweden
+46462224031</pre>
</body>
</html>