Skip to content

Instantly share code, notes, and snippets.

@giswqs
Created November 11, 2020 03:22
Show Gist options
  • Save giswqs/44282895daa26060be74f443735bc155 to your computer and use it in GitHub Desktop.
Save giswqs/44282895daa26060be74f443735bc155 to your computer and use it in GitHub Desktop.
image collection ids
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "import ee\nimport geemap",
"execution_count": 1,
"outputs": []
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "Map = geemap.Map()",
"execution_count": 2,
"outputs": []
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "Map",
"execution_count": 3,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "Map(center=[40, -100], controls=(WidgetControl(options=['position'], widget=HBox(children=(ToggleButton(value=…",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "3139e1a261134147af57c80ce8d5c100"
}
},
"metadata": {}
}
]
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "collection = ee.ImageCollection('USDA/NAIP/DOQQ').limit(10)",
"execution_count": 4,
"outputs": []
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "collection.aggregate_array('system:index').getInfo()",
"execution_count": 5,
"outputs": [
{
"output_type": "execute_result",
"execution_count": 5,
"data": {
"text/plain": "['c_2509703_ne_14_2_20060519',\n 'c_2509704_ne_14_2_20060519',\n 'c_2509704_nw_14_2_20060519',\n 'c_2509704_se_14_2_20060519',\n 'c_2509704_sw_14_2_20060519',\n 'c_2509705_ne_14_2_20060519',\n 'c_2509705_nw_14_2_20060519',\n 'c_2509705_se_14_2_20060519',\n 'c_2509705_sw_14_2_20060519',\n 'c_2509706_ne_14_2_20060519']"
},
"metadata": {}
}
]
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"hide_input": false,
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"base_numbering": 1,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
},
"language_info": {
"name": "python",
"version": "3.8.5",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"gist": {
"id": "",
"data": {
"description": "image collection ids",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment