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

matcher to recognize same value but different codes (grib2) #325

Open
lidiabressan opened this issue Apr 26, 2024 · 1 comment
Open

matcher to recognize same value but different codes (grib2) #325

lidiabressan opened this issue Apr 26, 2024 · 1 comment

Comments

@lidiabressan
Copy link

ciao !

I noticed a query failed because the level (same value) was written differently :

  • diff <( grib_dump -O d0_icon_2I_fcast_all5km.soim.grb ) <( grib_dump -O ../20240424_bordofalso/d0_icon_2I_fcast_all5km.soim.grb )
67c67
< 18        indicatorOfUnitOfTimeRange = 1 [Hour (grib2/tables/15/4.4.table) ]
---
> 18        indicatorOfUnitOfTimeRange = 0 [Minute (grib2/tables/15/4.4.table) ]
70c70
< 24        scaleFactorOfFirstFixedSurface = 3
---
> 24        scaleFactorOfFirstFixedSurface = 0
73,74c73,74
< 30        scaleFactorOfSecondFixedSurface = 3
< 31-34     scaledValueOfSecondFixedSurface = 10
---
> 30        scaleFactorOfSecondFixedSurface = 2
> 31-34     scaledValueOfSecondFixedSurface = 1

diff of arki-scan --dump --annotate grib:

4c4
< Level: GRIB2D(106, 003, 0000000000, 106, 003, 0000000010)     # sfc Depth below land surface (m) 3 0 sfc Depth below land surface (m) 3 10
---
> Level: GRIB2D(106, 000, 0000000000, 106, 002, 0000000001)     # sfc Depth below land surface (m) 0 0 sfc Depth below land surface (m) 2 1

instead of listing all the possible options ( (3,0 or 0,0) or (3,10 or 1,2) ), could it be possible for arkimet to recognize that it is the same value ?

thanks
ciao

Lidia

@lidiabressan
Copy link
Author

The same happens with time and timeranges in grib2, with different units.
a simpler solution could be adding all units combinations to the alias?

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

No branches or pull requests

1 participant