<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Ferdinand,</p>
<p>you can for example use "gdal_edit.py -ro -a_ullr X1 Y1 X2 Y2
your.tif" to create a geotransform in a sidecar .aux.xml file. If
the pan and ms images have the same extent, you could possibly
just use -a_ullr 0 0 1 -1 (untested though). This hypothesis is
not totally true as there's some subpixel shift for those products
between the pan and ms bands if I remember well, so you might need
to tune that a bit to get optimal results, but generally assuming
same extent should give you already a decent result.<br>
</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 14/07/2023 à 17:36, Ferdinand a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAAYM6-8JmE8WcX9nGj25rhFvq1ZUPw1pQm16tViQSnC8d2-s6A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all, <br>
<br>
We do stereo photogrammetry on Pleiades/PNeo images, and in one
case we run our algorithms on pansharpened images. <br>
<br>
Our workflow therefore was that we would pan-sharpen the images
and then run our stereo processing (using the panchromatic RPC
model for the pansharpened image). <br>
<br>
However, with the change in this PR: <a
href="https://github.com/OSGeo/gdal/pull/7373" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/OSGeo/gdal/pull/7373</a> which
was integrated into release 3.7.0, this is no longer possible.
gdal_pansharpen.py now gives: `<span
style="color:rgb(31,35,40);font-family:ui-monospace,SFMono-Regular,"SF
Mono",Menlo,Consolas,"Liberation
Mono",monospace;font-size:11.9px">RuntimeError:
Panchromatic band has no associated geotransform`. <br>
</span><br>
What is the recommended workflow for this now? We can't
orthorectify the images first, as we need the raw row/column
information in the image in order for the photogrammetry
processing to work. <br>
<br>
Is there some other way to add a geotransform that does not
require warping the image?
<div><br>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Ferdi </div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">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">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>