I am looking to extract the metadata.xml for the Landsat 8-9 products as I need to extract the sun elevation angle and relative sun earth distance for for some calculations.
As per some reading, I read that it can be extracted via catalog API or WFS request, but sadly no help is available regarding it script. Can you please help in extracting that metadata.xml?
The sun elevation angle can be accessed as bands in your Evalscript, as shown in this documentation page. You can also fetch this information using Catalog API. Below is an example call:
is a placeholder. Please either generate your own token or for ease, you can use Request Builder by parsing in the command under the Catalog tab in the Request Preview at the bottom right.