[R-sig-Geo] stars st_transform gives NA to the offset and delta parameters

2021-06-06 Thread Manuel Spínola
Dear list members, When using st_transform in a stars object the offset and delta parameters become NA, is this an expected behavior? geomatrix = system.file("tif/geomatrix.tif", package = "stars") x = read_stars(geomatrix) new = st_crs(4326) y = st_transform(x, new) y *Manuel Spínola, Ph.D

Re: [R-sig-Geo] stars st_transform gives NA to the offset and delta parameters

2021-06-07 Thread Edzer Pebesma
On 07/06/2021 01:16, Manuel Spínola wrote: Dear list members, When using st_transform in a stars object the offset and delta parameters become NA, is this an expected behavior? Yes, it also says that you got a curvilinear grid as a result, which is a grid with non-constant cell size (delta

Re: [R-sig-Geo] stars st_transform gives NA to the offset and delta parameters

2021-06-07 Thread Manuel Spínola
Thank you very much Edzer, I am working with a raster file of land cover from the Copernicus Global Land Service that is 100m resolution but the file is in a regular latitude/longitude grid (EPSG:4326). How can I project this file to UTM keeping the 100m resolution? You told me to go with st_war