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

Json example for national data #4

Open
istvans-mn opened this issue Jan 8, 2025 · 1 comment
Open

Json example for national data #4

istvans-mn opened this issue Jan 8, 2025 · 1 comment

Comments

@istvans-mn
Copy link
Contributor

Simple ODIM volume example for ingest via json endpoint:

{
  "id": "",
  "version": "v4.0",
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": {
      "lat": 52.95279,
      "lon": 4.79061,
      "hei": 55.0
    }
  },
  "properties": {
    "datetime": "2025-01-08T10:17:08Z",
    "Conventions": "CF-1.8",
    "summary": "Radar data from OPERA network.",
    "license": "http//spdx.org/licenses/CC-BY-4.0(CC-BY-4.0)",
    "naming_authority": "no.met",
    "level": 2000,
    "function": "point",
    "period": "PT0S",
    "period_int": 300,
    "platform": "0-20000-0-06234",
    "content": {
      "encoding": "utf-8",
      "standard_name": "radar_linear_equivalent_reflectivity_factor_h",
      "unit": "count",
      "size": 5,
      "value": "44966"
    },
    "platform_name": "[nldhl] DenHelder",
    "elangle": 20.0,
    "nbins": 832,
    "nrays": 360,
    "product": "SCAN"
  },
  "links": [
    {
      "href": "https://my_S3_bucket_url/my_S3_bucket/2025/01/08/NL/nldhl/PVOL/[email protected]_0.8_1.2_2.0_2.8_4.5_6.0_8.0_10.0_12.0_15.0_20.0_25.0_90.0@DBZH_TH_VRADH.h5",
      "rel": "canonical",
      "type": "application/x-odim"
    }
  ]
}

Where:

  • "level": 2000 ===>>> elevation = 2.0
  • radar_linear_equivalent_reflectivity_factor_h ===>>> ODIM quantity = DBZH (see full mapping at radar_cf.py)
  • "value": "44966" ===>>> number of valid bins (skip: nodata, undetect)
  • default "filename" format:
    -- ODIM Id - Datetime @ elevations(sorted, 2 digits) @ quantities(sorted) .h5
    -- [email protected]_0.8_1.2_2.0_2.8_4.5_6.0_8.0_10.0_12.0_15.0_20.0_25.0_90.0@DBZH_TH_VRADH.h5

Full example:
T_PAGZ51_C_EHDB_20250108101504.txt

Python json msg generator:
odim2mqtt.zip

@istvans-mn
Copy link
Contributor Author

The msg generator cannot generate message for the attached file.
The ODIM structure is the following:

/                        Group
/dataset1                Group
/dataset1/data1          Group
/dataset1/data1/data     Dataset {1728, 1984}
/how                     Group
/what                    Group
/where                   Group

Top (ODIM) What:

{"date": "20250115", "gain": 0.5, "nodata": 255, "object": "COMP", "offset": -32.0, "product": "DBZH", "source": "DMI-RADARGROUP", "time": "110501", "undetect": 0.0, "version": "0.2"}
  • Cannot determine the country.
    Suggestion: "source": "DMI-RADARGROUP,CTY:613" or "DMI-RADARGROUP,CTY:613,ORG:94"
    Where: 613 is the Country Code (BUFR [ 0 01 101]) , 94 is the Originating Centre (BUFR[ 0 01 033])
  • product: "DBZH" Attribute:
    -- product is one of the dataset attributes, allowed abbrevations: SCAN, PPI, CAPPI,....COMP, VP, RHI
    -- quantity identifiers: TH, DBZH, ....
    -- Suggestion: rename to the unambiguous name or/and use the standard dataset attributes.

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

No branches or pull requests

1 participant