Currently none of the metadata listed below is required to be present for Opticks to work properly.
The list below describes the hierarchy of the metadata that will be treated special by Opticks if present:
To get and set the attributes of the metadata, you should be able to use code like the following:
RasterElement* pElement; string pCenterWavelengthPath[] = { SPECIAL_METADATA_NAME, BAND_METADATA_NAME, CENTER_WAVELENGTHS_METADATA_NAME, END_METADATA_NAME }; vector<double> wavelengths = dv_cast<vector<double> >( pElement->getMetadata()->getAttributeByPath(pCenterWavelengthPath); pElement->getMetadata()->setAttributeByPath(pCenterWavelengthPath, wavelengths);