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

Debanjana Das debanjanadas88 at gmail.com
Sun Jun 2 07:46:31 EDT 2013


u have to keep the data into home only


On Sun, Jun 2, 2013 at 11:25 AM, Mohsen Soltani <soltani.clima at gmail.com>wrote:

> Dear Friends,
>
> Thank you all for your help....
> I uninstalled the Grads, which I had installed it through "sudo apt-get
> install grads".  And I'm trying to install it based on the instructions of
> Grads itself (http://www.iges.org/grads/downloads.html).
>
> As you know, the Grads executables are typically placed in the directory
> /usr/local/bin. Since, I don't have permission for this directory (I mean I
> can't paste anything there), I put them in the /home/mohsen/grads/bin. Then
> unpacked it, which all the executables are available in the file as follows:
> *****************************
> /home/mohsen/grads/bin/bufrscan
> /home/mohsen/grads/bin/COPYRIGHT
> /home/mohsen/grads/bin/grads
> /home/mohsen/grads/bin/grib2scan
> /home/mohsen/grads/bin/gribmap
> /home/mohsen/grads/bin/gribscan
>  /home/mohsen/grads/bin/gxeps
> /home/mohsen/grads/bin/gxps
> /home/mohsen/grads/bin/gxtran
> /home/mohsen/grads/bin/INSTALL
> /home/mohsen/grads/bin/stnmap
> /home/mohsen/grads/bin/wgrib
> **********************
> The second tar file (data.tar.Z), by default should be placed in the
> directory
> /usr/local/lib/grads. Again, because of having no permission, I put it in
> the /home/mohsen/grads, uncompressed it, which containing the following:
> ***************************
> /home/mohsen/grads/tables
> /home/mohsen/grads/font0.dat
> /home/mohsen/grads/font1.dat
> /home/mohsen/grads/font2.dat
> /home/mohsen/grads/font3.dat
> /home/mohsen/grads/font4.dat
> /home/mohsen/grads/font5.dat
> /home/mohsen/grads/hires
> /home/mohsen/grads/lowres
> /home/mohsen/grads/mres
> /home/mohsen/grads/udunits.dat
> ****************
> Since the default directories have changed, - based on the INSTALL file
> that says: "you must also change the environment variable GADDIR so the
> GrADS executables will know where to find these files", - I need to
> change the environment variable GADDIR, which is like this:
> "setenv GADDIR dirname (If dirname is not /usr/local/lib/grads)"
> *************************
> **************************************************
> Firstly: what is GADDIR? is it Grads directory, where the Grads
> components located?
> Secondly: this command (setenv) is unknown in my Linux environment! what
> should I do? what's that? would you explain it to me in a few words?
> **********************************************
>
> Please give me a hand!
>
> Thank you,
> 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
>
>
> On Sun, Jun 2, 2013 at 12:54 AM, Luis Blacutt <luis.blacutt at gmail.com>wrote:
>
>> It is always annoying when someone writes this, but... I think if you
>> carefully follow the instuctions (
>> http://www.iges.org/grads/downloads.html) you will be set easily
>>
>> Best regards
>> Luis
>>
>>
>> On Sat, Jun 1, 2013 at 2:09 PM, Jennifer Adams <jma at cola.iges.org> wrote:
>>
>>> 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
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130602/c5bbc6ea/attachment-0003.html 


More information about the gradsusr mailing list