Earth Engine is introducing
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. All noncommercial projects will need to select a quota tier by
April 27, 2026 or will use the Community Tier by default. Tier quotas will take effect for all projects (regardless of tier selection date) on
April 27, 2026.
Learn more.
ee.Image.translate
Stay organized with collections
Save and categorize content based on your preferences.
Translate the input image.
| Usage | Returns | Image.translate(x, y, units, proj) | Image |
| Argument | Type | Details | this: input | Image | |
x | Float | The amount to translate the image in the x direction. |
y | Float | The amount to translate the image in the y direction. |
units | String, default: "meters" | The units for x and y; 'meters' or 'pixels'. |
proj | Projection, default: null | The projection in which to translate the image; defaults to the projection of the first band. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[],["The core function described is `Image.translate(x, y, units, proj)`, which shifts an image spatially. It takes `x` and `y` values (floats) to define the translation amount in each direction. The `units` parameter specifies whether `x` and `y` are in 'meters' or 'pixels' (default is 'meters'). An optional `proj` argument can be used to define the translation projection, defaulting to the first band's projection. The function returns a translated `Image`.\n"]]