// TODO(gino-m): Replace with shared code repo.
var lct = require('users/google/toolkits:landcover/api.js');
// Create a new Landsat8 dataset.
var dataset = lct.Landsat8()
// Filter by date.
.filterDate('2018-06-01', '2019-01-01')
// Filter by country boundary.
.filterBounds(lct.Region.lsib('Tanzania'))
// Add Tasseled Cap transformation bands.
.addTasseledCap();
// Print a list of available bands.
print('Bands:', dataset.getImageCollection().first().bandNames());
// Add the resulting ImageCollection to the map, taking the median of
// overlapping pixel values.
var imageVisParam = {"opacity":1,"bands":["TC1","TC2","TC3"],"min":-819.3741274451727,"max":3228.7496002292146,"gamma":1};
Map.addLayer(
dataset.getImageCollection().median(), imageVisParam);
Map.setCenter(33.776, -5.944, 5);