Skip to content
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

stamp.direction error involving "units" objects #6

Open
monikashea opened this issue Nov 18, 2024 · 0 comments
Open

stamp.direction error involving "units" objects #6

monikashea opened this issue Nov 18, 2024 · 0 comments

Comments

@monikashea
Copy link

When dir.mode = "CentroidAngle" in stamp.direction() there is an error:

Error in Ops.units(temp, 0) : 
  both operands of the expression should be "units" objects

I tested this with my own data as well as the package data and the same error occurs both times. The error does not occur when dir.mode = ConeModel, and I have not tested the other options.

Here is the code I used to test this using the package data:

data(fire1)
data(fire2)

stamp_test <- stamp(fire1, fire2, dc = 0, direction = FALSE, distance = TRUE)
dir_test <- stamp.direction(stamp_test, dir.mode = "CentroidAngle")
dir_test <- stamp.direction(stamp_test, dir.mode = "ConeModel")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant