ee.ImageCollection.cast

將 ImageCollection 中每張圖片的部分或所有波段,轉換為指定型別。

用量傳回
ImageCollection.cast(bandTypes, bandOrder)ImageCollection
引數類型詳細資料
這個:collectionImageCollection要投放的圖片集。
bandTypes字典從樂團名稱到樂團類型的字典。類型可以是 PixelTypes 或字串。有效字串為:'int8'、'int16'、'int32'、'int64'、'uint8'、'uint16'、'uint32'、'byte'、'short'、'int'、'long'、'float' 和 'double'。必須包含集合中任何圖片的所有波段。如果這包括輸入圖片中尚未出現的頻帶,系統會將這些頻帶新增至圖片,並設為透明。
bandOrder清單清單,指定結果中的波段順序。必須與 bandTypes 的鍵相符。