<jupyter_start><jupyter_text>Checking the STAC Info of ANY RASTER DATASET in the GEE STAC - GitHub Repo: [https://github.com/davemlz/eemont](https://github.com/davemlz/eemont)- PyPI link: [https://pypi.org/project/eemont/](https://pypi.org/project/eemont/)- Conda-forge: [https://anaconda.org/conda-forge/eemont](https://anaconda.org/conda-forge/eemont)- Documentation: [https://eemont.readthedocs.io/](https://eemont.readthedocs.io/)- More tutorials: [https://github.com/davemlz/eemont/tree/master/tutorials](https://github.com/davemlz/eemont/tree/master/tutorials)  Let's start! If required, please uncomment:<jupyter_code>#!pip install eemont
#!pip install geemap<jupyter_output><empty_output><jupyter_text>Import the required packges.<jupyter_code>import ee, eemont, geemap<jupyter_output><empty_output><jupyter_text>Authenticate and Initialize Earth Engine and geemap.<jupyter_code>Map = geemap.Map()<jupyter_output><empty_output><jupyter_text>Let's take the same products used in tutorial 015 as example:<jupyter_code>S2 = ee.ImageCollection("COPERNICUS/S2_SR")
L8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR")
MOD11A2 = ee.ImageCollection("MODIS/006/MOD11A2")
WAPOR_ET = ee.ImageCollection("FAO/WAPOR/2/L1_AETI_D")
NOAA_OCEAN_SURF_TEMP = ee.ImageCollection("NOAA/CDR/OISST/V2_1")<jupyter_output><empty_output><jupyter_text>Checking STAC Info Similar to `getInfo`, now you can use `getSTAC` to retrieve the information from the GEE STAC of AN RASTER DATASET:<jupyter_code>S2.getSTAC()<jupyter_output><empty_output><jupyter_text>The info is retrieved as a manipulable dictionary:<jupyter_code>S2STAC = S2.getSTAC()<jupyter_output><empty_output><jupyter_text>You can check everthing in it. Let's see the keys:<jupyter_code>S2STAC.keys()<jupyter_output><empty_output><jupyter_text>Now, let's check the properties and the schema:<jupyter_code>S2STAC["summaries"]["gee:schema"]<jupyter_output><empty_output><jupyter_text>If used over an ee.Image, the result will be the same:<jupyter_code>S2.first().getSTAC()<jupyter_output><empty_output><jupyter_text>Now, let's check the STAC info of the remaining datasets:<jupyter_code>L8.getSTAC()
MOD11A2.getSTAC()
WAPOR_ET.getSTAC()
NOAA_OCEAN_SURF_TEMP.getSTAC()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13372093023255813, 'fraction_numerical': 0.01520572450805009, 'mean_word_length': 8.243801652892563, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '374996', 'license': 'MIT', 'n_tokens_mistral': 926, 'n_tokens_neox': 897, 'n_words': 136, 'path': 'tutorials/019-Checking-STAC-Info.ipynb', 'repo_name': 'sebimarkgraf/eemont', 'size': '2236'}