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

issue in display of daycli data in wis2box-webapp #783

Open
maaikelimper opened this issue Oct 1, 2024 · 3 comments
Open

issue in display of daycli data in wis2box-webapp #783

maaikelimper opened this issue Oct 1, 2024 · 3 comments
Assignees
Labels
monitoring Monitoring web application Web application
Milestone

Comments

@maaikelimper
Copy link
Collaborator

The data ingested using daycli-template looks as following in the wis2box-webapp "INSPECT"-button, which does not look right:

image

@maaikelimper maaikelimper added web application Web application monitoring Monitoring labels Oct 1, 2024
@maaikelimper maaikelimper added this to the sprint-016 milestone Oct 1, 2024
@maaikelimper
Copy link
Collaborator Author

we need to a field from the metadata describing min/max/average
@maaikelimper to find an example for @david-i-berry and share with him, then decide how to proceed

@maaikelimper
Copy link
Collaborator Author

maaikelimper commented Nov 19, 2024

I have published sample-data here:
https://wis2box-test.wis2dev.io/oapi/collections/urn:wmo:md:my-centre-id:core.climate.surface.daily/items

The data demonstrates that the "0 minutes" is a result of the phenomenonTime range:

  • to do: don't display time-range when result equals 0

The demonstrates that the "air temperature"-items report
MINIMUM VALUE
MAXIMUM VALUE
MEAN VALUE
which can be extracted from the metadata by finding the description of the item where name="first_order_statistics"

@david-i-berry for each item reported I get another item with "...->associated field" as name.

For example:
https://wis2box-test.wis2dev.io/oapi/collections/urn:wmo:md:my-centre-id:core.climate.surface.daily/items/WIGOS_0-20000-0-60355_20241101T235900-50
and
https://wis2box-test.wis2dev.io/oapi/collections/urn:wmo:md:my-centre-id:core.climate.surface.daily/items/WIGOS_0-20000-0-60355_20241101T235900-51

I don't know what this means and it seems like a waste of disk-space and CPU to be storing this in the backend ?

@maaikelimper
Copy link
Collaborator Author

Feedback from Dave:
The second item is the QC flag for the air temperature and should appear in the metadata for the first item.

This would be the output from the 'latest' bufr2geosjon (branch=https://github.com/wmo-im/bufr2geojson/tree/wccdm):

{
    "id": "WIGOS_0-20000-0-60355_20241101T235900.bufr4-1-0-4",
    "conformsTo": [
        "https://schemas.wmo.int/wccdm-obs/2024/wccdm-obs.json"
    ],
    "type": "Feature",
    "geometry": {
        "type": "Point",
        "coordinates": [
            -104.663,
            39.83
        ]
    },
    "zCoordinate": [
        {
            "name": "height_of_station_ground_above_mean_sea_level",
            "value": 1650.0,
            "units": "m",
            "description": null
        },
        {
            "name": "height_of_sensor_above_local_ground_or_deck_of_marine_platform",
            "value": 2.0,
            "units": "m",
            "description": null
        }
    ],
    "properties": {
        "host": "0-20000-0-60355",
        "observer": null,
        "observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement",
        "observedProperty": "air_temperature (minimum value)",
        "observingProcedure": "http://codes.wmo.int/wmdr/SourceOfObservation/unknown",
        "phenomenonTime": "2024-11-01T07:00:01Z/2024-11-02T07:00:01Z",
        "resultTime": "2024-11-02T07:00:01Z",
        "validTime": null,
        "result": {
            "value": 0.6,
            "units": "Celsius",
            "standardUncertainty": null
        },
        "resultQuality": [
            {
                "inScheme": "https://codes.wmo.int/bufr4/codeflag/0-31-021",
                "flag": "8-bit indicator of quality",
                "flagValue": "Data checked and declared good"
            }
        ],
        "parameter": {
            "hasProvenance": {
                "prefix": {
                    "prov": "http://www.w3.org/ns/prov#",
                    "schema": "https://schema.org/"
                },
                "entity": {
                    "WIGOS_0-20000-0-60355_20241101T235900.bufr4": {
                        "prov:type": "schema:DigitalDocument",
                        "prov:label": "Input data file",
                        "schema:encodingFormat": "application/bufr"
                    },
                    "WIGOS_0-20000-0-60355_20241101T235900.bufr4-1-0-4": {
                        "prov:type": "observation",
                        "prov:label": "Observation 4 from subset 0 of message 1"
                    }
                },
                "wasDerivedFrom": {
                    "_:wdf": {
                        "prov:generatedEntity": "WIGOS_0-20000-0-60355_20241101T235900.bufr4-1-0-4",
                        "prov:usedEntity": "WIGOS_0-20000-0-60355_20241101T235900.bufr4",
                        "prov:activity": "_:bufr2geojson"
                    }
                },
                "activity": {
                    "_:bufr2geojson": {
                        "prov:type": "prov:Activity",
                        "prov:label": "Data transformation using version 0.7.dev0 of bufr2geojson",
                        "prov:endTime": "2024-11-20 10:10:13"
                    }
                }
            },
            "status": null,
            "version": 0,
            "comment": null,
            "reportType": "000006",
            "reportIdentifier": "WIGOS_0-20000-0-60355_20241101T235900.bufr4-1-0",
            "isMemberOf": null,
            "additionalProperties": {
                "identification": {},
                "instrumentation": {},
                "qualifiers": {
                    "method_used_to_calculate_the_average_daily_temperature": {
                        "value": {
                            "codetable": "http://codes.wmo.int/bufr4/codeflag/0-08-094",
                            "entry": "2",
                            "description": "AVERAGE OF THE 24 HOURLY OBSERVATIONS"
                        }
                    },
                    "first_order_statistics": {
                        "value": {
                            "codetable": "http://codes.wmo.int/bufr4/codeflag/0-08-023",
                            "entry": "3",
                            "description": "MINIMUM VALUE"
                        }
                    }
                },
                "processing": {},
                "monitoring": {},
                "BUFR_element": "012101"
            }
        },
        "featureOfInterest": [
            {
                "id": null,
                "label": null,
                "relation": null
            }
        ],
        "index": 4
    }
}

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

No branches or pull requests

2 participants