Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить право на некоммерческое использование для сохранения доступа. Если вы не подтвердите право до 26 сентября 2025 года, ваш доступ может быть приостановлен.
ee.ImageCollection.toList
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Возвращает элементы коллекции в виде списка.
| Использование | Возврат | ImageCollection. toList (count, offset ) | Список |
| Аргумент | Тип | Подробности | это: collection | FeatureCollection | Входная коллекция для извлечения. |
count | Целое число | Максимальное количество элементов для выборки. |
offset | Целое число, по умолчанию: 0 | Количество элементов, которые нужно отбросить с начала. Если задано, будет извлечено (смещение + количество) элементов, и первые элементы смещения будут отброшены. |
Примеры
Редактор кода (JavaScript)
// Note: ee.ImageCollection.toList may take a lot of time and memory to run,
// since it must generate all of the results in order to gather them into a
// list. Large collections and/or complex computations can produce memory
// limitation errors.
// A Landsat 8 TOA image collection (1 year of images at a specific point).
var col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA')
.filterBounds(ee.Geometry.Point(-90.70, 34.71))
.filterDate('2020-01-01', '2021-01-01');
print('Image collection', col);
// Get the first 3 images as a list of images.
var imgListFirst3 = col.toList(3);
print('First 3 images', imgListFirst3);
// Get the second 3 images as a list of images (use the offset parameter).
var imgListSecond3 = col.toList(3, 3);
print('Second 3 images', imgListSecond3); Настройка Python
Информацию об API Python и использовании geemap для интерактивной разработки см. на странице «Среда Python» .
import ee
import geemap.core as geemap
Colab (Python)
# Note: ee.ImageCollection.toList may take a lot of time and memory to run,
# since it must generate all of the results in order to gather them into a
# list. Large collections and/or complex computations can produce memory
# limitation errors.
# A Landsat 8 TOA image collection (1 year of images at a specific point).
col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA').filterBounds(
ee.Geometry.Point(-90.70, 34.71)).filterDate('2020-01-01', '2021-01-01')
display('Image collection:', col)
# Get the first 3 images as a list of images.
img_list_first3 = col.toList(3)
display('First 3 images:', img_list_first3)
# Get the second 3 images as a list of images (use the offset parameter).
img_list_second3 = col.toList(3, 3)
display('Second 3 images:', img_list_second3),Возвращает элементы коллекции в виде списка.
| Использование | Возврат | ImageCollection. toList (count, offset ) | Список |
| Аргумент | Тип | Подробности | это: collection | FeatureCollection | Входная коллекция для извлечения. |
count | Целое число | Максимальное количество элементов для выборки. |
offset | Целое число, по умолчанию: 0 | Количество элементов, которые нужно отбросить с начала. Если задано, будет извлечено (смещение + количество) элементов, и первые элементы смещения будут отброшены. |
Примеры
Редактор кода (JavaScript)
// Note: ee.ImageCollection.toList may take a lot of time and memory to run,
// since it must generate all of the results in order to gather them into a
// list. Large collections and/or complex computations can produce memory
// limitation errors.
// A Landsat 8 TOA image collection (1 year of images at a specific point).
var col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA')
.filterBounds(ee.Geometry.Point(-90.70, 34.71))
.filterDate('2020-01-01', '2021-01-01');
print('Image collection', col);
// Get the first 3 images as a list of images.
var imgListFirst3 = col.toList(3);
print('First 3 images', imgListFirst3);
// Get the second 3 images as a list of images (use the offset parameter).
var imgListSecond3 = col.toList(3, 3);
print('Second 3 images', imgListSecond3); Настройка Python
Информацию об API Python и использовании geemap для интерактивной разработки см. на странице «Среда Python» .
import ee
import geemap.core as geemap
Colab (Python)
# Note: ee.ImageCollection.toList may take a lot of time and memory to run,
# since it must generate all of the results in order to gather them into a
# list. Large collections and/or complex computations can produce memory
# limitation errors.
# A Landsat 8 TOA image collection (1 year of images at a specific point).
col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA').filterBounds(
ee.Geometry.Point(-90.70, 34.71)).filterDate('2020-01-01', '2021-01-01')
display('Image collection:', col)
# Get the first 3 images as a list of images.
img_list_first3 = col.toList(3)
display('First 3 images:', img_list_first3)
# Get the second 3 images as a list of images (use the offset parameter).
img_list_second3 = col.toList(3, 3)
display('Second 3 images:', img_list_second3)
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-10-30 UTC.
[null,null,["Последнее обновление: 2025-10-30 UTC."],[],["The function `ImageCollection.toList()` converts a collection's elements into a list. It takes a `count` argument, specifying the maximum number of elements to include. An optional `offset` argument allows discarding a set number of elements from the beginning. For example, setting a count of 3 and an offset of 3 returns elements four, five and six. The function is used with the input `collection`, a `FeatureCollection`. This process potentially demands significant resources, particularly with large collections.\n"]]