Skip to content

how to advertise presence of different cadences for a dataset #226

Open
@jvandegriff

Description

@jvandegriff

The problem: how to let HAPI clients know that there are different cadences of a dataset available in an automated way so that clients can automatically select an appropriate cadence.

This issue relates to several other issues about linkages and file listings, etc. This issue is focused on solving the cadence problem in a way that doesn't paint us into a corner with linking file listings, availability info, and possibly even images or semantic descriptions of data.

Other related issues:

Two existing servers have solved the cadence linking problem in closely related ways, so we should come up with a recommended way.

The KNMI solution:

"x_relations": [
        {
            "id": "brik_ii_electron_density_PT0_005S",
            "description": "Electron density data from the BRIK-II scintillation monitor, downsampled to 5 millisecond cadence",
            "cadence": "PT0.005S",
            "type": "resample",
            "method": "max",
            "add": "automatic"
        },
        {
            "id": "brik_ii_electron_density_PT0_01S",
            "description": "Electron density data from the BRIK-II scintillation monitor, downsampled to 10 millisecond cadence",
            "cadence": "PT0.01S",
            "type": "resample",
            "method": "max",
            "add": "automatic"
        },
        {
            "id": "brik_ii_electron_density_PT0_05S",
            "description": "Electron density data from the BRIK-II scintillation monitor, downsampled to 50 millisecond cadence",
            "cadence": "PT0.05S",
            "type": "resample",
            "method": "max",
            "add": "automatic"
        }

The Intermagnet Solution

  • The Intermagnet hapi server
  • https://imag-data.bgs.ac.uk/GIN_V1/hapi/catalog
  • does it differently. There are 9 or more different versions of each dataset, some for different processing options, some for different cadences. Here is the start of the catalog,
  "catalog" : [ {
    "id" : "aae/definitive/PT1M/native",
    "title" : "Definitive minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/definitive/PT1M/xyzf",
    "title" : "Definitive minute data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/definitive/PT1M/hdzf",
    "title" : "Definitive minute data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/definitive/PT1M/diff",
    "title" : "Definitive minute data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1M/native",
    "title" : "Quasi-def minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1M/xyzf",
    "title" : "Quasi-def minute data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1M/hdzf",
    "title" : "Quasi-def minute data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1M/diff",
    "title" : "Quasi-def minute data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/reported/PT1M/native",
    "title" : "Reported minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1M/native",
    "title" : "Best-avail minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1M/xyzf",
    "title" : "Best-avail minute data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1M/hdzf",
    "title" : "Best-avail minute data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1M/diff",
    "title" : "Best-avail minute data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1S/native",
    "title" : "Quasi-def second data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1S/xyzf",
    "title" : "Quasi-def second data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1S/hdzf",
    "title" : "Quasi-def second data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/quasi-def/PT1S/diff",
    "title" : "Quasi-def second data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/reported/PT1S/native",
    "title" : "Reported second data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1S/native",
    "title" : "Best-avail second data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1S/xyzf",
    "title" : "Best-avail second data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1S/hdzf",
    "title" : "Best-avail second data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
    "id" : "aae/best-avail/PT1S/diff",
    "title" : "Best-avail second data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
  }, {
  • In this Intermagnet catalog, the dataset names have a slash-separated portion of the cadence.
  • There is no explicit linkage of the different cadences.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions