pygrib icon indicating copy to clipboard operation
pygrib copied to clipboard

Segmentation fault editing message values

Open beanboy88 opened this issue 10 years ago • 2 comments

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. pygrib_error_20151028

beanboy88 avatar Oct 30 '15 16:10 beanboy88

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.

jswhit avatar Oct 30 '15 17:10 jswhit

Thanks for the reply, I'll look into using jasper. If I figure out any other solution I'll update here.

beanboy88 avatar Oct 30 '15 18:10 beanboy88