Skip to content
Prev 6581 / 29559 Next

doubt with readGDAL

On Sun, 4 Oct 2009, "Jos? M. Blanco Moreno" wrote:

            
Thanks for a clear report - the y range and the cell sizes were wrong when 
all three of offset=, region.dim= and output.dim= were used together. With 
current rgdal 0.6-18, using the Arc ASCII file (not GTiff), I see for the 
undecimated subscene:
cellcentre.offset     cellsize cells.dim
x      4.839851e-08 0.0008333333      5000
y      4.041750e+01 0.0008333333      2600
min      max
x -0.0004166183  4.16625
y 40.4170835754 42.58375

but for the decimated subscene:
cellcentre.offset   cellsize cells.dim
x       0.004584215 0.01000167       500
y     -15.769325078 0.01923397       260
min        max
x -4.166183e-04   5.000417
y -1.577894e+01 -10.778109


In forthcoming 0.6-19 (committed to the sourceforge rgdal repository) and 
the undecimated subscene:
cellcentre.offset     cellsize cells.dim
x      4.839851e-08 0.0008333333      5000
y      4.041750e+01 0.0008333333      2600
min      max
x -0.0004166183  4.16625
y 40.4170835754 42.58375

with the decimated subscene now corresponding:
cellcentre.offset    cellsize cells.dim
x       0.003750048 0.008333333       500
y      40.421250242 0.008333333       260
min      max
x -0.0004166183  4.16625
y 40.4170835754 42.58375

This is with this subscene on this data set - I would be very grateful if 
anyone could check from a source install after checking out from 
sourceforge for other, including Southern hemisphere decimated subscenes 
(there is a sign wrinkle). I'll wait for feedback before submitting to 
CRAN.

Again, thanks for a helpful report!

Roger