ee.ImageCollection.cast

Casts some or all bands of each image in an ImageCollection to the specified types.

UsageReturns
ImageCollection.cast(bandTypes, bandOrder)ImageCollection
ArgumentTypeDetails
this: collectionImageCollection

The image collection to cast.

bandTypesDictionary

A dictionary from band name to band types. Types can be PixelTypes or strings. The valid strings are: 'int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'byte', 'short', 'int', 'long', 'float' and 'double'. Must include all bands already in any image in the collection. If this includes bands that are not already in an input image, they will be added to the image as transparent bands.

bandOrderList

A list specifying the order of the bands in the result.Must match the keys of bandTypes.