Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opensensemap interpolation: color setting and setable measuring range #203

Open
johannesmutter95 opened this issue Jan 3, 2020 · 1 comment

Comments

@johannesmutter95
Copy link

silvestermessung2019

  1. How can I change the displayed colours in the interpolation?

I would like to be able to have stronger colours for the air quality measurements above
In my interpolatin of silvester night in Munich values with 400 microgramm per m^3 are still green which is already a health concerning value (breathed for longer period of time)

  1. How is it possible to set the measuring range in the interpolation?

As the range of my measurement is from 7 microgramm to 1400 microgramm
but 1400 is just a outlier measurement which needs to be taken account of but, not relevant to set the measurement range of the Interpolation.
measurement range from 0 to 900 would be perfect and be a much better visualization.

Java script code of interpolation is found here:
https://github.com/sensebox/openSenseMap-API/blob/master/packages/api/lib/transformers/idwTransformer.js

@ubergesundheit
Copy link
Member

The visualization of the interpolation is happening in the front end (could be here: https://github.com/sensebox/openSenseMap/blob/master/app/scripts/controllers/sidebar.interpolation.js Check Line 78. It defines the colors used)

Excluding stations is not supported right now. Check out the statisticsController. The descriptive statistics endpoint has the boxId parameter. It should be possible to implement the same for the idw (interpolation) endpoint.

Feel free to try to implement this in a pull request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants