Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["`ee.data.getPixels` fetches raw image data or visualized 8-bit RGB data from an Earth Engine image asset."],["The function requires specifying the asset ID and allows customization of file format, pixel grid, region, bands, and visualization options."],["Users can define the output region, select specific bands for extraction, and apply visualization parameters for an RGB representation."],["Python examples demonstrate the usage of `ee.data.getPixels` with the necessary parameters and retrieving image data."]]],[]]