<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>It's easy to go from coordinate space to pixel space in python
using something like.<br>
</p>
<pre style="stroke-linecap: butt; stroke-linejoin: round; padding: 0.2em; font-family: monospace; font-size: 13px; color: rgb(51, 51, 51); border-radius: 4px; display: block; margin: 0px; line-height: 20px; word-break: break-all; overflow-wrap: break-word; white-space: pre-wrap; background-color: rgb(245, 245, 245); border: none; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="n" style="stroke-linecap: butt; stroke-linejoin: round;">pixel_x</span> <span class="o" style="stroke-linecap: butt; stroke-linejoin: round; color: rgb(102, 102, 102);">=</span> int<span class="p" style="stroke-linecap: butt; stroke-linejoin: round;">(</span><span class="o" style="stroke-linecap: butt; stroke-linejoin: round; color: rgb(102, 102, 102);">-</span><span class="mf" style="stroke-linecap: butt; stroke-linejoin: round; color: rgb(102, 102, 102);">124114.3</span> <span class="o" style="stroke-linecap: butt; stroke-linejoin: round; color: rgb(102, 102, 102);">-</span> <span class="n" style="stroke-linecap: butt; stroke-linejoin: round;">geo_transform</span><span class="p" style="stroke-linecap: butt; stroke-linejoin: round;">[</span><span class="mi" style="stroke-linecap: butt; stroke-linejoin: round; color: rgb(102, 102, 102);">0</span><span class="p" style="stroke-linecap: butt; stroke-linejoin: round;">])</span><span class="o" style="stroke-linecap: butt; stroke-linejoin: round; color: rgb(102, 102, 102);">/</span><span class="n" style="stroke-linecap: butt; stroke-linejoin: round;">geo_transform</span><span class="p" style="stroke-linecap: butt; stroke-linejoin: round;">[</span><span class="mi" style="stroke-linecap: butt; stroke-linejoin: round; color: rgb(102, 102, 102);">1</span><span class="p" style="stroke-linecap: butt; stroke-linejoin: round;">]</span>)
</pre>
<p>What is the trick when there is an image rotation? Also, as a
second very beginner question, what is the difference between
geo_transform[2] and geo_transform[4]?</p>
<p>Thanks in advance!<br>
</p>
<p>Nicolas Cadieux<br>
</p>
</body>
</html>