Skip to content

Instantly share code, notes, and snippets.

View twnawrocki's full-sized avatar

Timm Nawrocki twnawrocki

View GitHub Profile
// Define an area of interest property for Point Lay.
var aoi = ee.Geometry.Rectangle(-162.7,69.4, -163.4,69.9);
// Import the Sentinel-1 Image Collection VV and VH polarizations within study area and date range
var sentinel1 = ee.ImageCollection('COPERNICUS/S1_GRD')
.filterBounds(aoi)
.filter(ee.Filter.date('2018-08-19', '2018-10-19'))
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))
.filter(ee.Filter.eq('instrumentMode', 'IW'))
/* -*- coding: utf-8 -*-
---------------------------------------------------------------------------
Cloud-reduced Greenest Pixel Composite Sentinel 2 Imagery for July 2015-2019
Author: Timm Nawrocki, Alaska Center for Conservation Science
Created on: 2019-03-19
Usage: Must be executed from the Google Earth Engine code editor.
Description: This script produces a cloud-reduced greenest pixel composite (based on maximum NDVI) for bands 1-12 plus Enhanced Vegetation Index-2 (EVI2), Normalized Burn Ratio (NBR), Normalized Difference Moisture Index (NDMI), Normalized Difference Snow Index (NDSI), Normalized Difference Vegetation Index (NDVI), Normalized Difference Water Index (NDWI) using the Sentinel2 Top-Of-Atmosphere (TOA) reflectance image collection filtered to the month of July from 2015 through 2018. See Chander et al. 2009 for a description of the TOA reflectance method. The best pixel selection is based on maximum NDVI for all metrics to ensure uniform pixel selection from all bands.
- EVI-2 was calculate
@twnawrocki
twnawrocki / calving_ndvi_trends.js
Last active February 6, 2020 17:21
This script charts the mean Normalized Difference Vegetation Index (NDVI) using the MODIS data collection for the period of June 1-15 from 2000 to 2019 within generalized calving areas of the Western Arctic Herd, Teshekpuk Herd, Central Arctic Herd, and Porcupine Herd. This script was created as an example of wildlife-related applications of Goo…