Closed dominicroye closed 3 weeks ago
That is because offset is kept constant; you can reset this by
> st_crop(rbel, bb) |> st_normalize()
stars object with 2 dimensions and 1 attribute
attribute(s):
Min. 1st Qu. Median Mean 3rd Qu. Max.
file7625f5520afef 2 50 89 91.91582 136 276
dimension(s):
from to offset delta refsys point x/y
x 1 98 3.999 0.01031 WGS 84 TRUE [x]
y 1 60 51.01 -0.01031 WGS 84 TRUE [y]
which modifies offset while setting from
back to 1.
Ok, now I understand the idea. For me, it is not so clear in the documentation.
When I crop a star object, it seems to crop it, but the dimension metavariable "from" is not expected 1. Then, when I do a raster calculation with another stars object with the cropped dimensions, it tells me that it doesn't match even if they have the same extent. I have also seen that x is set to one in some cases, but y is not.