[gradsusr] Maximum Updraft Velocity in Previous Hour
jeffduda319 at gmail.com
Wed Jul 3 13:05:56 EDT 2019
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.
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
> 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:
>> So I use the following commands to create this alias:
>> $* cat *201104270600_wrfout_arw_d01.ctl* | sed
>> 's/MAXUVV400_1000mb/MAXUVV400_**1000mb=>MAXUVV400/g' > *
>> $ mv new_wrfout_arw_d01.ctl 201104270600_wrfout_arw_d01.ctl
>> In this case if we look inside * 201104270600_wrfout_arw_d01.ctl*, we
>> *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'
>> On Mon, 24 Jun 2019 at 20:31, Moustabchir Rachid <r.moustabchir at uiz.ac.ma>
>>> 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
>>> 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
>>> Thanking you most sincerely for your time and consideration.
>>> Dr. Rachid Moustabchir
>>> Ibn Zohr University
>>> Agadir Morocco
>> gradsusr mailing list
>> gradsusr at gradsusr.org
> gradsusr mailing list
> gradsusr at gradsusr.org
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Division
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gradsusr