-
Notifications
You must be signed in to change notification settings - Fork 2
50 fix projection and 49 update documentation #51
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
Conversation
traceybit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tliddell4 these changes look good to me! i left one comment for you to look at, but i don't think it's critical.
R/secondary_weights.R
Outdated
|
|
||
| message(crayon::red("Warning: reprojecting secondary_raster to match grid, which may affect data")) | ||
| secondary_raster <- terra::project(secondary_raster, clim_raster) | ||
| terra::crs(secondary_raster) <- terra::crs(clim_raster, TRUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think that terra::project() should automatically change the label (this seemed to happen when i tested the code), but i don't think it would lead to any errors? maybe unless the label was incorrect from the beginning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you are correct - I've removed the crs line and pushed the change.
|
merging! |
traceybit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Issue 49 Documentation updates:
Issue 50 Fix Projection in Secondary Weights