[gradsusr] Opening a Grb2 File
Jeff Duda
jeffduda319 at gmail.com
Thu Jan 16 21:27:49 EST 2014
Use gribmap to make the index file. I don't know what you are attempting
by copying a text file. Gribmap is a Grads utility, so look for it in your
GADDIR location.
gribmap -e -i (control file)
Jeff Duda
On Thu, Jan 16, 2014 at 7:52 PM, Ethan Sacoransky <ethan.saco at me.com> wrote:
> You guys are the best. That worked. Now, just need to copy and paste into
> a text document in order to convert into an index file. Only problem is
> that control files will not open on a Mac OSX 10.7.5. Does anybody know of
> any programs that can do this?
> Ethan
>
> On 2014-01-16, at 8:29 PM, Eric Altshuler wrote:
>
> Another way to make sure the shell finds the g2ctl script is to execute it
> using either an absolute path, for example:
>
> /path/to/scripts/g2ctl
>
> or with a relative path, e.g. if g2ctl is in the current directory:
>
> ./g2ctl
>
> Also, make sure the file 'g2ctl' has owner execute permission. Sometimes,
> when downloading an executable file from the internet, the local file does
> not have execute permission. To make sure it does, do this:
>
> chmod u+x g2ctl
>
> There are other possible issues, such as where perl is installed on your
> system. If it's not where the script is looking for it, there will be an
> error. Hopefully this won't happen.
>
> Eric
>
> ------------------------------
> *From: *"Aaron @ LSC Perry" <Aaron.Perry at lsc.vsc.edu>
> *To: *"GrADS Users Forum" <gradsusr at gradsusr.org>
> *Sent: *Thursday, January 16, 2014 7:45:22 PM
> *Subject: *Re: [gradsusr] Opening a Grb2 File
>
> Ethan,
>
> You must first tell your bash what g2ctl is and where it is located.
>
> Open up a new terminal and type "gedit .bashrc"
>
> >From there, set an alias for g2ctl (including the absolute path to where
> it's located in your filesystem)
>
> Then exit out of the terminal and try running g2ctl again and see if it
> works.
>
>
> Onward and Upward,
>
> Aaron D. Perry
> Boston, MA
> Lyndon State College '16
> Twitter: @AaronPerryLSC <https://twitter.com/AaronPerryLSC>
> Mobile: 617-780-4312
> ------------------------------
> *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on
> behalf of Ethan Sacoransky [ethan.saco at me.com]
> *Sent:* Thursday, January 16, 2014 7:05 PM
> *To:* GrADS Users Forum
> *Subject:* Re: [gradsusr] Opening a Grb2 File
>
> Hey Eric,
> Unfortunately, this command is still not working in a basic terminal
> shell. Here is what I put through: 'g2ctl
> grib2_gfs_4_20140112_1200_009.grb2 > grib2_gfs_4_20140112_1200_009.ctl' and
> this is the error I am getting: '-bash: g2ctl: command not found'. Any
> thoughts on this would be much appreciated.
> Thanks,
> Ethan
> On 2014-01-16, at 6:52 PM, Eric Altshuler wrote:
>
> Hi Ethan,
>
> The g2ctl is a perl script, not a grads command. You have to run it from
> the shell command line, not inside grads.
>
> Best regards,
>
> Eric L. Altshuler
> Research Scientist
> Center for Ocean-Land-Atmosphere Studies
> 253 Research Hall, Mail Stop 6C5
> George Mason University
> 4400 University Drive
> Fairfax, VA 22030 USA
>
> E-mail: ela at cola.iges.org
> Phone: (703) 993-5725
> Fax: (703) 993-5770
>
>
> ------------------------------
> *From: *"Ethan Sacoransky" <ethan.saco at me.com>
> *To: *"GrADS Users Forum" <gradsusr at gradsusr.org>
> *Sent: *Thursday, January 16, 2014 6:50:55 PM
> *Subject: *Re: [gradsusr] Opening a Grb2 File
>
> Hi Aaron,
> I am attempting to carry out this process by typing in 'g2ctl
> gfs_4_20140112_1200_009.grb2 > gfs_4_20140112_1200_009.ctl'. I got an error
> saying 'unknown command: g2ctl'. Any thoughts on this? Thanks so much.
>
> Ethan
>
> On 2014-01-16, at 6:39 PM, Perry, Aaron @ LSC wrote:
>
> > Hi Ethan,
> >
> > In order to open a grib2 file in GrADS, a control (.ctl) and an index
> (.idx) file must exist.
> >
> > To create a .ctl file with g2ctl, use this command in your terminal:
> >
> > g2ctl grib2_file.grb2 > grib2_file.ctl
> >
> > Then to create the .idx file with gribmap, use this command:
> >
> > gribmap -i grib2_file.ctl
> >
> >
> > Onward and Upward,
> >
> > Aaron D. Perry
> > Boston, MA
> > Lyndon State College '16
> > Twitter: @AaronPerryLSC
> > Mobile: 617-780-4312
> >
> > ________________________________________
> > From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on
> behalf of Ethan Sacoransky [ethan.saco at me.com]
> > Sent: Thursday, January 16, 2014 6:23 PM
> > To: gradsusr at gradsusr.org
> > Subject: [gradsusr] Opening a Grb2 File
> >
> > Good evening everyone,
> >
> > In an attempt to open up a grib2 file, I have downloaded and unpacked
> the wgrib2 tar file and copied the g2ctl script onto a text edit file. When
> I type in the command 'run g2ctl gfs_4_20140112_1200_009.grb2' I get the
> prompt, "error opening script file: g2ctl". Any thoughts on why this would
> be?
> >
> > Ethan
> >
> >
> > _______________________________________________
> > 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
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140116/4bf4299f/attachment.html
More information about the gradsusr
mailing list