Re: Problem opening grib file

From: Rick Grubin <grubin_at_nyahnyahspammersnyahnyah>
Date: Fri, 3 Aug 2007 09:32:26 -0600

Hi Jesper

> I can't open the grib file [...] When I run the test.py script
> it gives me:
>
>> python test.py
> fatal:NclGRIB: Corrupted record found. Time values out of
> appropriate ranges,
> skipping record
> Nio file: hirham_test.grb
> global attributes:
> dimensions:
> variables:
>
> 1.2.0
>
> I am not sure whether this is a bug in PyNIO or the grib file is
> really corrupt but wgrib seems to read the file without any problems.

The GRIB file is corrupted. When you look at it with 'wgrib' you'll
see why:

% wgrib hirham_test.grb
1:0:d=-41120200:GP:kpds5=6:kpds6=100:kpds7=100:TR=1:P1=6:P2=0:TimeU=1:10
0 mb:6hr fcst:NAve=1

Note the third field, 'd=-41120200'

This is the file valid time, of the form YYMMHHDD. The date in your
file indicates the year is '-41' which is clearly incorrect,
hence the fatal error message from PyNio

-Rick.
----
Rick Grubin NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin_at_ucar.edu 303.497.1832

_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Fri Aug 03 2007 - 09:32:26 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 07 2007 - 08:09:49 MDT