Skip to content

Instantly share code, notes, and snippets.

View jdbcode's full-sized avatar

Justin Braaten jdbcode

View GitHub Profile
@jdbcode
jdbcode / goes_storm_ana_gif.ipynb
Last active June 1, 2021 23:20
goes_storm_ana_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 / landsat_5_8_rgb_time_series_explorer.js
Last active June 22, 2021 21:48
Landsat 5 and 8 RGB time series explorer
/**
* @license
* Copyright 2021 Justin Braaten
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@jdbcode
jdbcode / ee_pdsi_explorer_conus.md
Last active June 2, 2023 15:49
An Earth Engine App script that displays a PDSI map and time series chart for CONUS

Earth Engine App
Earth Engine Code Editor script

/**
 * @license
 * Copyright 2021 The Google Earth Engine Community Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@jdbcode
jdbcode / ee_pdsi_explorer_global.md
Last active May 27, 2023 13:18
An Earth Engine App script that displays a global PDSI map and time series chart

Earth Engine App
Earth Engine Code Editor script

/**
 * @license
 * Copyright 2021 The Google Earth Engine Community Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@jdbcode
jdbcode / ee_landtrendr_ftv_deck_viz.ipynb
Last active April 1, 2025 06:12
Earth Engine LandTrendr FTV image time series deck visualization
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_dataset_latency_calculator.js
Created July 16, 2021 18:18
Earth Engine dataset latency calculator
// #############################################################################
// ### INPUTS ###
// #############################################################################
var COL_ID = ee.ImageCollection("COPERNICUS/S1_GRD");
var PERIOD = 0.1; // Today to PERIOD months prior
// #############################################################################
@jdbcode
jdbcode / ee_goes_bootleg_fire_progression.js
Last active July 21, 2021 15:45
Earth Engine GOES Bootleg fire progression
/**
* This script generates a GOES animation of MCMIP overlayed with FDC to
* show fire progression.
*/
// #############################################################################
// ### INPUTS ###
// #############################################################################
// Area of interest.
@jdbcode
jdbcode / ee_cartopy_polar_coordinate_ndvi.ipynb
Last active October 12, 2021 17:35
ee_cartopy_polar_coordinate_ndvi.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Applies scaling factors.
var applyScaleAndOffset = function(img) {
var getFactorImg = function(factorNames) {
var factorList = img.toDictionary().select(factorNames).values();
return ee.Image.constant(factorList);
};
var scaleImg = getFactorImg(['CMI_C.._scale']);
var offsetImg = getFactorImg(['CMI_C.._offset']);
var scaled = img.select('CMI_C..').multiply(scaleImg).add(offsetImg);
return img.addBands({srcImg: scaled, overwrite: true});
// Get CMI image collection and process it for visualization.
var geosVisCol = ee.ImageCollection('NOAA/GOES/17/MCMIPF')
.filterDate('2020-09-05T15:00', '2020-09-06T02:00')
.map(processForVis);
// Set display parameters and render the animation.
var visParams = {
bands: ['CMI_C02', 'CMI_GREEN', 'CMI_C01'],
min: 0,
max: 0.8,