<div>Hello</div><div>No I don't know where my valid pixels are. </div><div>Any alternative?<br><br></div><div class="gmail_quote">2012/10/25 Kyle Shannon <span dir="ltr"><<a href="mailto:kyle@pobox.com" target="_blank">kyle@pobox.com</a>></span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><font><font face="courier new,monospace">Katrin,<br></font></font></div>
<div><font><font face="courier new,monospace">Do you know where you valid pixels are in the image? If so, gdal_translate with -srcwin would work:<br>
</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">kyle@ubuntu:~$ gdal_translate -srcwin xoff yoff 60 100 in.tif out.tif<br></font></font></div>
<div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">where xoff, yoff are the number of pixels from the image origin that your valid region begins(pixels, lines). See <a href="http://gdal.org/gdal_translate.html" target="_blank">http://gdal.org/gdal_translate.html</a> for more info.<br>
</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><br><div class="gmail_quote"><div><div class="h5">On Thu, Oct 25, 2012 at 8:05 AM, katrin eggert <span dir="ltr"><<a href="mailto:katrineggert1980@gmail.com" target="_blank">katrineggert1980@gmail.com</a>></span> wrote:<br>
</div></div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div class="h5"><div>Greetings</div><div>
I have a Geotif with only one Layer with a size of 6000x5000 but from which I only have a square of 60x100 with bvalid pixels. the remaining are NOdata. The problem is that this Geotiff is a big file 90MB and without these NoData values I would have a much smaller raster.</div>
<div>How can I generate a new Geotiff without these noValid values and with extent adjusted to the valid pixels?</div><div>Thank you</div><div>Regards,</div><div>Katrin E.</div>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>
</blockquote></div><br>