pygrib
pygrib copied to clipboard
Segmentation fault editing message values
Hi,
I'm attempting to create a new grib file using an older one as a template and replacing the values in the messages with new ones. I've done this in the past and had it work, but am getting segmentation faults for the current data I'm working with. It looks to me like the data in the file I'm using as a template only has two significant digits, and my thought is that there isn't enough memory allocated in the file to hold the higher precision values I'm replacing into the message. Is there a known work around to this, or would you recommend creating the updated files in another way?
Thanks for any insight you can provide (and for creating pygrib!). The error message and commands leading to it are attached.

Seems to be dying in the openjpeg lib while trying to pack the data. The only thing I can suggest is to use jasper instead of openjpeg.
Thanks for the reply, I'll look into using jasper. If I figure out any other solution I'll update here.