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

origin_z not properly set for HHL #2

Open
cosunae opened this issue Apr 13, 2024 · 1 comment
Open

origin_z not properly set for HHL #2

cosunae opened this issue Apr 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cosunae
Copy link
Contributor

cosunae commented Apr 13, 2024

  • Icon Data Processing Incubator version: 78adca6
  • Python version: 3.11.8
  • Operating System:

Description

When loading data from KENDA (archive) corresponding to COSMO-1 km, HHL comes with 61 levels, while all other model level variables have 60 levels.

The issue is that origin_z == 0.0 for all of them and it does not distinguish variables on different vertical staggered positions.

What I Did

        ds = idpi.grib_decoder.load(
            idpi.data_source.DataSource(datafiles=[full_path]),
            {
                "param": [
                    "T",
                    "U_10M",
                    "V_10M",
                    "U",
                    "V",
                    "PS",
                    "T_2M",
                    "QV",
                    "TQV",
                    "PMSL",
                    "HHL",
                    "HSURF",
                    "PP",
                    "P0FL",
                    "P",
                ]
            },
        )
        idpi.metadata.set_origin_xy(ds, ref_param="P")

@cosunae cosunae added the bug Something isn't working label Apr 13, 2024
@cosunae
Copy link
Contributor Author

cosunae commented Apr 13, 2024

The reason, is that instead of generalVertical and generalVerticalLayer, this data was generated with typeOfLevel "hybrid" and "hybridLayer". We should support this pair as well

@victoria-cherkas victoria-cherkas transferred this issue from MeteoSwiss-APN/icon_data_processing_incubator Apr 22, 2024
@victoria-cherkas victoria-cherkas transferred this issue from another repository Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant