[R-sig-Geo] read NITF save as geotif
Arien Lam
a.lam at geo.uu.nl
Wed May 20 11:31:18 CEST 2009
Hi Monica,
It should be straightforward using rgdal. Gtiff output is default,
resolution is preserved by default, GDAL supports nitf (didn't test this)
and geotiff supports x resolution and y resolution separately (x and y
resolution may differ, but are constant for the image). So I expect the
following snippet to work (if it doesn't, show us what goes wrong):
require('rgdal')
GDALinfo('yourfile') # look at res.x and res.y
imagery <- readGDAL('yourfile')
writeGDAL(imagery, 'destinationfile')
GDALinfo('destinationfile')
Hope this helps,
Arien
On Tue, May 19, 2009 20:24, Monica Pisica wrote:
>
> Hi,
>
> I have some NITF (in lat long) files and i would like to save them as
> geotif. Things would be almost straightforward but .... the pixels in the
> original image are rectangular, and not square, so i cannot grid. Do you
> have any idea how i can go around this?
>
> Thanks, i will really appreciate that.
>
> Monica
> _________________________________________________________________
> Insert movie times and more without leaving Hotmail®.
>
> orial_QuickAdd1_052009
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
drs. H.A. (Arien) Lam (Ph.D. student)
Department of Physical Geography
Faculty of Geosciences
Utrecht University, The Netherlands
More information about the R-sig-Geo
mailing list