Skip to content

Example of universal kriging with R/gstat in GRASS needed

1 message · Thomas Adams

#
Roger,

This is what the summary() command gives me before/after I use 
fullgrid(dem) <- FALSE


dem<-readFLOAT6sp("ohrfc.dem")
 > summary(dem)
Object of class SpatialGridDataFrame
Coordinates:
min max
coords.x1 -351000 675000
coords.x2 -486000 486000
Is projected: TRUE
proj4string : [+proj=lcc +lat_0=39.0000000000 +lat_1=60.0000000000 
+lat_2=30.0000000000 +lon_0=-86.0000000000 +x_0=0.0000000000 
+y_0=0.0000000000 +a=6378137 +rf=298.257223563 +no_defs 
+towgs84=0.000,0.000,0.000]
Number of points: 2
Grid attributes:
cellcentre.offset cellsize cells.dim
1 -346500 9000 114
2 -481500 9000 108
Data attributes:
ohrfc.dem
Min. : 0.0
1st Qu.: 183.0
Median : 244.0
Mean : 302.2
3rd Qu.: 335.0
Max. :1707.1
NA's :1513.0
=============================================
 > fullgrid(dem)<-FALSE
 > summary(dem)
Object of class SpatialPixelsDataFrame
Coordinates:
min max
s1 -351000 675000
s2 -432000 468000
Is projected: TRUE
proj4string : [+proj=lcc +lat_0=39.0000000000 +lat_1=60.0000000000 
+lat_2=30.0000000000 +lon_0=-86.0000000000 +x_0=0.0000000000 
+y_0=0.0000000000 +a=6378137 +rf=298.257223563 +no_defs 
+towgs84=0.000,0.000,0.000]
Number of points: 10799
Data attributes:
ohrfc.dem
Min. : 0.0
1st Qu.: 183.0
Median : 244.0
Mean : 302.2
3rd Qu.: 335.0
Max. :1707.1

 > names(dem)
[1] "ohrfc.dem"


Regards,
Tom
Roger Bivand wrote: