[R-sig-Geo] Non Square Pixels
Michael Sumner
mdsumner at gmail.com
Mon Feb 21 22:36:06 CET 2011
Almost any of the formats supported by rgdal will support non-square
pixels. The rgdal package defaults to GeoTIFF, which certainly can.
You probably need to determine which format is required by your ESRI
product, but if it is a recent release i.e. ArcGIS 9.2 and later reads
rasters with GDAL anyway so GeoTIFF is probably a good choice. If it's
very large consider the options for compression and tiling.
See library(raster);?writeRaster; writeFormats() for details for that
package, writeGDAL will write a GeoTIFF by default.
See here for details on many formats, and the package docs for other details:
http://www.gdal.org/formats_list.html
Cheers, Mike.
On Tue, Feb 22, 2011 at 7:10 AM, Narayani Barve <narayani at ku.edu> wrote:
> Hi All,
>
> I have ASCII grid (ESRI) format file. This file do not have square pixel but
> has rectangular pixel. X dimension is 1 and Y dimension is 0.83333. ESRI
> product cannot read a file with rectangular pixel. Is there a way, to
> convert this file so that square pixels are generated and file can be used
> with ESRI products ? Raster package has any functions to help out ?
>
> Thanks in anticipation
> Narayani
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner at gmail.com
More information about the R-sig-Geo
mailing list