<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Mahakur,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I typed "./grads" in bin folder as follows:<br>
</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">******************************<br>mohsen@mohsen-M68M-S2P:~$ <span style="color:rgb(0,0,255)">ls</span><br><span style="color:rgb(56,118,29)">bin <a href="http://hgt.nc">hgt.nc</a> <a href="http://slp.nc">slp.nc</a> </span><br>
mohsen@mohsen-M68M-S2P:~$ <span style="color:rgb(0,0,255)">cd bin/</span><br>mohsen@mohsen-M68M-S2P:~/bin$<span style="color:rgb(0,0,255)"> ls</span><br><span style="color:rgb(56,118,29)">bufrscan font2.dat grads gxeps INSTALL tables</span><br>
<span style="color:rgb(56,118,29)">COPYRIGHT font3.dat grib2scan gxps lowres udunits.dat</span><br style="color:rgb(56,118,29)"><span style="color:rgb(56,118,29)">font0.dat font4.dat gribmap gxtran mres wgrib</span><br style="color:rgb(56,118,29)">
<span style="color:rgb(56,118,29)">font1.dat font5.dat gribscan hires stnmap</span><br>mohsen@mohsen-M68M-S2P:~/bin$ <span style="color:rgb(0,0,255)">grads</span><br><span style="color:rgb(255,0,0)">The program 'grads' is currently not installed. You can install it by typing:</span><br style="color:rgb(255,0,0)">
<span style="color:rgb(255,0,0)">sudo apt-get install grads</span><br>mohsen@mohsen-M68M-S2P:~/bin$ <span style="color:rgb(0,0,255)">./grads</span><br><span style="color:rgb(255,0,0)">bash: ./grads: Permission denied</span><br>
***********************<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">As you see, it says: <span style="color:rgb(0,0,0)">permission denied</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)">.</span><br>
*********************************************************************<br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Later typed:<br>
************<br></span>mohsen@mohsen-M68M-S2P:~/bin$ <span style="color:rgb(0,0,255)">export GADDIR=/home/mohsen/bin/grads/</span><br>mohsen@mohsen-M68M-S2P:~/bin$ <br>******<br>mohsen@mohsen-M68M-S2P:~/bin$ <span style="color:rgb(0,0,255)">export GASCRP=/home/mohsen/bin/grads/</span><br>
****<br>mohsen@mohsen-M68M-S2P:~/bin$ <span style="color:rgb(0,0,255)">export GAUDFT=/home/mohsen/bin/grads/</span><br>mohsen@mohsen-M68M-S2P:~/bin$ <br>*********************************************************<br>I tried 3-ways, but nothing happened!<br>
***********************************************************<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">and tried:<br>mohsen@mohsen-M68M-S2P:~/bin$ <span style="color:rgb(0,0,255)">setenv GADDIR=/home/mohsen/bin/grads/</span><br>
<span style="color:rgb(255,0,0)">No command 'setenv' found, did you mean:</span><br style="color:rgb(255,0,0)"><span style="color:rgb(255,0,0)"> Command 'netenv' from package 'netenv' (universe)</span><br style="color:rgb(255,0,0)">
<span style="color:rgb(255,0,0)">setenv: command not found</span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">*******************<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">It seems that I should give it up! and continue to work with windows...<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Thanks anyway, <br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Mohsen<br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#888888"></span></span><span><span dir="RTL" style="font-size:11.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#888888" lang="AR-SA"><span></span></span></span>--<div>
some are weather-wise some are otherwise!</div><div>--<br>Best Wishes, <br>(Mr.) Mohsen Soltani<br>Climatology Grad Student (M.Sc.),<br>Faculty of Geography, University of Tehran, Tehran, Iran<br>
Tel: (+98) 9119772934<br>e-mail: <a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a><br></div></div></div>
<br><br><div class="gmail_quote">On Sun, Jun 2, 2013 at 4:16 PM, Debanjana Das <span dir="ltr"><<a href="mailto:debanjanadas88@gmail.com" target="_blank">debanjanadas88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">u have to keep the data into home only</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 2, 2013 at 11:25 AM, Mohsen Soltani <span dir="ltr"><<a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Dear Friends,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Thank you all for your help....<br>
</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">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 (<a href="http://www.iges.org/grads/downloads.html" target="_blank">http://www.iges.org/grads/downloads.html</a>).<br>
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">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:<br>
*****************************<br><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/</span><span style="color:rgb(0,0,255)">bufrscan</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/</span><span style="color:rgb(0,0,255)">COPYRIGHT</span><br style="color:rgb(0,0,255)">
<span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/grads</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/</span><span style="color:rgb(0,0,255)">grib2scan</span><br style="color:rgb(0,0,255)">
<span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/gribmap</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/</span><span style="color:rgb(0,0,255)">gribscan</span><br style="color:rgb(0,0,255)">
<span style="color:rgb(0,0,255)">
/home/mohsen/grads/bin/gxeps</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/gxps</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/gxtran</span><br style="color:rgb(0,0,255)">
<span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/INSTALL</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/stnmap</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/bin/wgrib</span><br>
**********************<br>
</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The second tar file (data.tar.Z), by default should be placed in the directory<br>/usr/local/lib/grads. Again, because of having no permission, I put it in the /home/mohsen/grads, uncompressed it, which containing the following:<br>
***************************<br><span style="color:rgb(0,0,255)">/home/mohsen/grads/tables</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/font0.dat</span><br style="color:rgb(0,0,255)">
<span style="color:rgb(0,0,255)">/home/mohsen/grads/font1.dat</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/font2.dat</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/font3.dat</span><br style="color:rgb(0,0,255)">
<span style="color:rgb(0,0,255)">/home/mohsen/grads/font4.dat</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/font5.dat</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">
/home/mohsen/grads/hires</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/lowres</span><br style="color:rgb(0,0,255)"><span style="color:rgb(0,0,255)">/home/mohsen/grads/mres</span><br style="color:rgb(0,0,255)">
<span style="color:rgb(0,0,255)">/home/mohsen/grads/udunits.dat</span><br>****************<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Since the default directories have changed, - based on the INSTALL file that says: "<span style="color:rgb(0,0,255)">you must also change the environment variable GADDIR so the GrADS executables will know where to find these files</span>", - I need to change the environment variable GADDIR, which is like this:<br>
<span style="color:rgb(0,0,255)">"setenv GADDIR dirname (If dirname is not /usr/local/lib/grads)"</span><br>*************************<br>**************************************************<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Firstly: <span style="color:rgb(255,0,0)">what is GADDIR? is it Grads directory, where the Grads components located?</span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Secondly: this command (<span style="color:rgb(255,0,0)">setenv</span>) is unknown in my Linux environment! <span style="color:rgb(255,0,0)">what should I do? what's that? would you explain it to me in a few words?</span><br>
**********************************************<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Please give me a ha<span style="color:rgb(255,0,0)"></span>nd!<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Thank you,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Mohsen<br></div><div class="gmail_extra"><div><br clear="all"><div><div dir="ltr"><span><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif";color:rgb(136,136,136)"></span></span><span><span dir="RTL" style="font-size:11pt;line-height:115%;font-family:"Arial","sans-serif";color:rgb(136,136,136)" lang="AR-SA"><span></span></span></span>--<div>
some are weather-wise some are otherwise!</div><div>--<br>Best Wishes, <br>(Mr.) Mohsen Soltani<br>Climatology Grad Student (M.Sc.),<br>Faculty of Geography, University of Tehran, Tehran, Iran<br>
Tel: (+98) 9119772934<br>e-mail: <a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a><br></div></div></div>
<br><br></div><div><div><div class="gmail_quote">On Sun, Jun 2, 2013 at 12:54 AM, Luis Blacutt <span dir="ltr"><<a href="mailto:luis.blacutt@gmail.com" target="_blank">luis.blacutt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">It is always annoying when someone writes this, but... I think if you carefully follow the instuctions (<a href="http://www.iges.org/grads/downloads.html" target="_blank">http://www.iges.org/grads/downloads.html</a>) you will be set easily <div>
<br></div><div>Best regards</div><span><font color="#888888"><div>Luis</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 1, 2013 at 2:09 PM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Did you try getting the CentOS x86-64 build from <a href="http://iges.org/grads/downloads?" target="_blank">iges.org/grads/downloads?</a> That should work. <div>
GrADS won't work with udunits2, so that build set up by the 'apt-get install grads' command should be uninstalled. </div><div>--Jennifer</div><div><br></div><div><br></div><div><div><div><br><div><div>
On Jun 1, 2013, at 12:29 PM, Mohsen Soltani wrote:</div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Should I copy it in the same directory where the Grads itself located? Is it possible? </div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Any suggestion?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra">
<br clear="all">
<div><div dir="ltr"><span><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif";color:rgb(136,136,136)"></span></span><span><span dir="RTL" style="font-size:11pt;line-height:115%;font-family:"Arial","sans-serif";color:rgb(136,136,136)" lang="AR-SA"><span></span></span></span>--<div>
some are weather-wise some are otherwise!</div><div>--<br>Best Wishes, <br>(Mr.) Mohsen Soltani<br>Climatology Grad Student (M.Sc.),<br>Faculty of Geography, University of Tehran, Tehran, Iran<br>
Tel: (+98) 9119772934<br>e-mail: <a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a><br></div></div></div>
<br><br><div class="gmail_quote">On Sat, Jun 1, 2013 at 9:09 AM, M.Mahakur <span dir="ltr"><<a href="mailto:mmahakur@tropmet.res.in" target="_blank">mmahakur@tropmet.res.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
probably udunits not in proper path or missing..<br>
<div><div><br>
----- Original Message -----<br>
From: Mohsen Soltani <<a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a>><br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
Sent: Sat, 01 Jun 2013 21:03:22 +0530 (IST)<br>
Subject: [gradsusr] Can't open .nc file in Grads in Linux machine!<br>
<br>
Hi,<br>
<br>
I installed Grads in Linux - Ununtu version, using the following command:<br>
"sudo apt-get install grads" . And then, to find out where the Grads has<br>
been installed in Linux, in terminal I typed: "whereis grads", then the<br>
Grads directory appeared something like this: "usr/share... etc.". I copied<br>
the grads into my home directory. And then, typed "grads" in terminal and<br>
grads opened. Next, I did "!ls" and the following data were shown:<br>
*************************************************<br>
ga-> !ls<br>
grads <a href="http://hgt.nc/" target="_blank">hgt.nc</a> <a href="http://slp.nc/" target="_blank">slp.nc</a> <a href="http://air.nc/" target="_blank">air.nc</a> and other things...<br>
ga-><br>
*********************************<br>
And I wanted to open a NetCDF file, say: <a href="http://hgt.nc/" target="_blank">hgt.nc</a>. Therefore, I typed "sdfopen<br>
<a href="http://hgt.nc/" target="_blank">hgt.nc</a> ", but the following error appeared: (that's interesting to know<br>
that, when I typed sdfopen hg...., I hit the Tab, and the rest of the text<br>
appeared automatically):<br>
*********************************<br>
ga-> sdfopen <a href="http://hgt.nc/" target="_blank">hgt.nc</a><br>
Scanning self-describing file: <a href="http://hgt.nc/" target="_blank">hgt.nc</a><br>
Definition of "kt" in "/usr/share/xml/udunits/udunits2-common.xml", line<br>
90, overrides prefixed-unit "1000000 kilogram"<br>
Definition of "microns" in "/usr/share/xml/udunits/udunits2-common.xml",<br>
line 308, overrides prefixed-unit "1e-15 second"<br>
Definition of "ft" in "/usr/share/xml/udunits/udunits2-common.xml", line<br>
405, overrides prefixed-unit "1e-12 kilogram"<br>
Definition of "yd" in "/usr/share/xml/udunits/udunits2-common.xml", line<br>
413, overrides prefixed-unit "8.64e-20 second"<br>
Definition of "pt" in "/usr/share/xml/udunits/udunits2-common.xml", line<br>
634, overrides prefixed-unit "1e-09 kilogram"<br>
Definition of "at" in "/usr/share/xml/udunits/udunits2-common.xml", line<br>
1031, overrides prefixed-unit "1e-15 kilogram"<br>
Definition of "ph" in "/usr/share/xml/udunits/udunits2-common.xml", line<br>
1549, overrides prefixed-unit "3.6e-09 second"<br>
Definition of "nt" in "/usr/share/xml/udunits/udunits2-common.xml", line<br>
1556, overrides prefixed-unit "1e-06 kilogram"<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
gadsdf: Error parsing time units in SDF file.<br>
ga-><br>
*************************<br>
I tried to open another data:<br>
*********<br>
ga-> sdfopen <a href="http://slp.nc/" target="_blank">slp.nc</a><br>
Scanning self-describing file: <a href="http://slp.nc/" target="_blank">slp.nc</a><br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
Success<br>
ut_get_converter(): Couldn't get converter from seconds<br>
ut_get_converter(): Units in different unit-systems<br>
Success<br>
ut_get_converter(): Couldn't get converter from seconds<br>
ut_get_converter(): Units not convertible<br>
Success<br>
ut_get_converter(): Couldn't get converter from seconds<br>
gadsdf: Error parsing time units in SDF file.<br>
ga-><br>
********************************<br>
Again, another data:<br>
***********************<br>
ga-> sdfopen <a href="http://air.nc/" target="_blank">air.nc</a><br>
Scanning self-describing file: <a href="http://airtemperature.nc/" target="_blank">airtemperature.nc</a><br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
ut_get_converter(): Units not convertible<br>
gadsdf: Error parsing time units in SDF file.<br>
ga-><br>
***************<br>
As you see, none of them opened! Wondering why? Does anyone know what's<br>
going wrong? And what should I do to open a NetCDF (.nc) file in Grads in<br>
Linux machine?<br>
<br>
<br>
Mohsen<br>
--<br>
some are weather-wise some are otherwise!<br>
--<br>
Best Wishes,<br>
(Mr.) Mohsen Soltani<br>
Climatology Grad Student (M.Sc.),<br>
Faculty of Geography, University of Tehran, Tehran, Iran<br>
Tel: (+98) 9119772934<br>
e-mail: <a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a><br>
</div></div><div><div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br></div></div><div>
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></span>
</div>
<br></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>