ارسال بازخورد
ee.ImageCollection.getArray
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک ویژگی را از یک ویژگی استخراج کنید.
استفاده برمی گرداند ImageCollection. getArray (property)
آرایه
استدلال تایپ کنید جزئیات این: object
عنصر ویژگی برای استخراج ملک از. property
رشته دارایی برای استخراج.
نمونه ها ویرایشگر کد (جاوا اسکریپت)
// A contrived, empty image collection for simple demonstration.
var col = ee . ImageCollection ([]);
print ( 'Collection without properties' , col );
// Set collection properties using a dictionary.
col = col . set ({
project_name : 'biomass_tracking' ,
project_id : 3 ,
plot_ids : ee . Array ([ 7 , 11 , 20 ])
});
// Set collection properties using a series of key-value pairs.
col = col . set ( 'project_year' , 2018 ,
'rgb_vis' , 'false_color' );
print ( 'Collection with properties' , col );
// Get a dictionary of collection property keys and values.
print ( 'Property keys and values (ee.Dictionary)' , col . toDictionary ());
// Get the value of a collection property. To use the result of
// ee.ImageCollection.get in further computation, you need to cast it to the
// appropriate class, for example, ee.Number(result) or ee.String(result).
print ( 'Project ID (ambiguous object)' , col . get ( 'project_id' ));
// Get the value of a string collection property as an ee.String object.
print ( 'Project name (ee.String)' , col . getString ( 'project_name' ));
// Get the value of a numeric collection property as an ee.Number object.
print ( 'Project year (ee.Number)' , col . getNumber ( 'project_year' ));
// Get the value of an ee.Array collection property as an ee.Array object.
print ( 'Plot IDs (ee.Array)' , col . getArray ( 'plot_ids' )); راه اندازی پایتون
برای اطلاعات در مورد API پایتون و استفاده از geemap
برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.
import ee
import geemap.core as geemap کولب (پایتون)
from pprint import pprint
# A contrived, empty image collection for simple demonstration.
col = ee . ImageCollection ([])
print ( 'Collection without properties:' )
pprint ( col . getInfo ())
# Set collection properties using a dictionary.
col = col . set ({
'project_name' : 'biomass_tracking' ,
'project_id' : 3 ,
'plot_ids' : ee . Array ([ 7 , 11 , 20 ])
})
# Set collection properties using a series of key-value pairs.
col = col . set ( 'project_year' , 2018 ,
'rgb_vis' , 'false_color' )
print ( 'Collection with properties:' )
pprint ( col . getInfo ())
# Get a dictionary of collection property keys and values.
print ( 'Property keys and values (ee.Dictionary):' )
pprint ( col . toDictionary () . getInfo ())
# Get the value of a collection property. To use the result of
# ee.ImageCollection.get in further computation, you need to cast it to the
# appropriate class, for example, ee.Number(result) or ee.String(result).
print ( 'Project ID (ambiguous object):' , col . get ( 'project_id' ) . getInfo ())
# Get the value of a string collection property as an ee.String object.
print ( 'Project name (ee.String):' , col . getString ( 'project_name' ) . getInfo ())
# Get the value of a numeric collection property as an ee.Number object.
print ( 'Project year (ee.Number):' , col . getNumber ( 'project_year' ) . getInfo ())
# Get the value of an ee.Array collection property as an ee.Array object.
print ( 'Plot IDs (ee.Array):' , col . getArray ( 'plot_ids' ) . getInfo ()) ،یک ویژگی را از یک ویژگی استخراج کنید.
استفاده برمی گرداند ImageCollection. getArray (property)
آرایه
استدلال تایپ کنید جزئیات این: object
عنصر ویژگی برای استخراج ملک از. property
رشته دارایی برای استخراج.
نمونه ها ویرایشگر کد (جاوا اسکریپت)
// A contrived, empty image collection for simple demonstration.
var col = ee . ImageCollection ([]);
print ( 'Collection without properties' , col );
// Set collection properties using a dictionary.
col = col . set ({
project_name : 'biomass_tracking' ,
project_id : 3 ,
plot_ids : ee . Array ([ 7 , 11 , 20 ])
});
// Set collection properties using a series of key-value pairs.
col = col . set ( 'project_year' , 2018 ,
'rgb_vis' , 'false_color' );
print ( 'Collection with properties' , col );
// Get a dictionary of collection property keys and values.
print ( 'Property keys and values (ee.Dictionary)' , col . toDictionary ());
// Get the value of a collection property. To use the result of
// ee.ImageCollection.get in further computation, you need to cast it to the
// appropriate class, for example, ee.Number(result) or ee.String(result).
print ( 'Project ID (ambiguous object)' , col . get ( 'project_id' ));
// Get the value of a string collection property as an ee.String object.
print ( 'Project name (ee.String)' , col . getString ( 'project_name' ));
// Get the value of a numeric collection property as an ee.Number object.
print ( 'Project year (ee.Number)' , col . getNumber ( 'project_year' ));
// Get the value of an ee.Array collection property as an ee.Array object.
print ( 'Plot IDs (ee.Array)' , col . getArray ( 'plot_ids' )); راه اندازی پایتون
برای اطلاعات در مورد API پایتون و استفاده از geemap
برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.
import ee
import geemap.core as geemap کولب (پایتون)
from pprint import pprint
# A contrived, empty image collection for simple demonstration.
col = ee . ImageCollection ([])
print ( 'Collection without properties:' )
pprint ( col . getInfo ())
# Set collection properties using a dictionary.
col = col . set ({
'project_name' : 'biomass_tracking' ,
'project_id' : 3 ,
'plot_ids' : ee . Array ([ 7 , 11 , 20 ])
})
# Set collection properties using a series of key-value pairs.
col = col . set ( 'project_year' , 2018 ,
'rgb_vis' , 'false_color' )
print ( 'Collection with properties:' )
pprint ( col . getInfo ())
# Get a dictionary of collection property keys and values.
print ( 'Property keys and values (ee.Dictionary):' )
pprint ( col . toDictionary () . getInfo ())
# Get the value of a collection property. To use the result of
# ee.ImageCollection.get in further computation, you need to cast it to the
# appropriate class, for example, ee.Number(result) or ee.String(result).
print ( 'Project ID (ambiguous object):' , col . get ( 'project_id' ) . getInfo ())
# Get the value of a string collection property as an ee.String object.
print ( 'Project name (ee.String):' , col . getString ( 'project_name' ) . getInfo ())
# Get the value of a numeric collection property as an ee.Number object.
print ( 'Project year (ee.Number):' , col . getNumber ( 'project_year' ) . getInfo ())
# Get the value of an ee.Array collection property as an ee.Array object.
print ( 'Plot IDs (ee.Array):' , col . getArray ( 'plot_ids' ) . getInfo ())
ارسال بازخورد
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
میخواهید موارد بیشتری را با ما درمیان بگذارید؟
[[["درک آسان","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 بهوقت ساعت هماهنگ جهانی."],[],[]]