ee_extra.STAC.core.getSTAC#

ee_extra.STAC.core.getSTAC(x)[source]#

Gets the STAC of the specified platform.

Parameters:

x (Union[Image, ImageCollection]) – Image or image collection to get the STAC from.

Return type:

dict

Returns:

STAC of the ee.Image or ee.ImageCollection dataset.

Examples

>>> import ee
>>> from ee_extra.STAC.core import getSTAC
>>> ee.Initialize()
>>> S2 = ee.ImageCollection("COPERNICUS/S2_SR")
>>> getSTAC(S2)