This file contains hidden or 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
| #' Script to sample multiple layers by years 1990 - 2011 using a point dataset | |
| #' @description Layers: Landsat spectral values; NDVI; NDMI; NBR; Elevation, Slope, Aspect. | |
| #' | |
| #' PARAMETERS | |
| #' | |
| #' | |
| library(rgee) | |
| ee_Initialize() | |
| USUptsNew <- ee$FeatureCollection("users/dougramsey/ForCaMF/PointData/USU_RandomPoints_NEW") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| library(rgee) | |
| library(sf) | |
| library(magick) | |
| ee_Initialize() | |
| mask <- system.file("shp/arequipa.shp", package = "rgee") %>% | |
| st_read(quiet = TRUE) %>% | |
| sf_as_ee() |
This file contains hidden or 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
| library(rgee) | |
| ee_Initialize() | |
| download_point <- function(point_name, output = ".") { | |
| # Create folder | |
| point_dir <- sprintf("%s/%s", output, point_name) | |
| dir.create(point_dir, showWarnings = FALSE) | |
This file contains hidden or 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
| # Spatial R packages ------------------------------------------------------ | |
| library(cptcity) | |
| library(mapview) | |
| library(leaflet) | |
| library(rgee) | |
| library(sf) | |
| # Initialize Google Earth Engine (Just One time) | |
| ee_Initialize() |
This file contains hidden or 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
| library(dplyr) | |
| library(rgee) | |
| library(sf) | |
| library(googledrive) | |
| library(googleCloudStorageR) | |
| library(lwgeom) | |
| library(reticulate) | |
| library(jsonlite) |
This file contains hidden or 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
| Save here your images |
This file contains hidden or 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
| library(rgee) | |
| # ------------------------------------------------------------------------- | |
| # 1. Load Earth Engine ---------------------------------------------------- | |
| # ------------------------------------------------------------------------- | |
| ee_Initialize(drive = TRUE) | |
| # ------------------------------------------------------------------------- | |
| # 2. Auxiliary functions -------------------------------------------------- |
This file contains hidden or 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
| from typing import List | |
| import datetime | |
| import pathlib | |
| import re | |
| class Sen2CubeFiles: | |
| def __init__(self, path: str): | |
| self.path = path | |
| self.__fake_path = path | |
| self._files = self.search_iter(".") |
This file contains hidden or 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
| ## Travel time to school facilities as a marker of geographical ## | |
| ## accessibility across heterogeneous land cov ## | |
| ##' @GabrielCarrasco-Escobar, @EdgarManrique, @KellyTello-Lizarraga, ## | |
| ##' @J.JaimeMiranda,@AntonyBarja ## | |
| ##'-------------------------------------------------------------------## | |
| # Requerements | |
| library(tidyverse) | |
| library(cptcity) | |
| library(rgee) |