Update: _GDattach error and NARR Grib error

From: John Nielsen-Gammon <n-g_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 29 2012 - 23:58:45 MST

Folks -
    I reported two weeks ago that I was having difficulty installing PyNIO on my Mac OSX 10.6 with the Enthought Python distribution. David Brown correctly diagnosed that one problem was that the Enthought Python distribution was 32-bit while most of my other software was installed 64-bit.
    To solve the problem, I installed a fresh Python 2.7.3 dual binary from python.org, installed numpy and scipy, and then installed the 64-bit binary PyNio distribution for OSX 10.6. Everything seems to be working fine.
   I am using PyNIO to access NARR data, specifically certain variables extracted from the NCDC archive using get-httpsubset.pl. PyNIO generates errors on some of the grids from 2012 (but apparently not earlier), of the form of

>>> f = Nio.open_file('/Users/ng/Pythons/NARRT2/201201/narr-a_221_20120119_0300_000.sub.grb', 'r')
fatal:An internal error has occurred. The file format requested does not appear to be supported, could not open (/Users/ng/Pythons/NARRT2/201201/narr-a_221_20120119_0300_000.sub.grb)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyNIO/Nio.py", line 607, in open_file
    file = _Nio.open_file(filename,mode,options,history,format)
NIOError: Unable to open file

>>> f = Nio.open_file("/Users/ng/Pythons/NARRT2/201201/narr-a_221_20120119_0000_000.sub.grb","r")
fatal:Premature end-of-file, file appears to be truncated

   Re-extracting and downloading the grib files has no effect.
   I assume it's a problem at NOAA's end with the file creation/archival, but I thought I'd throw it out there in case anyone has experience with this and can provide more specific information regarding the source of the problem.
    - John
________________________________________________
John W. Nielsen-Gammon
Regents Professor and Texas State Climatologist
Dept. of Atmospheric Sciences, Texas A&M University (O&M Rm 1210F)
3150 TAMUS, College Station, TX 77843-3150
Ph 979-862-2248 Fax 979-862-4466

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Thu Nov 29 23:59:10 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:45 MST