Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Image.slice
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memilih grup band yang berdekatan dari gambar berdasarkan posisi.
Penggunaan | Hasil |
---|
Image.slice(start, end) | Gambar |
Argumen | Jenis | Detail |
---|
ini: image | Gambar | Gambar dari mana band akan dipilih. |
start | Bilangan Bulat | Tempat untuk memulai pilihan. Angka negatif memilih dari akhir, menghitung mundur. |
end | Bilangan bulat, default: null | Tempat untuk mengakhiri pilihan. Jika tidak disertakan, akan memilih semua rentang dari posisi awal hingga akhir. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003eSelects a contiguous range of bands from a given image based on their position.\u003c/p\u003e\n"],["\u003cp\u003eUses \u003ccode\u003estart\u003c/code\u003e and optional \u003ccode\u003eend\u003c/code\u003e parameters to define the range of bands to be selected, supporting negative indexing for selecting from the end.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new Image object containing only the selected bands.\u003c/p\u003e\n"]]],["This document describes the `Image.slice` function, which extracts a subset of bands from an image. It takes two integer arguments: `start`, indicating the beginning band index (supporting negative indexing), and an optional `end` to specify the final band. If `end` is absent, it selects all bands from `start` to the end. The function returns a new `Image` object containing the selected contiguous bands.\n"],null,["# ee.Image.slice\n\nSelects a contiguous group of bands from an image by position.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------|---------|\n| Image.slice`(start, `*end*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|------------------------|-----------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image from which to select bands. |\n| `start` | Integer | Where to start the selection. Negative numbers select from the end, counting backwards. |\n| `end` | Integer, default: null | Where to end the selection. If omitted, selects all bands from the start position to the end. |"]]