Re: [R-sig-Geo] Change z coordinates of SpatialGridDataFrame

2013-02-14 Thread Nathalie Morin
Dear Edzer, I transformed my SpatialGridDataFrame into a SpatiaPointsDataFrame (by the way is there any coercion method such as as.SpatialPointsDataFrame available in sp instead of creating a new one for I have not found it ?). But this does not change my problem: I need the vector of attributes

[R-sig-Geo] Change z coordinates of SpatialGridDataFrame

2013-02-13 Thread Nathalie Morin
Hello, I would like to change or assign a new value of the z coordinates intrinsically in a 3 dimensional SpatialGridDataFrame from absolute height in UTM to relative height above the ground, in order to remove slope. So basically, I would like to move the current position of the voxels

Re: [R-sig-Geo] Change z coordinates of SpatialGridDataFrame

2013-02-13 Thread Edzer Pebesma
Is ground level varying, over your domain? If yes, the new set of voxels may no longer be a regular grid in the new CRS; you could represent them as a SpatialPointsDataFrame. If no, you could simply modify obj@grid@cellcentre.offset[3] On 02/13/2013 10:05 PM, Nathalie Morin wrote: Hello,