-
Notifications
You must be signed in to change notification settings - Fork 1
Issue when hyde_read reads data in as stars proxy object? #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an i 8000 ssue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for this issue @JocelyneSze. For the error in I'll have to look into the error with the stars proxy object further. |
OK, can confirm this is an issue in the
The issue here in |
7C81
Hi, thanks for confirming the issue, unfortunately the |
Hi, I'm trying to read in HYDE raw data and inputs and cropping to my area of interest (across the tropics) with
hyde_read
andst_crop
, then classifying the anthromes withanthrome_classify
. However I run into the following error messageError in dat/inputs["land_area"] : non-numeric argument to binary operator In addition: Warning message: In dplyr::mutate(., used = crops + grazing + urban, trees = pot_veg %in% : Incompatible methods ("Ops.stars_proxy", "Ops.stars") for "/"
So I tried to specify the data as a stars object with
anthromes_tropics <- anthrome_classify(st_as_stars(hyde_tropics), inputs_tropics)
, however I get a different error message that I'm not sure how to resolveError in st_crop.stars(x = x, y = y, crop = crop, epsilon = epsilon) : for cropping, the CRS of both objects have to be identical
As I have checked using
st_crs
that the CRS of both objects are identical.I'm not quite sure how this can be resolved, if this is an issue with
stars
package and how stars proxy objects are dealt with, or if it's possible to read the hyde data as a stars object instead of stars proxy object?If it helps, this is what I did to read the data in
The text was updated successfully, but these errors were encountered: