[gdal-dev] Removing Nodata pixels from raster
Kyle Shannon
kyle at pobox.com
Thu Oct 25 08:28:32 PDT 2012
Katrin,
Do you know where you valid pixels are in the image? If so, gdal_translate
with -srcwin would work:
kyle at ubuntu:~$ gdal_translate -srcwin xoff yoff 60 100 in.tif out.tif
where xoff, yoff are the number of pixels from the image origin that your
valid region begins(pixels, lines). See
http://gdal.org/gdal_translate.htmlfor more info.
On Thu, Oct 25, 2012 at 8:05 AM, katrin eggert
<katrineggert1980 at gmail.com>wrote:
> Greetings
> 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.
> How can I generate a new Geotiff without these noValid values and with
> extent adjusted to the valid pixels?
> Thank you
> Regards,
> Katrin E.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121025/0fbfaaa1/attachment.html>
More information about the gdal-dev
mailing list