Thank you very much Florian,
Solve my problem!!
Best wishes,
Alexandre
--
==
Alexandre dos Santos
Proteção Florestal
IFMT - Instituto Federal de Educação, Ciência e Tecnologia de Mato Grosso
Campus Cáceres
Caixa Postal 244
Dear Alexandre,
Indeed the solution by Florian below is very nice. If you really want to
go the other direction you can use `as.SpatialGridDataFrame.im()` from
the `maptools` package.
By the way, based on what you write, I think you mean to use the value
7.5 (=0.75m) rather than 0.75
Dear Alexandre,
instead of converting the image to a SpatialPixelDataFrame converting to
a raster object might be an alternative.
r_pines<-raster(d_pines)
writeRaster(r_pines, "Pines.tif")
Regards,
Florian
Am 26.09.2018 um 22:25 schrieb ASANTOS via R-sig-Geo:
Dear R-sig-geo Members,
Dear R-sig-geo Members,
I've like to create Kernel image results as *tif using an object of
density() function output in spatstat package. But in my example,
doesn't work when I try:
#Packages
library(spatstat)
library(raster)
library(rgdal)
#Swedishpines's data set in spatstat package