-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue 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
Rasterizing using the "by" argument produce raster with possibly wrong layer names #1435
Comments
Than you, I now get:
|
Thank you very much! |
Hi, first, thank you for the wonderful package. It's fantastic. I am having a similar—but I would say weirder—problem. I am using terra version 1.7-78 on a macOS Sonoma 14.3.1 with R version 4.4.1. I don't think I can make a reproducible example, but here is my code and the output. This is code running on a random subsample of my data for testing purposes.
These appear to be bits and pieces of file paths in my hard drive (though I'm confused by the '廂' symbol in output 26). When I try to run the same code on the entire dataset (without the sample() subset) I get the following error:
Which I suspect is related to some issue with these layer names. If there's any way I can make this more reproducible let me know! |
Hi, it is not a good idea to post more in a closed issue.
I suspect it has these strange values. |
Hi, sorry. I guess I should have opened a new issue. Fire_Year is a numeric variable as expected...
Very much a mystery. An easy work around is just putting the rasterization in a loop by Fire_Year, which is what I've done. Anyways, just wanted to flag this. |
I am rasterizing using the
by
argument and found out that the resultingnames
in the created raster are kinda strange.I was expecting
names
to be “a” and “b”. Is it expected? Any ideas on how to fix that?Created on 2024-02-24 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: