إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Array.repeat
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تكرّر الصفيف على طول المحور المحدّد. ستكون النتيجة على شكل الإدخال، باستثناء الطول على طول المحور المتكرّر الذي سيتم ضربه في عدد النسخ المحدّد.
الاستخدام | المرتجعات |
---|
Array.repeat(axis, copies) | مصفوفة |
الوسيطة | النوع | التفاصيل |
---|
هذا: array | مصفوفة | مصفوفة للتكرار |
axis | عدد صحيح، القيمة التلقائية: 0 | المحور الذي سيتم تكرار الصفيف على طوله. |
copies | عدد صحيح، القيمة التلقائية: 2 | عدد نُسخ هذا الصفيف المطلوب ربطها على طول المحور المحدّد. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eArray.repeat()\u003c/code\u003e creates a new array by repeating the original array along a specified axis.\u003c/p\u003e\n"],["\u003cp\u003eThe size of the new array remains the same except for the specified axis, which is multiplied by the number of copies.\u003c/p\u003e\n"],["\u003cp\u003eYou can control which axis to repeat along and how many times using the \u003ccode\u003eaxis\u003c/code\u003e and \u003ccode\u003ecopies\u003c/code\u003e parameters.\u003c/p\u003e\n"],["\u003cp\u003eIt's a convenient way to expand an array by duplicating its elements.\u003c/p\u003e\n"]]],[],null,["# ee.Array.repeat\n\nRepeats the array along the given axis. The result will have the shape of the input, except length along the repeated axis will be multiplied by the given number of copies.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------|---------|\n| Array.repeat`(`*axis* `, `*copies*`)` | Array |\n\n| Argument | Type | Details |\n|---------------|---------------------|-------------------------------------------------------------------------|\n| this: `array` | Array | Array to repeat. |\n| `axis` | Integer, default: 0 | The axis along which to repeat the array. |\n| `copies` | Integer, default: 2 | The number of copies of this array to concatenate along the given axis. |"]]