[gradsusr] Hello to all users of Grads

avi kojokro kojokroavi at gmail.com
Sat Jul 27 04:34:45 EDT 2013


To  Muthuvel Chelliah - NOAA Federal

I changed the names  max  and  min   to  mx  and mn  ,  But the problem
remains, the script does not work correctly.
I am attaching the script with the change ,and Screenshot.


2013/7/26 Muthuvel Chelliah - NOAA Federal <muthuvel.chelliah at noaa.gov>

> its probably not a good idea to use variable names like max, ave, aave,
> etc.
> for user defined variables, since these have  special meanings in grads.
> Why not use other names!!
>
>
> On Fri, Jul 26, 2013 at 11:27 AM, Colleen Mikovitz <
> jennifer.c.mikovitz at nasa.gov> wrote:
>
>> Avi,
>>
>> Just going line by line from your script on the Grads prompt, it looks
>> like the problem is here:
>>
>> 'define max=max(hgtprs,e=1,e=21)'
>> 'd max'
>> m1=subwrd(result,4)
>>
>> "d max" is what you are plotting in the Grads window, there is no result
>> to assign your script variable m1.  The same probably goes for m2, thus it
>> fails  when you try to use them in vrange.  I'm not sure what your intent
>> is, so I'm not sure how to help more.
>>
>> Colleen
>>
>> On Jul 26, 2013, at 8:02 AM, avi kojokro wrote:
>>
>> > First I work with Windows, and the version of Grads 2.0.a9, I'm pretty
>> new to Grads.
>> > I have a problem with this script, is not working and I do not
>> understand what my mistake,I'd love if someone will help me.
>> > Attaching the script and screenshot of Grads and the error it registers
>> to me.
>> >
>> > Avi.
>> > <ensstd1.txt><1.png>_______________________________________________
>> > 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
>>
>
>
>
> --
>
> ------------------------------------------------------------------
> Dr.Muthuvel Chelliah, eMail:Muthuvel.Chelliah at noaa.gov
>
> Rm.3008, Climate Prediction Center, Ph:(301) 683-3393
> NCEP/NWS/NOAA/U.S.Dept.of Commerce,
> 5830, University Research Court, NCWCP
> College Park, MD 20740.
>
>
> _______________________________________________
> 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/20130727/e97edb17/attachment-0003.html 
-------------- next part --------------










'reinit'
'reset'
'set grads off'
'set xsize 650 500'
'set mpdset hires'
'set display color white'
prompt 'Enter date yyyymmdd '
pull date
prompt 'Enter hour hh '
pull hour
f= 'http://nomads.ncep.noaa.gov:9090/dods/gens_bc/gens'date'/gep_all_'hour'z'
'sdfopen 'f
'set parea 0.5 10.5 6.76 8.48'
'set gxout contour'
'set lat 32'
'set lon 35'
'set lev 500'
'set t 1 last'
'define mx=max(hgtprs,e=1,e=21)'
'd mx'
m1=subwrd(result,4)
'define mn=min(hgtprs,e=1,e=21)'
'd mn'
m2=subwrd(result,4)
'set ylint 20'
'set vrange 'm2-1' 'm1+1
'define a=ave(hgtprs,e=1,e=21)'
'define c=sqrt(ave(pow(a-hgtprs,2),e=1,e=21))'
'set gxout bar'
'set bargap 50'
'set ccolor 2'
'd a+c;a-c'
'set gxout line'
'set ccolor 1'
'set cmark 0'
'set cthick 15'
'd a'
'set string 8'
'set strsiz 0.2'
'draw string 0.6 8.33 H500 ensemble & standard deviation '

'printim std.png x1000 y700'
'end'



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 150829 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130727/e97edb17/attachment-0003.png 


More information about the gradsusr mailing list