Hi,
I am thinking of harmonizing the QGIS style with the Safecast API color style. I found this:
should probably be enough for finding out how it works but my knowledge of Javascript is almost zero and even my brother who has some programming knowledge (but in C++ etc.) was not able to help me.
I understand the LUT consisting of 3 arrays of color values (R,G,B) - I created this spreadsheet for me:
I also know that the color somehow uses Log10 value and there is the formula:
x = Math.log(x * 9.0 + 1.0) * 0.43429448190325176
But I do not know whether "x" is dose rate in microSv/h or something else. Is the result a position in tge RGB values group? (in my spreadsheet row number?)
Same with:
this.n = this.r.length; |
| this.rdiff = 1.0 / (this.max - this.min); |
| this.nsb1 = parseFloat(this.n - 1.0); |
Does it mean you rescale the dose rate values to 0-1 range?
I would appreciate any advice. I do not need to run the code, just reproduce the process to calculate (in spreadsheet) color values for some predefined sets of values to adjust my map styles used for bGeigie LOG files.
regards
Jan
PS: the above mentioned spreadsheet is editable so feel free to write there directly