enram / data-repository

Data quality assessment
https://enram.github.io/data-repository/
MIT License
3 stars 1 forks source link

coverage.json format #23

Closed peterdesmet closed 7 years ago

peterdesmet commented 7 years ago

I'd like to have a service which generates files like this:

{
  "year": 2016,
  "month": 11,
  "vp_files_by_radar_by_day": [
    {
      "bejab": [
        {"01": 96},
        {"02": 96},
        {"03": 96},
        {"31": 45}
      ]
    },
    {
      "bewid": [
        {"01": 40},
        {"02": 23}  
      ]
    },
    {
      "chlem": [
        {"01": 96}  
      ]
    }
  ]
}
peterdesmet commented 7 years ago

Actually, might be more widely usable (and actually easier in D3 as well) if we use a CSV (same data as above):

countryradar    date    vp_files
bejab   2016-11-01  96
bejab   2016-11-02  96
bejab   2016-11-03  96
bejab   2016-11-31  45
bewid   2016-11-01  40
bewid   2016-11-02  23
chlem   2016-11-01  96
peterdesmet commented 7 years ago

Is done, and I can rollup the data in D3 to a 2 dimensional array of radars (rows) and dates (columns) with vp_files as values.