Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ee.Image.unitScale
Stay organized with collections
Save and categorize content based on your preferences.
Scales the input so that the range of input values [low, high] becomes [0, 1]. Values outside the range are NOT clamped. This algorithm always produces floating point pixels.
| Usage | Returns | Image.unitScale(low, high) | Image |
| Argument | Type | Details | this: input | Image | The image to scale. |
low | Float | The value mapped to 0. |
high | Float | The value mapped to 1. |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],["The `unitScale` method scales an image's pixel values. It maps the input range between `low` and `high` to the output range of 0 to 1. The method takes the input image, `low` (the value that becomes 0), and `high` (the value that becomes 1) as arguments. Values outside the specified range are not restricted. The result of the process is a floating-point image.\n"]]