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

Update bundled g2c from 1.6.2 to 1.6.4 #23

Merged
merged 7 commits into from
May 13, 2022
Merged

Update bundled g2c from 1.6.2 to 1.6.4 #23

merged 7 commits into from
May 13, 2022

Conversation

eengl
Copy link
Contributor

@eengl eengl commented May 13, 2022

Pull request to update the bundled g2c library from v1.6.2 to v1.6.4. With that, some updates to the g2clib.pyx and grib2io source were required to be compatible with g2c v1.6.4 now defining all ints as 64-bit.

NOTE: Some of the g2c v1.6.4 source files were further modified here beyond their actual release state. More specifically, the source files updated are grib2.h, mkieee.c, and rdieee.c. See commit 091253a for those details.

Removing __64BIT__ macro definition for g2clib.  As of v1.6.4, this has been removed.
Updated bundled g2c v1.6.4 source to continue support for 32-bit ints.  This is needed for void functions mkieee() and rdieee().

In grib2.h, added g2int32 and g2int32u.
- Updated g2clib.pyx to include the newly defined g2int32.

- All returned integer arrays are now 64-bit int.

- Generated new g2clib.c using cython.
- Updated grib2io.py to define any numpy integer arrays as 64-bit ints where necessary to be compatible with g2c v1.6.4.
Remove __64BIT__ macro.  This is no longer needed for g2c v1.6.4 and newer.
@eengl eengl merged commit f4ba534 into master May 13, 2022
@EricEngle-NOAA EricEngle-NOAA deleted the g2c-1.6.4 branch September 14, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant