Key Metadata function

This function allows you to insert or override key metadata of a raster.

Key metadata is extracted from the raster's metadata and is generally associated with the products or data types below.

  • A raster product
This information is used to assist the application with some processing and rendering, including providing some useful information, such as the sensor name, band names, or cloud cover associated with the imagery.

Notes

When modifying or inserting key metadata values, you can use one of the following methods:

  • Enter the Property Name along with the associated Value.
  • Enter a JSON string containing all of the new property names and values as the Metadata JSON parameter.

Parameters

Parameter nameDescription
Raster
Property Name

The name of the dataset-level key property to override.

Value

The overriding value of the dataset-level key property that you want to set.

Band Names

This is used to override the band names of a raster. It is a comma-separated string representing updated band names.

This parameter is optional.

Metadata JSON

Key metadata to be added to the outgoing raster described as a JSON string representing a collection of key-value pairs. The following is an example of a JSON string that can be used as an input to this function. All inputs for this parameter should follow the same format.

JSON string representing key metadata

{
     "CloudCover": 4,
     "BandProperties":[
          {
               "BandName": "Blue",
               "WavelengthMin": 445,
               "WavelengthMax": 516
         },
         {
              "BandName": "Green",
              "WavelengthMin": 506,
              "WavelengthMax": 595
         },

    ]
}

In this topic
  1. Notes
  2. Parameters