AppalachianVoices / ACAR

Appalachian Communities at Risk Project
0 stars 0 forks source link

Code maps for ACAR webapp on iLoveMountains #2

Open WassonMF opened 9 years ago

WassonMF commented 9 years ago

Toby, it looks like the only usable LANDSAT layers are going to be the greenest pixel ones, as imperfect as they are. Median pixel and everything else I've tried is cloudy as hell (or heaven, I guess is cloudier). Anyway, here's what we're looking at:

var composite = ee.Image(ee.ImageCollection('LANDSAT/LC8_L1T_ANNUAL_GREENEST_TOA') .filterDate( Selection_Year + '-01-01', Selection_Year + '-12-31') .first());

macdermottt commented 9 years ago

Matt, found a couple of questions:

  1. Can you give me a landsat5 link? Also, what's is the cut off year between the two?
  2. Can you give me some visualization params for a color scheme? i.e. { min: ?, max: ? , palette: "#CSS,#CSS,#CSS"}
WassonMF commented 9 years ago

Toby,

Here's the code I used for Landsat 5

var composite = ee.Image(ee.ImageCollection('LANDSAT/LT5_L1T_ANNUAL_GREENEST_TOA') .filterDate( NDVI_Year + '-01-01', NDVI_Year + '-12-31') .first());

And, since it's a 3-band image, don't need to specify a palette. Just something like:

Map.addLayer(composite, {'bands':['B3', 'B2', 'B1'], min:0, max:0.25});

On Mon, Apr 6, 2015 at 10:38 AM, Tobin MacDermott notifications@github.com wrote:

Matt, found a couple of questions:

  1. Can you give me a landsat5 link? Also, what's is the cut off year between the two?
  2. Can you give me some visualization params for a color scheme? i.e. { min: ?, max: ? , palette: "#CSS,#CSS,#CSS"}

— Reply to this email directly or view it on GitHub https://github.com/AppalachianVoices/ACAR/issues/2#issuecomment-90083011 .

Matthew F. Wasson, Ph.D., Director of Programs Appalachian Voices

171 Grand Blvd. Boone, NC 28607 Phone: 828-262-1500 Website: www.appalachianvoices.org

"Nonviolent action, born of the awareness of suffering and nurtured by love, is the most effective way to confront adversity."

macdermottt commented 9 years ago

http://ilovemountains.org/test_zone/ACAR/

added in the satellite imagery. Enjoy the blazing speed...