Skip to content

IDW & Kriging on Spatial Grid not Consistent with IDW & Kriging on Polygon (CRS are the same)

2 messages · James Matthew Miraflor, Edzer Pebesma

2 days later
#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James, it seems you still didn't get the projections right:
min       max
LON 120.7167 121.01800
LAT  14.1000  14.48034
min      max
x 11285704 11334871
y  1503882  1550830
min       max
x 120.7167 121.02097
y  14.1000  14.48034

I found this by adding argument scales=list(draw=TRUE) to spplot().
Usually when kriging gives a constant and the variogram is not pure
nugget, there is a problem with coordinates (scale or shift).

In the lines
muni.sp <- spTransform(muni.sp, CRS(new_crs))

you think that you reproject, but you don't, because you tell R the
long/lat data are in new_crs, which seems not the case.

I remember writing a warning for this case long ago, but have to look
into it why we don't see it here.
On 09/14/2013 07:41 PM, James Matthew Miraflor wrote:
muni.sp <- spTransform(muni.sp, CRS(new_crs))
- -- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of M?nster
Heisenbergstra?e 2, 48149 M?nster, Germany. Phone: +49 251
83 33081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSODPuAAoJEM1OCHCtOnfxj+UH/2bbTvFz912tv1w0xKcAN6Yq
58MPMWwIFDH7ZpgPKjANTNQidbUeKryP8Z+w5R0/qZQfPHLPq+/9UpKJjwVm3eG4
bfRpf4fA+YYD474tqLvtfCQkChDn4QU0W+6ysL/EFg+IYqKzS3OijJty7GeD6P62
nHhGnwsN23QXL+PVRV7cq4vrOMskVRxCym9GchL6OksYfLRX/dmiksDx5FMd8+qh
2utipyAvLdk30AyOiLH4y9L9dg33Y77arBFLcN5oHd5UWfKCRbokVHJvLHp0PmVQ
BNVSTaSezoRDeejNzHbGi5X+hpGsoZyG1YWDq59DdhHb8NzzrGHVClQTknfJX0s=
=zYBQ
-----END PGP SIGNATURE-----