R/create_nldas_point_grid.R

Defines functions create_nldas_point_cloud

Documented in create_nldas_point_cloud

#' Title
#'
#' @param shapefile
#'
#' @return
#' @export
#'
#' @examples
create_nldas_point_cloud <- function(shapefile) {
  points <- shapefile %>%
    sf::st_make_grid(cellsize = .125/10, what = "centers")

  cloud <- sf::st_intersection(shapefile, points) %>%
    sf::st_transform(4326)
}
benjamincrary/NLDAS documentation built on Aug. 28, 2020, 3:33 a.m.