Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
Stay organized with collections
Save and categorize content based on your preferences.
Fetches pixels from an image asset.
Returns:
The pixels as raw image data.
Usage
Returns
ee.data.getPixels(params)
Object|Value
Argument
Type
Details
params
Object
An object containing parameters with the following possible values:
assetId - The asset ID for which to get pixels. Must be an image asset.
fileFormat - The resulting file format. Defaults to png. See
ImageFileFormat
for the available formats. There are additional formats that convert
the downloaded object to a Python data object. These include:
NUMPY_NDARRAY, which converts to a structured NumPy
array.
grid - Parameters describing the pixel grid in which to fetch data.
Defaults to the native pixel grid of the data.
region - If present, the region of data to return, specified as a GeoJSON
geometry object (see RFC 7946).
bandIds - If present, specifies a specific set of bands from which to get
pixels.
visualizationOptions - If present, a set of visualization options to apply
to produce an 8-bit RGB visualization of the data,
rather than returning the raw data.