Closed j08lue closed 8 months ago
Tagged you here, @slesaad and @siddharth0248, but please consult Dashboard folks when you pick this up.
Hey @j08lue, we couldn't find a way to implement this colormap. We looked at different options with the colormap
query parameter.
Might need some help implementing this if it is even possible currently! 😅
Maybe @vincentsarago can shed light on what is possible?
Perhaps this is not possible via URL (client) parameters but with a custom colormap we register in rio-tiler
or something?
Please document here what you have tried, @slesaad, which will make it easier to reproduce and find alternatives.
see https://developmentseed.org/titiler/examples/code/tiler_with_custom_colormap/
But also I don't think I fully understand how to use this. Since the value of the file range from 0-500 for example, do we rescale this to 0-255 and then send those value (if the max url length limit didn't exist)?
@slesaad, yes you need to rescale
the values from 0 to 255 (using rescale=0,500
).
Just a note that Erin would still like us to implement this custom color ramp, but wants to make sure that the zero values are white.
Tested the new colormap from the above pr ^. It looks mostly good to me.
total-agriculture, year 2018 (left custom colormap in the dashboard, right official paper)
Awesome, that is very convincing, @slesaad! 😄
Requested color ramp:
1) If possible, please plot 'zeros' in the dataset as opaque colors (this will result in no transparent grid cells). 2) Please plot all data layers (both individual sources and aggregate layers) on the same color ramp, with MINIMUM set to zero and the MAXIMUM set to
2x10^12 molec/cm2/s
.Acceptance criteria