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
var collection = ee.ImageCollection('MODIS/006/MOD13A2'); | |
var band = 'NDVI'; | |
var where = ee.Geometry.Point([-93.51, 35.76]); | |
print(ui.Chart.image.doySeriesByYear(collection, band, where)); |
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
var what = ee.ImageCollection('MODIS/006/MOD13A2').select('NDVI'); | |
var where = ee.FeatureCollection([ | |
ee.Feature(ee.Geometry.Point([-93.51, 35.76]), {'veg_type': 'Deciduous'}), | |
ee.Feature(ee.Geometry.Point([-122.06, 37.01]), {'veg_type': 'Coniferous'}) | |
]); | |
var how = ee.Reducer.mean(); | |
var by = 'veg_type'; | |
print(ui.Chart.image.seriesByRegion(what, where, how, null, null, null, by)); |
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
var what = ee.ImageCollection('MODIS/006/MOD13A2').select('NDVI'); | |
var where = ee.Geometry.Point([-93.51, 35.76]); | |
var chartStyle = { | |
title: 'ggplot2 Default Chart Style', | |
colors: ['F8766D'], | |
hAxis: { | |
title: 'Observation Date', | |
titleTextStyle: {italic: false, bold: true}, | |
gridlines: {color: 'FFF'}, | |
baselineColor: 'FFF' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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) | |
library(RColorBrewer) | |
library(reticulate) | |
ee_Initialize() | |
eemont <- reticulate::import("eemont") | |
point <- ee$Geometry$Point(c(-76.9, 7.2)) | |
L8 <- (ee$ImageCollection('LANDSAT/LC08/C01/T1_SR') |
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(tidyverse) | |
library(sf) | |
ee_Initialize() | |
nc <- st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE) | |
terraclimate <- (ee$ImageCollection("IDAHO_EPSCOR/TERRACLIMATE") | |
$filterDate("2001-01-01", "2002-01-01") |
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() | |
createTimeBand <- function(img) { | |
year <- (ee$Date(img$get("system:time_start")) | |
$get("year")$subtract(1991L)) | |
ee$Image(year)$byte()$addBands(img) | |
} |