Skip to content

Instantly share code, notes, and snippets.

View csaybar's full-sized avatar
🇵🇪

Cesar Aybar csaybar

🇵🇪
View GitHub Profile
@csaybar
csaybar / rusle_01
Created February 4, 2020 21:22
mastergis resultos
aqui
@csaybar
csaybar / propuesto
Created February 4, 2020 21:30
mastergisprop
hi
@csaybar
csaybar / rgee_images.txt
Created February 15, 2020 12:58
rgee_images
hi
@csaybar
csaybar / desinventar.py
Last active April 22, 2020 21:57
Barja desinventar selenium
import os
import ee
import ast
import sys
import json
import time
import pickle
import requests
import selenium
import subprocess
@csaybar
csaybar / cp_lore.geojson
Created March 18, 2020 14:50
cp_loreto.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
library(tidyverse)
library(ggplot2)
library(rgee)
library(sf)
ee_reattach() # reattach ee as a reserved word
ee_Initialize()
# Define a geometry
nc <- st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE) %>%
@csaybar
csaybar / build_check.R
Created April 1, 2020 03:00
My build check for R packages
#' Testing build check used in rgee
# 1. Install packages
if (!require(devtools)) install.packages('devtools')
if (!require(pkgdown)) install.packages('pkgdown')
if (!require(rhub)) install.packages('rhub')
if (!require(goodpractice)) install.packages('goodpractice')
# 2. goodpractice checks
tcks <- all_checks()
library(rgee)
ee_reattach()
ee_Initialize()
world_RGB <- ee$ImageCollection('MODIS/006/MCD43A4')$
filter(ee$Filter$date('2010-04-01', '2010-06-30'))$
select(
list(
'Nadir_Reflectance_Band1',
'Nadir_Reflectance_Band4',
@csaybar
csaybar / image.png
Created April 19, 2020 05:58
GOOGLE EARTH ENGINE MASTERGIS
a