[gradsusr] Maximum Updraft Velocity in Previous Hour

Moustabchir Rachid rachid.moustabchir at gmail.com
Mon Jun 24 21:44:51 EDT 2019


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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190625/7deaeed1/attachment-0001.html>


More information about the gradsusr mailing list