-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
self repair in dem_download_big_area_rgugik
- Loading branch information
1 parent
82654bf
commit f0cef35
Showing
6 changed files
with
22 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
Package: foRestools | ||
Title: Tools for foresters | ||
Version: 1.0.1 | ||
|
||
Authors@R: | ||
person("First", "Last", , "[email protected]", role = c("cre","aut"), | ||
Authors@R: person("First", "Last", , "[email protected]", role = c("cre","aut"), | ||
comment = c(ORCID = "0009-0002-8592-946X")) | ||
Description: Calculate vegetation indices and generate statistics and charts for user defined districts | ||
License: MIT + file LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
|
||
#' Title | ||
#' | ||
#' @param x - path to your shapefile | ||
#' @param y - integer of length 1 or 2, number of grid cells in x and y direction (columns, rows) | ||
#' | ||
#' @return | ||
#' @export | ||
#' | ||
#' @examples | ||
dem_download_big_area_rgugik=function(x,y){ | ||
aoi=sf::st_read(x) | ||
grid=sf::st_make_grid(aoi, n=y) | ||
aoi=sf::st_intersection(aoi,grid) | ||
dem_download_big_area_rgugik <- function(x, y) { | ||
aoi <- sf::st_read(x) | ||
grid <- sf::st_make_grid(aoi, n = y) | ||
aoi <- sf::st_intersection(aoi, grid) | ||
plot(aoi) | ||
result=data_frame() | ||
for (i in 1:length(aoi$geometry)) { | ||
req_df=rgugik::DEM_request(aoi[i,]) | ||
result=dplyr::bind_rows(req_df, result) | ||
result <- tibble::tibble() | ||
for (i in seq_len(nrow(aoi))) { | ||
req_df <- rgugik::DEM_request(aoi[i, ]) | ||
result <- dplyr::bind_rows(result, req_df) | ||
} | ||
return(result) | ||
print("This tools is based on https://github.com/kadyb/rgugik") | ||
return(result) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
|
||
#' Title | ||
#' | ||
#' @param x - path to your shapefile | ||
#' @param y - integer of length 1 or 2, number of grid cells in x and y direction (columns, rows) | ||
#' @param x | ||
#' @param y | ||
#' | ||
#' @return | ||
#' @export | ||
#' | ||
#' @examples | ||
ortho_download_big_area_rgugik=function(x,y){ | ||
aoi=sf::st_read(x) | ||
grid=sf::st_make_grid(aoi, n=y) | ||
aoi=sf::st_intersection(aoi,grid) | ||
ortho_download_big_area_rgugik <- function(x, y) { | ||
aoi <- sf::st_read(x) | ||
grid <- sf::st_make_grid(aoi, n = y) | ||
aoi <- sf::st_intersection(aoi, grid) | ||
plot(aoi) | ||
result=data_frame() | ||
for (i in 1:length(aoi$geometry)) { | ||
req_df=rgugik::ortho_request(aoi[i,]) | ||
result=dplyr::bind_rows(req_df, result) | ||
result <- tibble::tibble() | ||
for (i in seq_len(nrow(aoi))) { | ||
req_df <- rgugik::ortho_request(aoi[i, ]) | ||
result <- dplyr::bind_rows(result, req_df) | ||
} | ||
return(result) | ||
print("This tools is based on https://github.com/kadyb/rgugik") | ||
return(result) | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.