Published
Edited
Sep 16, 2020
8 forks
8 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
image = {
let images = ee.ImageCollection("COPERNICUS/S1_GRD");
// get the last month of Sentinel-1 data
let t2 = ee.Date(new Date().getTime())
let t1 = t2.advance(-1, 'month')
images = images
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))

// Select bands of interest, compute median
let image = images
.filterDate(t1, t2)
.select(['VV','VH'])
.reduce(ee.Reducer.percentile([75])).rename(['VV', 'VH'])
image = image.addBands(image.select('VV').divide(image.select('VH'))).rename(['VV', 'VH', 'ratio'])
image = image.updateMask(image.select('VV').max(image.select('VH')).unitScale(-20, -10))

let rgb = image.visualize({min: [-25, -25, 0.2], max: [5, -3, 1], gamma: 1 })
return rgb
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more