[AniMov] New problem with RGDAL
feurbano at clix.pt
feurbano at clix.pt
Thu May 22 12:42:22 CEST 2008
i have a problem exporting probability surfaces (UD) to geotiff.
it always worked, but since i updated the RGDAL package yesterday, it works no more ( itried many different UDs).
here you have the code.
library(adehabitat)
library(sp)
library(rgdal)
data(puechabon)
loc <- puechabon$locs[, c("X", "Y")]
id <- puechabon$locs[, "Name"]
ud <- kernelUD(loc, id)
asc<-ud[[1]][[1]]
image(asc)
res <- asc2spixdf(asc)
image(res)
writeGDAL(res, "c:/temp/image1", drivername = "GTiff", type = "Float32", mvFlag = 0)
here the error:
Errore in create2GDAL(dataset = dataset, drivername = drivername, type = type, :
GDAL Error 5: GDALDataset::GetRasterBand(553648270) - Illegal band #
i think this is quite an important issue. where is the error? in RGDAL or in ADEHABITAT?
Any suggestion?
Ferdinando
----
More information about the AniMov
mailing list