ssec / sift

A visualization application for satellite imagery
http://sift.ssec.wisc.edu/
GNU General Public License v3.0
48 stars 14 forks source link

Export Image with Colorbar : colorbar doesn't flip when enhancement flips #333

Open ScottLindstrom opened 2 years ago

ScottLindstrom commented 2 years ago

I loaded a level 2 product -- Cloud Particle Size Distribution -- and applied a color bar to it. Exported it, with a color bar. All a-okay. I flipped the color bar, instead of 0 to 100, made it 100 to 0. Exported the image, with a color bar. The color bar was the original colorbar, it didn't flip. Same behavior happens with L1b imagery.

djhoese commented 2 years ago

Yep, this is definitely a bug. Here is the code for my (or other developer's) future reference:

https://github.com/ssec/sift/blob/0d0a20f67505c3cd5b079f6ddfcbf67cdfdce27e/uwsift/view/export_image.py#L238-L242

This is only getting the colormap object by name, but not doing anything with the current clims of the data/product.

djhoese commented 2 years ago

This seems to still be a bug in the EUM version of SIFT.

CC @sjoro @ameraner @strandgren