Display streamlines

Show rivers and DEM of a river basin

Use the code below or follow this link.

// import maps
var DEM = ee.Image("WWF/HydroSHEDS/15CONDEM");
var accu = ee.Image("WWF/HydroSHEDS/30ACC")

// add fusion table
var ft = ee.FeatureCollection("ft:1_posMR8h1zxkeyH6hYgWWq2mUNV4FtvqjPPJzhSZ");

// select polygon based on BASIN_ID
var myBasin = ft.filter(ee.Filter.eq("BASIN_ID",57719));

// add single watershed
Map.addLayer(myBasin,null,"my watershed");

// create the vizualization parameters
var viz = {min:0.0, max:50000, palette:"fffdb5,ce0000,000000"};

Map.addLayer(accu.clip(myBasin),viz,"basin")

// create the vizualization parameters
var viz = {min:0.0, max:1000, palette:"000000,fa02ff,001699,fffdb5,00f4e8,f4f000,f40000,960424"};

// show DEM
Map.addLayer(DEM.clip(myBasin),viz,"DEM");

dem.png
dem

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s