<jupyter_start><jupyter_text>[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://githubtocolab.com/giswqs/gee-tutorials/blob/master/Image/image_metadata.ipynb) **Image information and metadata**To explore image bands and properties in Python, `print()` the image with the `getInfo()` function. This information can also be accessed programmatically. For example, the following demonstrates how to access information about bands, projections and other metadata:  Import libraries<jupyter_code>import ee
import geemap<jupyter_output><empty_output><jupyter_text>Create an interactive map<jupyter_code>Map = geemap.Map()
Map<jupyter_output><empty_output><jupyter_text>Display data on the map<jupyter_code># Load an image.
image = ee.Image('LANDSAT/LC08/C01/T1_SR/LC08_044034_20140318')
vis_params = {'bands': ['B5', 'B4', 'B3'], 'min': 0.0, 'max': 3000, 'opacity': 1.0, 'gamma': 1.2}

# Center the map and display the image.
Map.centerObject(image, zoom=8)
Map.addLayer(image, vis_params, 'Landsat')<jupyter_output><empty_output><jupyter_text>Get image metadata Get information about the bands as a list.<jupyter_code>bandNames = image.bandNames()
print('Band names: ', bandNames.getInfo())<jupyter_output><empty_output><jupyter_text>Get projection information from band 1. https://epsg.io/32610<jupyter_code>b1proj = image.select('B1').projection()
print('Band 1 projection: ', b1proj.getInfo())<jupyter_output><empty_output><jupyter_text>Get scale (in meters) information from band 1.<jupyter_code>b1scale = image.select('B1').projection().nominalScale()
print('Band 1 scale: ', b1scale.getInfo())<jupyter_output><empty_output><jupyter_text>Note that different bands can have different projections and scale.<jupyter_code>b10scale = image.select('B10').projection().nominalScale()
print('Band 10 scale: ', b10scale.getInfo())<jupyter_output><empty_output><jupyter_text>Get a list of all metadata properties.<jupyter_code>properties = image.propertyNames()
print('Metadata properties: ', properties.getInfo())<jupyter_output><empty_output><jupyter_text>Get a specific metadata property.<jupyter_code>cloudiness = image.get('CLOUD_COVER')
print('CLOUD_COVER: ', cloudiness.getInfo())<jupyter_output><empty_output><jupyter_text>Get the timestamp and convert it to a date.<jupyter_code>date = ee.Date(image.get('system:time_start'))
print('Timestamp: ', date.getInfo())
date2 = date.format('YYYY-MM-dd')
print('Timestamp: ', date2.getInfo())<jupyter_output><empty_output><jupyter_text>Use geemap to get image metadata<jupyter_code>image = ee.Image('LANDSAT/LC08/C01/T1_SR/LC08_044034_20140318')
image_props = geemap.image_props(image)
image_props.getInfo()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13711758201253224, 'fraction_numerical': 0.029856247696277184, 'mean_word_length': 8.692857142857143, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 3, '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': '11', 'dir': 'jupyter-structured-clean-dedup', 'id': '366983', 'license': 'MIT', 'n_tokens_mistral': 983, 'n_tokens_neox': 929, 'n_words': 179, 'path': 'docs/Image/image_metadata.ipynb', 'repo_name': 'famartinezal/gee-tutorials', 'size': '2713'}