Skip to content

grib2: "Grib2_Statistical_Process_Type" attribute has "UnknownStatType--1" for non-interval products #1600

Description

@cambecc

Versions impacted by the bug

5.10.0
5.11.0 SNAPSHOT

What went wrong?

A GRIB2 Variable with no time intervals always has a Grib2_Statistical_Process_Type attribute with the value UnknownStatType--1. (This happens because the string format is "UnknownStatType-%d" and the substitution is -1).

Although a minor issue, it's annoying and can cause confusion. I first thought this was out of date lookup tables, then concluded UnknownStatType--1 is (unintentionally) a special string which means "no intervals".

The description of unrelated issue #730 shows exactly this happening.

Relevant log messages

No response

If you have an example file that you can share, please attach it to this issue.

If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.

No

Code of Conduct

  • I agree to follow the UCAR/Unidata Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions