إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
نظرة عامة على المصفوفات
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يمثّل Earth Engine المتجهات 1-D والمصفّحات 2-D والمكعبات 3-D وال hypercubes
ذات الأبعاد الأعلى باستخدام النوع ee.Array
. المصفوفات هي بنية بيانات مرنة، ولكن
في مقابل الإمكانات التي تقدّمها، لا يمكن توسيع نطاقها بقدر ما يمكن توسيع نطاقات بنى البيانات الأخرى
في Earth Engine. إذا كان بالإمكان حلّ المشكلة بدون استخدام الصفائف، سيتم احتساب النتيجة
بشكل أسرع وأكثر كفاءة. ولكن إذا كانت المشكلة تتطلّب نموذجًا لسمة ذات أبعاد أعلى،
أو حسابات خطية مرنة، أو أيّ شيء آخر تكون الصفائف مناسبة له بشكل فريد، يمكنك استخدام
فئة Array
.
سمات الصفيف وشكله وحجمه
يشير سمة الصفيف إلى عدد المحاور التي تختلف على طولها البيانات الأساسية. على سبيل المثال، الصفائف ذات البعد 0 هي أعداد متّجهية، والصفائف ذات البُعد الواحد هي متّجهات، والصفائف ذات البُعدَين
هي مصفوفات، والصفائف الثلاثية الأبعاد هي مكعّبات، والصفائف التي تزيد عن ثلاثية الأبعاد هي مكعّبات فائقة. بالنسبة إلى
الصفيف ذي الأبعاد ن، هناك ن محورًا من 0 إلى ن-1. يتم تحديد شكل المصفوفة
حسب أطوال المحاور. طول المحور هو عدد المواضع
على طوله. حجم الصفيف، أو عدد العناصر الكلية في الصفيف، يساوي حاصل ضرب
أطوال المحاور. يجب أن تحتوي كل قيمة في كل موضع على كل محور على رقم صالح،
لأنّ الصفائف المتفرقة أو غير المنتظمة غير متاحة حاليًا. يشير نوع عنصر الصفيف
إلى نوع الرقم الذي يمثّله كل عنصر، وسيكون لجميع عناصر الصفيف
النوع نفسه.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eEarth Engine utilizes the \u003ccode\u003eee.Array\u003c/code\u003e type to represent vectors, matrices, cubes, and higher-dimensional hypercubes, offering a flexible but potentially less scalable data structure compared to other options.\u003c/p\u003e\n"],["\u003cp\u003eThe dimension of an array signifies the number of axes, with 0-D representing scalars, 1-D vectors, 2-D matrices, 3-D cubes, and beyond 3-D hypercubes.\u003c/p\u003e\n"],["\u003cp\u003eAn array's shape is defined by the lengths of its axes, while the total size is the product of these lengths, with each position containing a valid number due to the lack of support for sparse or ragged arrays.\u003c/p\u003e\n"]]],[],null,["Earth Engine represents 1-D vectors, 2-D matrices, 3-D cubes, and higher dimensional\nhypercubes with the `ee.Array` type. Arrays are a flexible data structure, but\nin exchange for the power they offer, they do not scale as well as other data structures\nin Earth Engine. If the problem can be solved without using arrays, the result will be\ncomputed faster and more efficiently. But if the problem requires a higher dimension model,\nflexible linear algebra, or anything else arrays are uniquely suited to, you can use\nthe `Array` class.\n\nArray dimension, shape and size\n\nThe dimension of an array refers to the number of axes along which the underlying data\nvaries. For example, 0-D arrays are scalar numbers, 1-D arrays are vectors, 2-D arrays\nare matrices, 3-D arrays are cubes, and \\\u003e3-D arrays are hyper-cubes. For an\nN-dimensional array, there are N axes from 0 to N-1. The shape of the array is\ndetermined by the lengths of the axes. The length of an axis is the number of positions\nalong it. The array size, or number of total elements in the array, equals the product\nof the axis lengths. Each value at every position on every axis must have a valid number,\nsince sparse or ragged arrays are not currently supported. The array's element type\nindicates what kind of number each element is; all elements of the array will have the\nsame type."]]