[gradsusr] Maximum Updraft Velocity in Previous Hour

Moustabchir Rachid rachid.moustabchir at gmail.com
Sat Jul 6 19:17:45 EDT 2019


William and Jeff, thank you very much for these good ideas.

On Wed, 3 Jul 2019 at 18:08, Jeff Duda <jeffduda319 at gmail.com> wrote:

> Also, you can get a quick sense of what the "plottable" variable names are
> just by typing 'q file' and examining the list. It will perform the
> truncation and tell you what you need to type in.
>
> Jeff Duda
>
> On Wed, Jul 3, 2019 at 9:45 AM L.B. <bcbass2989 at gmail.com> wrote:
>
>> A much simpler solution that I came across years ago was that GrADS only
>> recognizes variables name with 15 or fewer characters. So, I just used the
>> same variable but only typed out the first 15 characters of the variable
>> name and it worked for me. In your case,  'd MAXUVV400_1000mb'  would
>> become:  'd MAXUVV400_1000m' . Try that and see if it works.
>>
>> *-------*
>> William (L.B.) LaForce IV
>> Meteorologist
>>
>>
>> On Wed, Jul 3, 2019 at 6:45 AM Moustabchir Rachid <
>> rachid.moustabchir at gmail.com> wrote:
>>
>>> Dear grads users!
>>>
>>> After a long search in google I found that a solution was already given
>>> in your website. It is an issue related to  the fact that grads does not
>>> support long variable names. To solve it: I provided in control file an
>>> "alias" variable name that follows grads rules like:
>>> MAXUVV400_1000mb=>MAXUVV400
>>> So I use the following commands to create this alias:
>>>
>>> $* cat *201104270600_wrfout_arw_d01.ctl*  | sed
>>> 's/MAXUVV400_1000mb/MAXUVV400_**1000mb=>MAXUVV400/g' > *
>>> new_wrfout_arw_d01.ctl
>>> $ mv new_wrfout_arw_d01.ctl    201104270600_wrfout_arw_d01.ctl
>>>
>>> In this case if we look inside * 201104270600_wrfout_arw_d01.ctl*, we
>>> get:
>>>
>>>
>>> *MAXUVV400_1000mb=>MAXUVV400* 0,108,40000,100000 0,2,220,2 ** 400-1000
>>> mb above ground Hourly Maximum Of Upward Vertical Velocity In The Lowest
>>> 400hPa [m/s]
>>>
>>>
>>>  This mean that the alias between the two variables was done correctly,
>>> and in the script I use  'd MAXUVV400' instead of 'd MAXUVV400_1000mb'
>>>
>>> Thanks.
>>> Rachid
>>>
>>> On Mon, 24 Jun 2019 at 20:31, Moustabchir Rachid <
>>> r.moustabchir at uiz.ac.ma> wrote:
>>>
>>>> Dear Sir!
>>>>
>>>> When I try to plot Maximum Updraft Velocity in Previous Hour with a
>>>> script using 'd MAXUVV400_1000mb' , grads return an error:
>>>>
>>>> Syntax Error: Invalid Operand
>>>>
>>>> 'maxuvv400_1000mb' not a variable or function name
>>>>
>>>> Error ocurred at column 1
>>>>
>>>> DISPLAY error: Invalid expression
>>>>
>>>> Expression = maxuvv400_1000mb
>>>>
>>>>
>>>> in the index file of the grib2 file I can find the MAXUVV400_1000mb
>>>> varible:
>>>> MAXUVV400_1000mb 0,108,40000,100000 0,2,220,2 ** 400-1000 mb above
>>>> ground Hourly Maximum Of Upward Vertical Velocity In The Lowest 400hPa
>>>> [m/s]
>>>>
>>>>
>>>> Thanking you most sincerely for your time and consideration.
>>>>
>>>>
>>>> Cordially,
>>>>
>>>>
>>>>
>>>> Dr. Rachid Moustabchir
>>>>
>>>> Ibn Zohr University
>>>>
>>>> Agadir Morocco
>>>>
>>>>
>>>> _______________________________________________
>>> 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, Research Scientist
> University of Colorado Boulder
> Cooperative Institute for Research in Environmental Sciences
> NOAA/OAR/ESRL/Global Systems Division
> Boulder, CO
> _______________________________________________
> 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/20190707/517cd259/attachment.html>


More information about the gradsusr mailing list