Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить право на некоммерческое использование для сохранения доступа. Если вы не подтвердите право до 26 сентября 2025 года, ваш доступ может быть приостановлен.
Отправить отзыв
ee.ImageCollection.size
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Возвращает количество элементов в коллекции.
Использование Возврат ImageCollection. size ()
Целое число
Аргумент Тип Подробности это: collection
FeatureCollection Коллекция, которую нужно подсчитать.
Примеры Редактор кода (JavaScript)
// Note: ee.ImageCollection.size may take a lot of time and memory to run,
// since it must generate all of the results in order to count them. 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' );
// Get the number of images in the collection.
print ( 'Number of images' , col . size ()); Настройка Python
Информацию об API Python и использовании geemap
для интерактивной разработки см. на странице «Среда Python» .
import ee
import geemap.core as geemap Colab (Python)
# Note: ee.ImageCollection.size may take a lot of time and memory to run,
# since it must generate all of the results in order to count them. 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' )
# Get the number of images in the collection.
print ( 'Number of images' , col . size () . getInfo ()) ,Возвращает количество элементов в коллекции.
Использование Возврат ImageCollection. size ()
Целое число
Аргумент Тип Подробности это: collection
FeatureCollection Коллекция, которую нужно подсчитать.
Примеры Редактор кода (JavaScript)
// Note: ee.ImageCollection.size may take a lot of time and memory to run,
// since it must generate all of the results in order to count them. 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' );
// Get the number of images in the collection.
print ( 'Number of images' , col . size ()); Настройка Python
Информацию об API Python и использовании geemap
для интерактивной разработки см. на странице «Среда Python» .
import ee
import geemap.core as geemap Colab (Python)
# Note: ee.ImageCollection.size may take a lot of time and memory to run,
# since it must generate all of the results in order to count them. 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' )
# Get the number of images in the collection.
print ( 'Number of images' , col . size () . getInfo ())
Отправить отзыв
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0" , а примеры кода – по лицензии Apache 2.0 . Подробнее об этом написано в правилах сайта . Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
Хотите рассказать подробнее?
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-24 UTC."],[],[]]