Closed amarbler closed 2 years ago
Thanks for the report! https://github.com/r-spatial/sf/pull/1716 should fix it.
Closing this out, as the sf
pull request has been merged.
Thank you!
Hi,
would it be possible to also allow the "exact_resample" function to accept terra objects?
would it be possible to also allow the "exact_resample" function to accept terra objects?
Done with 7001fd4d15175417adbe822b2f185353b4372dd1
Thanks, again! :)
@dbaston, did you notice that exactextractr is faster using terra than raster? I did a simple comparison (data, code) and I see:
raster (file)
Min. 1st Qu. Median Mean 3rd Qu. Max.
14.76 14.84 14.92 15.05 15.07 16.09
terra (file)
Min. 1st Qu. Median Mean 3rd Qu. Max.
8.899 8.928 8.982 9.255 9.070 11.536
Yes! I guess that's worth a mention in the README.
One more interesting thing - if the data is loaded into memory, the times are very similar in this case.
raster (memory)
Min. 1st Qu. Median Mean 3rd Qu. Max.
2.687 2.718 2.748 2.796 2.849 3.048
terra (memory)
Min. 1st Qu. Median Mean 3rd Qu. Max.
2.864 2.884 2.890 2.930 2.938 3.100
Hi,
I just saw the recent extension of exactextractr to accept SpatRaster (terra) objects and decided to give it a try. There seems to be a problem with reading the crs from terra objects: