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

ECMWF GRIB Decode Success with new AEC/CCSDS Library? #461

Open
JKrobNESDIS opened this issue Dec 1, 2023 · 13 comments
Open

ECMWF GRIB Decode Success with new AEC/CCSDS Library? #461

JKrobNESDIS opened this issue Dec 1, 2023 · 13 comments
Assignees
Labels
question Further information is requested

Comments

@JKrobNESDIS
Copy link

JKrobNESDIS commented Dec 1, 2023

All,

With the release of the new AEC/CCSDS Decode Library, I have been trying to decode the public ECMWF GRIB data...with no success.

https://data.ecmwf.int/forecasts/

Function m_split in 'decode.c' keeps responding with "return M_ERROR - 5"

I'm calling g2c_aecunpackf from the fortran gf_unpack.f & I can see all my arguments are passed intact so....

If someone could test out the ECMWF GRIB from the pure C routines to confirm/deny whether it works correctly would be most helpful.

Thanks in advance,
Jeff Krob
NOAA/NESDIS

@JKrobNESDIS JKrobNESDIS changed the title ECMWF GRIB Decode Success with new AEC Library? ECMWF GRIB Decode Success with new AEC/CCSDS Library? Dec 1, 2023
@EricEngle-NOAA
Copy link
Contributor

Hi @JKrobNESDIS, can you pass along or point me to the ECMWF GRIB2 files you are working with? Even if just 1 message from the file?

@EricEngle-NOAA
Copy link
Contributor

@JKrobNESDIS I quickly read earlier and did not notice the link. I will download a file and take a look.

@EricEngle-NOAA
Copy link
Contributor

I have been looking at this over the last couple of days. I can confirm that this is a bug in the implementation of the AEC compression in the g2c library. I have identified the bug and am working a fix immediately.

@edhartnett would we be able to issue a v1.8.1 patch release?

@edwardhartnett
Copy link
Contributor

We can do a new release if you need it.

@JKrobNESDIS
Copy link
Author

JKrobNESDIS commented Dec 15, 2023 via email

@EricEngle-NOAA
Copy link
Contributor

Hi @JKrobNESDIS. Would you be willing to share your code? Or least the portion that does the ECMWF GRIB2 reading/unpacking using g2c?

@JKrobNESDIS
Copy link
Author

JKrobNESDIS commented Dec 18, 2023 via email

@EricEngle-NOAA
Copy link
Contributor

Feel free to share with me via NOAA email or through the NOAA Google Drive.

edwardhartnett pushed a commit that referenced this issue Dec 20, 2023
* Update for aecunpack.c

This commit fixes a bug in aecunpack.c where the bytes from the decoded
AEC buffer stream are not being properly copied into the ifld array. The
AEC stream is byte aligned.

This commit references #461

* Update aecunpack.c

Commenting out ifld1 since the code logic that uses it is commented out.

This commit references #461

---------

Co-authored-by: Eric Engle <EricEngle-NOAA@users.noreply.github.com>
@edwardhartnett
Copy link
Contributor

Should this issue be closed?

@edwardhartnett edwardhartnett added the question Further information is requested label Jun 17, 2024
@JKrobNESDIS
Copy link
Author

JKrobNESDIS commented Jun 17, 2024 via email

@JKrobNESDIS
Copy link
Author

JKrobNESDIS commented Jun 17, 2024 via email

@EricEngle-NOAA
Copy link
Contributor

EricEngle-NOAA commented Jun 17, 2024

I will try to devote some time to this in the next couple of weeks. We are spinning up development on NBM v5.0.

@JKrobNESDIS
Copy link
Author

JKrobNESDIS commented Jun 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: To do
Development

No branches or pull requests

3 participants