Uploaded image for project: 'Great Lakes to Gulf Virtual Observatory'
  1. Great Lakes to Gulf Virtual Observatory
  2. GLGVO-15

Map the Qualification Codes to new parameter id's

XMLWordPrintableJSON

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • 0.1
    • None

      When we ingest data, we want to include the qualification codes alongside the data in the properties field (see the datapoints.json endpoint for an example of what the properties object looks like. kooper and I discussed that we could create these as additional parameters in the properties object.

      For example, a datapoint right now looks like this (without a QAQC code):

      properties: {
      "Discharge, cubit ft per second": 100,
      "Nitrate, mg/l": 25
      }

      I'd like to do it in a more verbose format, but this will break everything in geodashboard if we did it this way, because geodashboard reads the contents of properties in the assumption that everything is a parameter:

      properties: {
      "parameters" : [

      { "id": "discharge", "name": "Discharge, cubic ft per second", "value": 100, "units": "ft3/s" "qc": "E", "qc-description": "Value estimated based on adjacent data" }

      ,
      ...
      ]
      }

      So Rob and I are proposing the following:

      properties: {
      "discharge": 100,
      "discharge-qc": "E"
      }

      Then inside the project's application config, we can define what "discharge" means and what "E" means for a qc code.

              brock Brock Angelo (Inactive)
              brock Brock Angelo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: