<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">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">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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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>