Returns an image of scalar pixels with one band per element of the array. Converts a single-band image of equal-shape multidimensional pixels to an image of scalar pixels, with 1 band for each element of the array. Args: coordinateLabels: Name of each position along each axis. Fo
(
self,
coordinateLabels: _arg_types.List, # pylint: disable=invalid-name
separator: _arg_types.String | None = None,
)
| 851 | ) |
| 852 | |
| 853 | def arrayFlatten( |
| 854 | self, |
| 855 | coordinateLabels: _arg_types.List, # pylint: disable=invalid-name |
| 856 | separator: _arg_types.String | None = None, |
| 857 | ) -> Image: |
| 858 | """Returns an image of scalar pixels with one band per element of the array. |
| 859 | |
| 860 | Converts a single-band image of equal-shape multidimensional pixels to an |
| 861 | image of scalar pixels, with 1 band for each element of the array. |
| 862 | |
| 863 | Args: |
| 864 | coordinateLabels: Name of each position along each axis. For example, 2x2 |
| 865 | arrays with axes meaning 'day' and 'color' could have labels like |
| 866 | [['monday', 'tuesday'], ['red', 'green']], resulting in band |
| 867 | names'monday_red', 'monday_green', 'tuesday_red', and 'tuesday_green'. |
| 868 | separator: Separator between array labels in each band name. |
| 869 | |
| 870 | Returns: |
| 871 | An ee.Image. |
| 872 | """ |
| 873 | |
| 874 | return apifunction.ApiFunction.call_( |
| 875 | self.name() + '.arrayFlatten', self, coordinateLabels, separator |
| 876 | ) |
| 877 | |
| 878 | def arrayGet(self, position: _arg_types.Image) -> Image: |
| 879 | """Returns the value at the given position in each band of the input image. |