Skip to content

Commit

Permalink
explicity add LHS with full stop to terra crop for raw data
Browse files Browse the repository at this point in the history
  • Loading branch information
jflowernet committed Jun 20, 2024
1 parent c3b9dfc commit d1be9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_raw_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get_raw_data <- function(spatial_grid, dat, meth, matching_crs, antimeridian){
if(check_raster(dat)){
if(matching_crs){
dat %>%
terra::crop(sf::st_as_sf(spatial_grid), mask = TRUE)
terra::crop(., sf::st_as_sf(spatial_grid), mask = TRUE)
}else{
spatial_grid %>%
sf::st_transform(sf::st_crs(dat)) %>%
Expand Down

0 comments on commit d1be9da

Please sign in to comment.