[gradsusr] PyGrADS cannot open NetCDF files

Wang Jun daxiawj at gmail.com
Mon Mar 14 05:09:59 EDT 2011


Hello, Everyone,

     When I tried to test the eof example at
http://opengrads.org/wiki/index.php?title=PyGrADS_Interactive_Shell

     There was an error said I cannot open the netcdf file.

  Can anybody tell my how to solve this problem?

My PyGrADS is 1.1.4 and my grads is 2.0.a8 with python version 2.6.6.

The error info is as follows, Thanks!:

============================================

$ pygrads slp_djf.nc

   Welcome to PyGrADS, a GrADS-based iPython environment.

Using existing pygrads rc file <~/.pygrads/pygradsrc>
/usr/local/lib/python2.6/dist-packages/grads/gacore.py:42: 
DeprecationWarning: The popen2 module is deprecated.  Use the subprocess 
module.
   from popen2 import popen2
Grid Analysis and Display System (GrADS) Version 2.0.a8
Copyright (c) 1988-2010 by Brian Doty and the
Institute for Global Environment and Society (IGES)

Config: v2.0.a8 little-endian readline netcdf hdf5
Issue 'q config' command for more information.
GX Package Initialization: Size = 11 8.5

    Welcome to PyGrADS, a GrADS-based iPython environment.
    For more information, type 'help(ipygrads)'

Definition of "kt" in "/usr/share/xml/udunits/udunits2-common.xml", line 
90, overrides prefixed-unit "1000000 kilogram"
Definition of "microns" in "/usr/share/xml/udunits/udunits2-common.xml", 
line 308, overrides prefixed-unit "1e-15 second"
Definition of "ft" in "/usr/share/xml/udunits/udunits2-common.xml", line 
405, overrides prefixed-unit "1e-12 kilogram"
Definition of "yd" in "/usr/share/xml/udunits/udunits2-common.xml", line 
413, overrides prefixed-unit "8.64e-20 second"
Definition of "pt" in "/usr/share/xml/udunits/udunits2-common.xml", line 
634, overrides prefixed-unit "1e-09 kilogram"
Definition of "at" in "/usr/share/xml/udunits/udunits2-common.xml", line 
1031, overrides prefixed-unit "1e-15 kilogram"
Definition of "ph" in "/usr/share/xml/udunits/udunits2-common.xml", line 
1549, overrides prefixed-unit "3.6e-09 second"
Definition of "nt" in "/usr/share/xml/udunits/udunits2-common.xml", line 
1556, overrides prefixed-unit "1e-06 kilogram"
ut_get_converter(): Units not convertible
Success
ut_get_converter(): Couldn't get converter from seconds
ut_get_converter(): Units in different unit-systems
Success
ut_get_converter(): Couldn't get converter from seconds
ut_get_converter(): Units not convertible
Success
ut_get_converter(): Couldn't get converter from seconds
Failed to open GrADS file <slp_djf.nc>





More information about the gradsusr mailing list