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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more