Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GDALMDArray::AsClassicDataset(): allow to set band IMAGERY metadata d…
…omain Add a BAND_IMAGERY_METADATA options to papszOptions: JSON serialized object defining which arrays of the poRootGroup, indexed by non-X and Y dimensions, should be mapped as band metadata items in the band IMAGERY domain. The object currently accepts 2 members: - "CENTRAL_WAVELENGTH_UM": Central Wavelength in micrometers. - "FWHM_UM": Full-width half-maximum in micrometers. The value of each member should be an object with the following members: - "array": (required) full name of a band parameter array. Such array must be a one dimensional array, and its dimension must be one of the dimensions of the array on which the method is called (excluding the X and Y dimensons). - "unit": (optional) unit of the values pointed in the above array. Can be a literal string or a string of the form "${attribute_name}" to point to an attribute for the array. Accepted values are "um", "micrometer" (with UK vs US spelling, singular or plural), "nm", "nanometer" (with UK vs US spelling, singular or plural) If not provided, micrometer is assumed. Example for EMIT datasets: ```json { "CENTRAL_WAVELENGTH_UM": { "array": "/sensor_band_parameters/wavelengths", "unit": "${units}" }, "FWHM_UM": { "array": "/sensor_band_parameters/fwhm", "unit": "${units}" } } ```
- Loading branch information