File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,14 @@ void GOESRImageHandler::handleImage(GOESRProduct product) {
469469 // combination with the LRIT ImageDataFunction to map
470470 // CMIP grey levels to temperature units (Kelvin), then map
471471 // those temperatures onto the RGB gradient.
472- auto grad = config_.gradient .find (product.getChannel ().nameShort );
472+ const auto & productName = product.getProduct ().nameShort ;
473+ auto grad = config_.gradient .find (productName);
474+
475+ // For CMIP files we use the channel name to find the gradient.
476+ if (grad == std::end (config_.gradient ) && productName == " CMIP" ) {
477+ grad = config_.gradient .find (product.getChannel ().nameShort );
478+ }
479+
473480 auto idf = product.loadImageDataFunction ();
474481
475482 // This is stored in an 256x1 RGB matrix for use in Image::remap()
You can’t perform that action at this time.
0 commit comments