[ncl-talk] Segmentation Fault in Addfile() function with Grib2 files
mcolbert93
mcolbert93 at gmail.com
Fri Oct 30 06:53:31 MDT 2015
Hello NCL Users,
I'd like to use NCL to plot a set of grib2 files. The files are of NAM
output in 5-minute intervals spanning over 36 hours. The files contain a
field called "forecast_time" which has a value 0-36 for the on-the-hour
files, but a value in minutes (0-2155) for the 5-minute intervals between
the hours. NCL has no trouble reading any of the 5-minute files via
"addfile()" for the first 17 hours. However at 17:05, when
forecast_time=1025, NCL's "addfile()" command gives the error "Segmentation
fault (core dumped)." This problem persists for all 5-minute files between
hours 17 and 36. We hypothesize this is because the value of forecast_time
(1025) may be exceeding the allotted storage space for forecast_time in NCL
(10 bits?... i.e. 2^10=1024) Would anyone be able to confirm/refute this
hypothesis and provide a way to work around it?
Thank you,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151030/fe8fb6a5/attachment.html
More information about the ncl-talk
mailing list