Skip to content

Instantly share code, notes, and snippets.

View jdbcode's full-sized avatar

Justin Braaten jdbcode

View GitHub Profile
@jdbcode
jdbcode / gee_calculate_tc.ipynb
Last active March 19, 2021 20:54
Calculate Landsat surface reflectance Tasseled Cap transformation using Earth Engine
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdbcode
jdbcode / medium_chart_doc_update_ex_04.js
Created March 18, 2021 19:42
[Medium] Code example 04 for the Medium blog on Earth Engine charting guide update
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'
@jdbcode
jdbcode / medium_chart_doc_update_ex_03.js
Created March 18, 2021 19:42
[Medium] Code example 03 for the Medium blog on Earth Engine charting guide update
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));
@jdbcode
jdbcode / medium_chart_doc_update_ex_02.js
Created March 18, 2021 19:41
[Medium] Code example 02 for the Medium blog on Earth Engine charting guide update
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));
@jdbcode
jdbcode / medium_chart_doc_update_ex_01.js
Created March 18, 2021 19:39
[Medium] Code example 01 for the Medium blog on Earth Engine charting guide update
var what = ee.ImageCollection('MODIS/006/MOD13A2').select('NDVI');
var where = ee.Geometry.Point([-93.51, 35.76]);
print(ui.Chart.image.series(what, where));
@jdbcode
jdbcode / ee_filmstrip_gif_precipitable_water.ipynb
Last active March 19, 2021 18:33
[EE Animation] GFS precipitable water 2021 atmospheric river
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdbcode
jdbcode / medium_demo_ic_series.js
Created March 4, 2021 16:52
[Medium] Embed code demo image collection series chart
// Import the example feature collection and subset the forest feature.
var forest = ee.FeatureCollection('projects/google/charts_feature_example')
.filter(ee.Filter.eq('label', 'Forest'));
// Load MODIS vegetation indices data and subset a decade of images.
var vegIndices = ee.ImageCollection('MODIS/006/MOD13A1')
.filter(ee.Filter.date('2010-01-01', '2020-01-01'))
.select(['NDVI', 'EVI']);
// Define the chart and print it to the console.
@jdbcode
jdbcode / geemap_timestamp_gif.ipynb
Last active February 20, 2021 11:05
geemap_timestamp_gif.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdbcode
jdbcode / ee_filmstrip_gif.ipynb
Last active October 3, 2022 17:54
ee_filmstrip_gif.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdbcode
jdbcode / palette_generator.ipynb
Created February 17, 2021 20:39
palette_generator.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.