Closed ScottLindstrom closed 1 year ago
If you then re-run but use Red1.txt, you'll get different results.
You mean with the same geotiff running it over and over again?
No, starting from the geo2grid.sh command -- rerun all 4 commands.
So when I run this with red0 on C08 (just because I know that has a default linear scaling/enhancement) I get this:
$ add_colormap.sh red0.txt GOES-16_ABI_RadC_C08_20181125_125718_GOES-East.red0.tif
/home/davidh/repos/git/trollimage/trollimage/colorspaces.py:128: RuntimeWarning: invalid value encountered in power
1.055 * (arr ** (1.0 / 2.4)) - 0.055,
I think this is the colorspace conversion (RGB -> HSL -> interpolation -> HSL -> RGB) having a problem starting from black. I thought this sounded familiar so I looked and it turns out I filed an issue with our trollimage package a while ago:
https://github.com/pytroll/trollimage/issues/106
CC @mraspaud
Here is what the red0 image looks like for reference:
~Now about the changing output when you re-run it @ScottLindstrom. What type of different output?~ Edit: Clarified on slack. The output between red0 and red1 is different, not that the result is always changing with each execution.
So this is a bug in the trollimage package which is what is used to handle all colormap/colorspace conversions. The above mentioned issue is tracking the transition to a different package for handling these conversions. When I use this new package I get this as my image with red0:
Given the timing of this we won't be able to include this in G2G 1.1.0 which should be released next week, but I think we can set a goal to create a G2G 1.1.1 with these updates and fixes. I would hope we could release 1.1.1 right after P2G 3.0 is released as P2G will need these fixes as well.
This should be fixed once this trollimage PR is merged, released, and P2G/G2G told to use the new version:
I created two different Red.txt enhancement tables, Red0.txt
and Red1.txt
I expected the Red0.txt to show only different shades of Red for my greyscaled image (the case I used was C13). It didn't But Red1.txt did.
If you then re-run but use Red1.txt, you'll get different results.