Stay organized with collections
Save and categorize content based on your preferences.
Computes a tile by performing an arbitrary computation on image data.
Returns:
The pixels as raw image data.
Usage
Returns
ee.data.computePixels(params)
Object|Value
Argument
Type
Details
params
Object
An object containing parameters with the following possible values:
expression - The expression to compute.
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.
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.
workloadTag - User supplied tag to track this computation.
[[["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.computePixels` computes a tile by performing an arbitrary computation on image data and returns the pixels as raw image data."],["The `params` argument to `ee.data.computePixels` allows for customizing the computation through an expression, file format, pixel grid, band selection, visualization options, and workload tag."],["The provided Python example demonstrates using `ee.data.computePixels` to retrieve a PNG image tile from a Sentinel-2 median composite with specified visualization and grid parameters."]]],[]]