Hi all,
I’m trying to extract the metadata of a Sentinel-1 scene. I’ve followed several tutorials and examples, but the userData.json file returned is null every time, which doesn’t happens for Sentinel-2 scenes. I don’t know if I’m missing something or the scenes for Sentinel-1 are different. It’s important to say that the image is from one specific day, not a mosaic.
The evalscript I use is the following:
//VERSION=3
function setup() {
return {
input: {
bands: "VH", "VV"]
}],
mosaicking: Mosaicking.ORBIT,
output: {
id: "default",
bands: 2
}
};
}
function evaluatePixel(sample) {
return sample.VH, sample.VV];
}
function updateOutputMetadata(scenes, inputMetadata, outputMetadata) {
outputMetadata.userData = { "scenes": scenes.orbits }
}