Skip to content

Instantly share code, notes, and snippets.

View csaybar's full-sized avatar
🇵🇪

Cesar Aybar csaybar

🇵🇪
View GitHub Profile
@csaybar
csaybar / rgee_example_02.R
Created June 15, 2020 08:10
rgee example #2.2
library(gdalcubes)
library(stars)
library(rgee)
ee_Initialize(drive = TRUE)
ocona <- ee$Geometry$Point(c(-73.10783, -16.43148))$buffer(1000)
ee_search_dataset() %>%
ee_search_title("sentinel") %>%
@csaybar
csaybar / rgee_example_02.R
Last active November 30, 2020 16:22
rgee example #2.1
library(cptcity)
library(raster)
library(stars)
library(rgee)
library(sf)
ee_Initialize(drive = TRUE)
roi <- st_read(system.file("shape/nc.shp", package="sf")) %>%
st_bbox() %>%
suppressPackageStartupMessages(library(mapview))
suppressPackageStartupMessages(library(sf))
mapviewOptions(
basemaps = c(
"Esri.WorldImagery", "OpenTopoMap",
"CartoDB.Positron", "CartoDB.DarkMatter",
"OpenStreetMap"
)
)
@csaybar
csaybar / rgee_example_01.R
Last active June 8, 2020 07:00
rgee example #1
library(mapedit) # (OPTIONAL) Interactive editing of vector data
library(raster) # Manipulate raster data
library(scales) # Scale functions for visualization
library(cptcity) # cptcity color gradients!
library(tmap) # Thematic Map Visualization <3
library(rgee) # Bindings for Earth Engine
ee_Initialize()
## 1. Wrangling data
@csaybar
csaybar / images.sh
Created June 7, 2020 08:15
master images
hi
[![R build status](https://github.com/r-spatial/rgee/workflows/R-CMD-check/badge.svg)](https://github.com/r-spatial/rgee/actions)
[![Project Status: Active – The project has reached a stable, usable
state and is being actively
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![codecov](https://codecov.io/gh/r-spatial/rgee/branch/master/graph/badge.svg)](https://codecov.io/gh/r-spatial/rgee)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![CRAN
status](https://www.r-pkg.org/badges/version/rgee)](https://cran.r-project.org/package=rgee)
@csaybar
csaybar / ssh-key.sh
Created May 7, 2020 21:22
Github SSH-key
cd ~/.ssh
ssh-keygen
cat github_csaybar.pub
#Copy public key in GitHub
eval $(ssh-agent -s) #start an agent!
ssh-add ~/.ssh/github_csaybar
@csaybar
csaybar / poly.geojson
Created April 30, 2020 06:38
poly_demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@csaybar
csaybar / lesly_img
Created April 27, 2020 09:47
scs+c
11
@csaybar
csaybar / lesly_img
Created April 27, 2020 09:47
scs+c
11