ee.ImageCollection.toList

একটি তালিকা হিসাবে একটি সংগ্রহের উপাদান প্রদান করে।

ব্যবহার রিটার্নস
ImageCollection. toList (count, offset ) তালিকা
যুক্তি টাইপ বিস্তারিত
এই: collection ফিচার কালেকশন আনার জন্য ইনপুট সংগ্রহ।
count পূর্ণসংখ্যা আনার জন্য উপাদানগুলির সর্বাধিক সংখ্যা৷
offset পূর্ণসংখ্যা, ডিফল্ট: 0 শুরু থেকে বাতিল করার উপাদানের সংখ্যা। সেট করা হলে, (অফসেট + গণনা) উপাদানগুলি আনা হবে এবং প্রথম অফসেট উপাদানগুলি বাতিল করা হবে৷

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// 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);

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# 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')
print('Image collection:', col.getInfo())

# Get the first 3 images as a list of images.
img_list_first3 = col.toList(3)
print('First 3 images:', img_list_first3.getInfo())

# Get the second 3 images as a list of images (use the offset parameter).
img_list_second3 = col.toList(3, 3)
print('Second 3 images:', img_list_second3.getInfo())
,একটি তালিকা হিসাবে একটি সংগ্রহের উপাদান প্রদান করে।

ব্যবহার রিটার্নস
ImageCollection. toList (count, offset ) তালিকা
যুক্তি টাইপ বিস্তারিত
এই: collection ফিচার কালেকশন আনার জন্য ইনপুট সংগ্রহ।
count পূর্ণসংখ্যা আনার জন্য উপাদানগুলির সর্বাধিক সংখ্যা৷
offset পূর্ণসংখ্যা, ডিফল্ট: 0 শুরু থেকে বাতিল করার উপাদানের সংখ্যা। সেট করা হলে, (অফসেট + গণনা) উপাদানগুলি আনা হবে এবং প্রথম অফসেট উপাদানগুলি বাতিল করা হবে৷

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// 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);

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# 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')
print('Image collection:', col.getInfo())

# Get the first 3 images as a list of images.
img_list_first3 = col.toList(3)
print('First 3 images:', img_list_first3.getInfo())

# Get the second 3 images as a list of images (use the offset parameter).
img_list_second3 = col.toList(3, 3)
print('Second 3 images:', img_list_second3.getInfo())