ee.Image.slice

Selects a contiguous group of bands from an image by position.

UsageReturns
Image.slice(start, end)Image
ArgumentTypeDetails
this: imageImageThe image from which to select bands.
startIntegerWhere to start the selection. Negative numbers select from the end, counting backwards.
endInteger, default: nullWhere to end the selection. If omitted, selects all bands from the start position to the end.