Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.metadata
Stay organized with collections
Save and categorize content based on your preferences.
Generates a constant image of type double from a metadata property.
Usage | Returns | Image.metadata(property, name) | Image |
Argument | Type | Details | this: image | Image | The image from which to get the metadata |
property | String | The property from which to take the value. |
name | String, default: null | The name for the output band. If unspecified, it will be the same as the property name. |
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."],[[["\u003cp\u003eGenerates a double-type constant image based on a specified image metadata property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImage.metadata()\u003c/code\u003e method takes the image, property name, and an optional output band name as arguments.\u003c/p\u003e\n"],["\u003cp\u003eIf the output band name isn't provided, it defaults to the metadata property name.\u003c/p\u003e\n"]]],[],null,["# ee.Image.metadata\n\nGenerates a constant image of type double from a metadata property.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------|---------|\n| Image.metadata`(property, `*name*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|-----------------------|-----------------------------------------------------------------------------------------|\n| this: `image` | Image | The image from which to get the metadata |\n| `property` | String | The property from which to take the value. |\n| `name` | String, default: null | The name for the output band. If unspecified, it will be the same as the property name. |"]]