[gradsusr] create control file for grib file
Wesley Ebisuzaki - NOAA Federal
wesley.ebisuzaki at noaa.gov
Tue Jul 19 13:28:08 EDT 2016
Bimal,
Some questions:
(1) What operating system and version of perl? Try perl --version.
(2) Did you use a full path name when running grib2ctl.pl? (Are you
running an old old version by mistake?)
(3) Did you get the same error message when using the full pathname of
grib2ctl.pl and with no argument?
(4) Is wgrib installed and on your path?
Grib2ctl.pl on the web site was last changed March 2014, so there hasn't
been any recent changes.
Wesley
On Tue, Jul 19, 2016 at 11:24 AM, Bimal Gyawali <bml.gya at gmail.com> wrote:
> I downloaded grib2ctl.pl using wget. But still it shows same error.
>
> *Bimal Gyawali*
>
>
>
>
>
> * Graduate Research Assistant Department of Physical and Environment
> Science Natural Resources Center Texas A&M University-Corpus Christi Corpus
> Christi, TX 78412 Tel: 435-881-3603 <435-881-3603>*
>
> On Tue, Jul 19, 2016 at 10:13 AM, Bimal Gyawali <bml.gya at gmail.com> wrote:
>
>> Jeff,
>> I just did copy and paste. I will try the way you said. I hope the error
>> will not occur.
>> Thank you.
>>
>> *Bimal Gyawali*
>>
>>
>>
>>
>>
>> * Graduate Research Assistant Department of Physical and Environment
>> Science Natural Resources Center Texas A&M University-Corpus Christi Corpus
>> Christi, TX 78412 Tel: 435-881-3603 <435-881-3603>*
>>
>> On Tue, Jul 19, 2016 at 10:08 AM, Jeff Duda <jeffduda319 at gmail.com>
>> wrote:
>>
>>> Bimal,
>>> There must be a bug in the current version of that code, or you copied
>>> it incorrectly. If you used copy+paste to obtain the code, I would instead
>>> try simply using wget or right clicking and selecting "save link as" to
>>> make sure you copied the code correctly. If you did that, then the code has
>>> a bug. I am not knowledgeable with PERL and so I may not be able to figure
>>> out the bug in such a script, but the person who writes/manages that
>>> utility, Wesley Ebisuzaki, visits this forum regularly, and his contact
>>> information can be found online. I might suggest contacting him for further
>>> assistance.
>>>
>>> Good luck.
>>>
>>> Jeff
>>>
>>> On Tue, Jul 19, 2016 at 9:09 AM, Bimal Gyawali <bml.gya at gmail.com>
>>> wrote:
>>>
>>>> Hello Jeff,
>>>> Thank you for your email. I tried to create control file using the
>>>> following command:
>>>> grib2ctl.pl grib_file >grib_file.ctl
>>>> but it gives the following error:
>>>>
>>>> Unexpected else. Incorrect if block nesting.
>>>>
>>>> Error occurred scanning line 258.
>>>>
>>>> I dont know why the error is occurred. would you please help me to
>>>> figure it out?
>>>>
>>>> Thank you.
>>>>
>>>>
>>>>
>>>>
>>>> *Bimal Gyawali*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> * Graduate Research Assistant Department of Physical and Environment
>>>> Science Natural Resources Center Texas A&M University-Corpus Christi Corpus
>>>> Christi, TX 78412 Tel: 435-881-3603 <435-881-3603>*
>>>>
>>>> On Mon, Jul 18, 2016 at 3:46 PM, Jeff Duda <jeffduda319 at gmail.com>
>>>> wrote:
>>>>
>>>>> Use the grib2ctl.pl script available at this link:
>>>>> ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib.scripts/grib2ctl.pl. You
>>>>> must have the wgrib utility installed to use it.
>>>>>
>>>>> There is a similar script for GRIB2 data called g2ctl as well. It
>>>>> requires wgrib2 to be installed.
>>>>>
>>>>> Jeff Duda
>>>>>
>>>>> On Mon, Jul 18, 2016 at 3:38 PM, Bimal Gyawali <bml.gya at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hello All,
>>>>>> How can I create control file for grib file using grads? Please let
>>>>>> me know.
>>>>>> Thank you.
>>>>>>
>>>>>> *Bimal Gyawali*
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> * Graduate Research Assistant Department of Physical and Environment
>>>>>> Science Natural Resources Center Texas A&M University-Corpus Christi Corpus
>>>>>> Christi, TX 78412 Tel: 435-881-3603 <435-881-3603>*
>>>>>>
>>>>>> _______________________________________________
>>>>>> gradsusr mailing list
>>>>>> gradsusr at gradsusr.org
>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jeff Duda
>>>>> Post-doctoral research associate
>>>>> University of Oklahoma School of Meteorology
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>> Post-doctoral research associate
>>> University of Oklahoma School of Meteorology
>>>
>>> _______________________________________________
>>> 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/20160719/411aa5eb/attachment.html
More information about the gradsusr
mailing list