ارسال بازخورد
ee.PixelType
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک PixelType از دقت داده شده را با محدودیت های داده شده در هر عنصر، و ابعاد اختیاری برمی گرداند.
استفاده برمی گرداند ee.PixelType(precision, minValue , maxValue , dimensions )
PixelType
استدلال تایپ کنید جزئیات precision
شیء دقت پیکسل، یکی از «int»، «float» یا «double». minValue
شماره، پیش فرض: null حداقل مقدار پیکسل های این نوع. اگر دقت «شناور» یا «دوبرابر» باشد، این میتواند تهی باشد که به معنای بینهایت منفی است. maxValue
شماره، پیش فرض: null حداکثر مقدار پیکسل های این نوع. اگر دقت "شناور" یا "دوبرابر" باشد، این می تواند تهی باشد، که به معنای بی نهایت مثبت است. dimensions
عدد صحیح، پیش فرض: 0 تعداد ابعادی که پیکسل های این نوع می توانند متفاوت باشند. 0 یک اسکالر، 1 یک بردار، 2 یک ماتریس و غیره است.
نمونه ها ویرایشگر کد (جاوا اسکریپت)
print ( ee . PixelType ( 'int' , 0 , 1 )); // int ∈ [0, 1]
print ( ee . PixelType ( 'int' , - 20 , - 10 )); // int ∈ [-20, -10]
print ( ee . PixelType ( 'float' )); // float
print ( ee . PixelType ( 'double' )); // double
print ( ee . PixelType ( 'double' , null )); // double
print ( ee . PixelType ( 'double' , null , null )); // double
print ( ee . PixelType ( 'double' , null , null , 0 )); // double
print ( ee . PixelType ( 'double' , null , null , 1 )); // double, 1 dimensions
print ( ee . PixelType ( 'double' , null , null , 2 )); // double, 2 dimensions
print ( ee . PixelType ( 'double' , null , null , 3 )); // double, 3 dimensions
print ( ee . PixelType ( 'double' , null , null , 10 )); // double, 10 dimensions
print ( ee . PixelType ( 'double' , null , null , 1e8 )); // double, 100000000 dimensions
print ( ee . PixelType ( 'double' , 1 , 2 , 0 )); // double ∈ [1, 2]
print ( ee . PixelType ( 'double' , 1 , 3 , 2 )); // double ∈ [1, 3], 2 dimensions
print ( ee . PixelType ( 'double' , - 4 , - 3 , 0 )); // double ∈ [-4, -3]
print ( ee . PixelType ( 'double' , null , 2.3 , 0 )); // double
print ( ee . PixelType ( 'double' , 3.4 , null , 0 )); // double راه اندازی پایتون
برای اطلاعات در مورد API پایتون و استفاده از geemap
برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.
import ee
import geemap.core as geemap کولب (پایتون)
print ( ee . PixelType ( 'int' , 0 , 1 ) . getInfo ()) # int ∈ [0, 1]
print ( ee . PixelType ( 'int' , - 20 , - 10 ) . getInfo ()) # int ∈ [-20, -10]
print ( ee . PixelType ( 'float' ) . getInfo ()) # float
print ( ee . PixelType ( 'double' ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None , None ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None , None , 0 ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None , None , 1 ) . getInfo ()) # double, 1 dimensions
print ( ee . PixelType ( 'double' , None , None , 2 ) . getInfo ()) # double, 2 dimensions
print ( ee . PixelType ( 'double' , None , None , 3 ) . getInfo ()) # double, 3 dimensions
print ( ee . PixelType ( 'double' , None , None , 10 ) . getInfo ()) # double, 10 dimensions
# double, 100000000 dimensions
print ( ee . PixelType ( 'double' , None , None , 1e8 ) . getInfo ())
print ( ee . PixelType ( 'double' , 1 , 2 , 0 ) . getInfo ()) # double ∈ [1, 2]
# double ∈ [1, 3], 2 dimensions
print ( ee . PixelType ( 'double' , 1 , 3 , 2 ) . getInfo ())
print ( ee . PixelType ( 'double' , - 4 , - 3 , 0 ) . getInfo ()) # double ∈ [-4, -3]
print ( ee . PixelType ( 'double' , None , 2.3 , 0 ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , 3.4 , None , 0 ) . getInfo ()) # double
ارسال بازخورد
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز 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 بهوقت ساعت هماهنگ جهانی."],[],[]]