[gradsusr] Can't open .nc file in Grads in Linux machine!

Jennifer Adams jma at cola.iges.org
Sat Jun 1 13:09:15 EDT 2013


Did you try getting the CentOS x86-64 build from iges.org/grads/downloads? That should work. 
GrADS won't work with udunits2, so that build set up by the 'apt-get install grads' command should be uninstalled. 
--Jennifer



On Jun 1, 2013, at 12:29 PM, Mohsen Soltani wrote:

> Should I copy it in the same directory where the Grads itself located? Is it possible? 
> 
> Any suggestion?
> 
> 
> --
> some are weather-wise some are otherwise!
> --
> Best Wishes,                                        
> (Mr.) Mohsen Soltani
> Climatology Grad Student (M.Sc.),
> Faculty of Geography, University of Tehran, Tehran, Iran
> Tel: (+98) 9119772934
> e-mail: soltani.clima at gmail.com
> 
> 
> On Sat, Jun 1, 2013 at 9:09 AM, M.Mahakur <mmahakur at tropmet.res.in> wrote:
> probably udunits not in proper path or missing..
> 
> ----- Original Message -----
> From: Mohsen Soltani <soltani.clima at gmail.com>
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Sent: Sat, 01 Jun 2013 21:03:22 +0530 (IST)
> Subject: [gradsusr] Can't open .nc file in Grads in Linux machine!
> 
> Hi,
> 
> I installed Grads in Linux - Ununtu version, using the following command:
> "sudo apt-get install grads" . And then, to find out where the Grads has
> been installed in Linux, in terminal I typed: "whereis grads", then the
> Grads directory appeared something like this: "usr/share... etc.". I copied
> the grads into my home directory. And then, typed "grads" in terminal and
> grads opened. Next, I did "!ls" and the following data were shown:
> *************************************************
> ga-> !ls
> grads  hgt.nc  slp.nc air.nc  and other things...
> ga->
> *********************************
> And I wanted to open a NetCDF file, say: hgt.nc. Therefore, I typed "sdfopen
> hgt.nc ", but the following error appeared: (that's interesting to know
> that, when I typed sdfopen hg...., I hit the Tab, and the rest of the text
> appeared automatically):
> *********************************
> ga-> sdfopen hgt.nc
> Scanning self-describing file:  hgt.nc
> 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
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> gadsdf: Error parsing time units in SDF file.
> ga->
> *************************
> I tried to open another data:
> *********
> ga-> sdfopen slp.nc
> Scanning self-describing file:  slp.nc
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> 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
> gadsdf: Error parsing time units in SDF file.
> ga->
> ********************************
> Again, another data:
> ***********************
> ga-> sdfopen air.nc
> Scanning self-describing file:  airtemperature.nc
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> ut_get_converter(): Units not convertible
> gadsdf: Error parsing time units in SDF file.
> ga->
> ***************
> As you see, none of them opened! Wondering why? Does anyone know what's
> going wrong? And what should I do to open a NetCDF (.nc) file in Grads in
> Linux machine?
> 
> 
> Mohsen
> --
> some are weather-wise some are otherwise!
> --
> Best Wishes,
> (Mr.) Mohsen Soltani
> Climatology Grad Student (M.Sc.),
> Faculty of Geography, University of Tehran, Tehran, Iran
> Tel: (+98) 9119772934
> e-mail: soltani.clima at gmail.com
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130601/26e17cca/attachment-0003.html 


More information about the gradsusr mailing list