0

I am trying to get the extent of an ee.Image object. The image is result of reduced collection.

I was trying to do this as following:

bbox = img.geometry().bounds().getInfo()["coordinates"]

>>> [[[-180, -90], [180, -90], [180, 90], [-180, 90], [-180, -90]]]

The problem is that the result are always the global coordinates.
I know that the image itself is not global, I have visualize it , and I also understand based on this post, that it might be the result of having reduced collection. In the post the suggestion is to take the first image, however I wonder if there is other way to get this information, as in my case I can't access it from the first image in the collection.

My end goal is to be able to get the real coordinates of ee.Image

Edit: just for more information, when I try to take the first image from the collection I get the same global coordinates:

col.first().geometry().bounds().getInfo()["coordinates"]

>>>[[[-180, -90], [180, -90], [180, 90], [-180, 90], [-180, -90]]]

But the image seems to be NOT global: enter image description here

ReutKeller
  • 2,139
  • 4
  • 30
  • 84
  • Can you share a reproducible example? Your code seems right, so probably the issue is caused by either the properties of the image collection or the reduced image. – Jonathan V. Solórzano Jun 20 '23 at 16:00

0 Answers0