Anúncio: todos os projetos não comerciais registrados para usar o Earth Engine antes de
15 de abril de 2025 precisam
verificar a qualificação não comercial para manter o acesso ao Earth Engine.
ee.List.slice
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Retorna uma parte da lista entre o índice inicial (inclusivo) e o índice final (exclusivo). Valores negativos para início ou fim contam de trás para frente a partir do final da lista. Valores maiores que o tamanho da lista são válidos, mas são truncados para o tamanho da lista.
Uso | Retorna |
---|
List.slice(start, end, step) | Lista |
Argumento | Tipo | Detalhes |
---|
isso: list | Lista | |
start | Número inteiro | |
end | Número inteiro, padrão: nulo | |
step | Número inteiro, padrão: nulo | |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003eThis method returns a portion of a list, starting from the \u003ccode\u003estart\u003c/code\u003e index and ending before the \u003ccode\u003eend\u003c/code\u003e index.\u003c/p\u003e\n"],["\u003cp\u003eNegative indices for \u003ccode\u003estart\u003c/code\u003e or \u003ccode\u003eend\u003c/code\u003e are calculated from the end of the list.\u003c/p\u003e\n"],["\u003cp\u003eIf \u003ccode\u003estart\u003c/code\u003e or \u003ccode\u003eend\u003c/code\u003e values exceed the list's size, they are adjusted to the list's boundaries.\u003c/p\u003e\n"],["\u003cp\u003eThe optional \u003ccode\u003estep\u003c/code\u003e argument can be used to select elements at specific intervals, with a default of null implying a step of 1.\u003c/p\u003e\n"]]],["The `List.slice` function extracts a sublist from a given list. It takes `start` and `end` indices (inclusive and exclusive, respectively) and an optional `step`. Negative indices count backward from the end. Out-of-bounds indices are adjusted to the list's boundaries. The function returns a new List. `end` and `step` default to null if not specified.\n"],null,["# ee.List.slice\n\nReturns a portion of list between the start index, inclusive, and end index, exclusive. Negative values for start or end count backwards from the end of the list. Values greater than the size of the list are legal but are truncated to the size of list.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------|---------|\n| List.slice`(start, `*end* `, `*step*`)` | List |\n\n| Argument | Type | Details |\n|--------------|------------------------|---------|\n| this: `list` | List | |\n| `start` | Integer | |\n| `end` | Integer, default: null | |\n| `step` | Integer, default: null | |"]]