ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অ্যাক্সেস বজায় রাখার জন্য
অবাণিজ্যিক যোগ্যতা যাচাই করতে হবে। আপনি যদি 26 সেপ্টেম্বর, 2025 এর মধ্যে যাচাই না করে থাকেন তবে আপনার অ্যাক্সেস হোল্ডে রাখা হতে পারে।
মতামত জানান
ee.ImageCollection.fromImages
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রদত্ত ছবি সমন্বিত চিত্র সংগ্রহ দেখায়।
ব্যবহার রিটার্নস ee.ImageCollection.fromImages(images)
ইমেজ কালেকশন
যুক্তি টাইপ বিস্তারিত images
তালিকা সংগ্রহে অন্তর্ভুক্ত করার জন্য ছবি.
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// A series of images.
var img1 = ee . Image ( 0 );
var img2 = ee . Image ( 1 );
var img3 = ee . Image ( 2 );
// Convert the list of images into an image collection.
var col = ee . ImageCollection . fromImages ([ img1 , img2 , img3 ]);
print ( 'Collection from list of images' , col );
// The ee.ImageCollection.fromImages function is intended to coerce the image
// list to a collection when the list is an ambiguous, computed object fetched
// from the properties of a server-side object. For instance, a list
// of images retrieved from a ee.Feature property. Here, we set an image
// list as a property of a feature, retrieve it, and convert it to
// a collection. Notice that the ee.ImageCollection constructor fails to coerce
// the image list to a collection, but ee.ImageCollection.fromImages does.
var feature = ee . Feature ( null ). set ( 'img_list' , [ img1 , img2 , img3 ]);
var ambiguousImgList = feature . get ( 'img_list' );
print ( 'Coerced to collection' , ee . ImageCollection . fromImages ( ambiguousImgList ));
print ( 'NOT coerced to collection' , ee . ImageCollection ( ambiguousImgList ));
// A common use case is coercing an image list from a saveAll join to a
// image collection, like in this example of building a collection of mean
// annual NDVI images from a MODIS collection.
var modisCol = ee . ImageCollection ( 'MODIS/006/MOD13A2' )
. filterDate ( '2017' , '2021' )
. select ( 'NDVI' )
. map ( function ( img ) { return img . set ( 'year' , img . date (). get ( 'year' ))});
var distinctYearCol = modisCol . distinct ( 'year' );
var joinedCol = ee . Join . saveAll ( 'img_list' ). apply ({
primary : distinctYearCol ,
secondary : modisCol ,
condition : ee . Filter . equals ({ 'leftField' : 'year' , 'rightField' : 'year' })
});
var annualNdviMean = joinedCol . map ( function ( img ) {
return ee . ImageCollection . fromImages ( img . get ( 'img_list' )). mean ()
. copyProperties ( img , [ 'year' ]);
});
print ( 'Mean annual NDVI collection' , annualNdviMean ); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# A series of images.
img1 = ee . Image ( 0 )
img2 = ee . Image ( 1 )
img3 = ee . Image ( 2 )
# Convert the list of images into an image collection.
col = ee . ImageCollection . fromImages ([ img1 , img2 , img3 ])
print ( 'Collection from list of images:' , col . getInfo ())
# The ee.ImageCollection.fromImages function is intended to coerce the image
# list to a collection when the list is an ambiguous, computed object fetched
# from the properties of a server-side object. For instance, a list
# of images retrieved from a ee.Feature property. Here, we set an image
# list as a property of a feature, retrieve it, and convert it to
# a collection. Notice that the ee.ImageCollection constructor fails to coerce
# the image list to a collection, but ee.ImageCollection.fromImages does.
feature = ee . Feature ( None ) . set ( 'img_list' , [ img1 , img2 , img3 ])
ambiguous_img_list = feature . get ( 'img_list' )
print (
'Coerced to collection:' ,
ee . ImageCollection . fromImages ( ambiguous_img_list ) . getInfo (),
)
print (
'NOT coerced to collection:' ,
ee . ImageCollection ( ambiguous_img_list ) . getInfo (),
)
# A common use case is coercing an image list from a saveAll join to a
# image collection, like in this example of building a collection of mean
# annual NDVI images from a MODIS collection.
modis_col = (
ee . ImageCollection ( 'MODIS/006/MOD13A2' )
. filterDate ( '2017' , '2021' )
. select ( 'NDVI' )
. map ( lambda img : img . set ( 'year' , img . date () . get ( 'year' )))
)
distinct_year_col = modis_col . distinct ( 'year' )
joined_col = ee . Join . saveAll ( 'img_list' ) . apply (
primary = distinct_year_col ,
secondary = modis_col ,
condition = ee . Filter . equals ( leftField = 'year' , rightField = 'year' ),
)
annual_ndvi_mean = joined_col . map (
lambda img : ee . ImageCollection . fromImages ( img . get ( 'img_list' ))
. mean ()
. copyProperties ( img , [ 'year' ])
)
print ( 'Mean annual NDVI collection:' , annual_ndvi_mean . getInfo ()) ,প্রদত্ত ছবি সমন্বিত চিত্র সংগ্রহ দেখায়।
ব্যবহার রিটার্নস ee.ImageCollection.fromImages(images)
ইমেজ কালেকশন
যুক্তি টাইপ বিস্তারিত images
তালিকা সংগ্রহে অন্তর্ভুক্ত করার জন্য ছবি.
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// A series of images.
var img1 = ee . Image ( 0 );
var img2 = ee . Image ( 1 );
var img3 = ee . Image ( 2 );
// Convert the list of images into an image collection.
var col = ee . ImageCollection . fromImages ([ img1 , img2 , img3 ]);
print ( 'Collection from list of images' , col );
// The ee.ImageCollection.fromImages function is intended to coerce the image
// list to a collection when the list is an ambiguous, computed object fetched
// from the properties of a server-side object. For instance, a list
// of images retrieved from a ee.Feature property. Here, we set an image
// list as a property of a feature, retrieve it, and convert it to
// a collection. Notice that the ee.ImageCollection constructor fails to coerce
// the image list to a collection, but ee.ImageCollection.fromImages does.
var feature = ee . Feature ( null ). set ( 'img_list' , [ img1 , img2 , img3 ]);
var ambiguousImgList = feature . get ( 'img_list' );
print ( 'Coerced to collection' , ee . ImageCollection . fromImages ( ambiguousImgList ));
print ( 'NOT coerced to collection' , ee . ImageCollection ( ambiguousImgList ));
// A common use case is coercing an image list from a saveAll join to a
// image collection, like in this example of building a collection of mean
// annual NDVI images from a MODIS collection.
var modisCol = ee . ImageCollection ( 'MODIS/006/MOD13A2' )
. filterDate ( '2017' , '2021' )
. select ( 'NDVI' )
. map ( function ( img ) { return img . set ( 'year' , img . date (). get ( 'year' ))});
var distinctYearCol = modisCol . distinct ( 'year' );
var joinedCol = ee . Join . saveAll ( 'img_list' ). apply ({
primary : distinctYearCol ,
secondary : modisCol ,
condition : ee . Filter . equals ({ 'leftField' : 'year' , 'rightField' : 'year' })
});
var annualNdviMean = joinedCol . map ( function ( img ) {
return ee . ImageCollection . fromImages ( img . get ( 'img_list' )). mean ()
. copyProperties ( img , [ 'year' ]);
});
print ( 'Mean annual NDVI collection' , annualNdviMean ); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# A series of images.
img1 = ee . Image ( 0 )
img2 = ee . Image ( 1 )
img3 = ee . Image ( 2 )
# Convert the list of images into an image collection.
col = ee . ImageCollection . fromImages ([ img1 , img2 , img3 ])
print ( 'Collection from list of images:' , col . getInfo ())
# The ee.ImageCollection.fromImages function is intended to coerce the image
# list to a collection when the list is an ambiguous, computed object fetched
# from the properties of a server-side object. For instance, a list
# of images retrieved from a ee.Feature property. Here, we set an image
# list as a property of a feature, retrieve it, and convert it to
# a collection. Notice that the ee.ImageCollection constructor fails to coerce
# the image list to a collection, but ee.ImageCollection.fromImages does.
feature = ee . Feature ( None ) . set ( 'img_list' , [ img1 , img2 , img3 ])
ambiguous_img_list = feature . get ( 'img_list' )
print (
'Coerced to collection:' ,
ee . ImageCollection . fromImages ( ambiguous_img_list ) . getInfo (),
)
print (
'NOT coerced to collection:' ,
ee . ImageCollection ( ambiguous_img_list ) . getInfo (),
)
# A common use case is coercing an image list from a saveAll join to a
# image collection, like in this example of building a collection of mean
# annual NDVI images from a MODIS collection.
modis_col = (
ee . ImageCollection ( 'MODIS/006/MOD13A2' )
. filterDate ( '2017' , '2021' )
. select ( 'NDVI' )
. map ( lambda img : img . set ( 'year' , img . date () . get ( 'year' )))
)
distinct_year_col = modis_col . distinct ( 'year' )
joined_col = ee . Join . saveAll ( 'img_list' ) . apply (
primary = distinct_year_col ,
secondary = modis_col ,
condition = ee . Filter . equals ( leftField = 'year' , rightField = 'year' ),
)
annual_ndvi_mean = joined_col . map (
lambda img : ee . ImageCollection . fromImages ( img . get ( 'img_list' ))
. mean ()
. copyProperties ( img , [ 'year' ])
)
print ( 'Mean annual NDVI collection:' , annual_ndvi_mean . getInfo ())
মতামত জানান
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License -এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License -এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। 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-তে শেষবার আপডেট করা হয়েছে।"],[],["`ee.ImageCollection.fromImages(images)` converts a list of images into an ImageCollection. This function is crucial for handling ambiguous, computed image lists, like those retrieved from server-side object properties. It successfully coerces image lists into collections, unlike the standard `ee.ImageCollection` constructor. A common use case is processing lists generated by `ee.Join.saveAll`, demonstrated by building a collection of mean annual NDVI images from MODIS data, efficiently grouping images and calculating yearly averages.\n"]]