[R] Bug in raster projectRaster?

Pascal Oettli kridox at ymail.com
Tue Jun 2 08:48:10 CEST 2015


Wrong list. This should have been posted here: r-sig-geo at r-project.org

Regards,
Pascal

On Tue, Jun 2, 2015 at 7:56 AM, Mauricio Romero
<mauricioromerolondono at gmail.com> wrote:
> Hi,
>
> I'm sorry I cant post a reproducible example, but the data sets involve are
> too large. I'm currently trying to create a mosaic from 2 different Landsat
> 7 scenes. One of them is in UTM 18 and the other in UTM 17. Before using
> the mosaic command, I'm doing
>
> LandsatTransform=projectRaster(from=LandsatUTM17, to=LandsatUTM18)
>
> but i get a raster that is full of NAs and the following warning message
>
> Warning message:
> In .rasterFromRasterFile(grdfile, band = band, objecttype, ...) :
>   size of values file does not match the number of cells (given the data
> type)
>
> Not sure what to do. Any help is really appreciated.
>
> Thanks,
>
> Mauricio
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan



More information about the R-help mailing list