Implement the pollen and UV index metrics #13

Merged
paul merged 2 commits from 4-implement-pollen-uvi into main 2022-02-19 15:42:58 +01:00
Owner

Implement map sampling using a map key. Update the Buienradar provider to return the samples for pollen and UV index.

  • Define the map key for Buienradar as MAP_KEY (colors used on Buienradar maps)
  • Define a MapkeyHistogram type and add the map_key_histogram function to construct one
  • Define the sample size to look for pixels around the sampling coordinate
  • Introduce a separata sample function that returns the samples for a map and the provided coordinates and starting timestamp
  • Implement Maps::pollen_sample and Maps::uvi_sample`

This partially addresses #4.

Implement map sampling using a map key. Update the Buienradar provider to return the samples for pollen and UV index. * Define the map key for Buienradar as `MAP_KEY` (colors used on Buienradar maps) * Define a `MapkeyHistogram` type and add the `map_key_histogram` function to construct one * Define the sample size to look for pixels around the sampling coordinate * Introduce a separata `sample` function that returns the samples for a map and the provided coordinates and starting timestamp * Implement `Maps::pollen_sample` and Maps::uvi_sample` This partially addresses #4.
paul added 4 commits 2022-02-19 15:42:00 +01:00
0df30b695f Split off precipitation get code
This is necessary so that the Buienradar provider can support more
metrics using the maps.
eb9951dbce Distinguish between a map and maps
* A map is a view into the image of concatenated maps
* Ensure that projection only happens on the first map
* Make `project` generic over all generic image views
5dc51b4c02 Implement map sampling using a map key
* Define the map key for Buienradar as `MAP_KEY` (colors used on
  Buienradar maps)
* Define a `MapkeyHistogram` type and add the `map_key_historgram()`
  function to construct one
* Define the sample size to look for pixels around the sampling
  coordinate
* Introduce a separata `sample` function that returns the samples
  for a map and the provided coordinates and starting timestamp
* Implement `Maps::pollen_sample` and Maps::uvi_sample`
paul merged commit a5ca1f02ff into main 2022-02-19 15:42:58 +01:00
paul deleted branch 4-implement-pollen-uvi 2022-02-19 15:42:59 +01:00
paul changed title from Implment the pollen and UV index metrics to Implement the pollen and UV index metrics 2022-02-24 20:43:00 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: paul/sinoptik#13
No description provided.