[gradsusr] m/s into mph

Chorley Weather weatherstu at chorleyweather.com
Thu Apr 30 05:16:43 EDT 2015


On 30-04-2015 01:24, Bill Reilly wrote:
> Stuart:
> 
> 'define u10  = const(ugrd10m*2.23694,0,-u)'
> 'define v10  = const(vgrd10m*2.23694,0,-u)'
> 
> I hope this helps.
> 
> Bill
> 
> --
> 
> Bill Reilly
> (+34) 686-110-748
> 
> bill at passageweather.com
> www.passageweather.com
> 
> bill at brwebworks.com
> www.brwebworks.com
> 
> On 4/30/2015 12:50 AM, Chorley Weather wrote:
>> Hi guys,
>> 
>> Does anybody know how to convert the m/s wind data in mph. I've 
>> attached
>> a script:
>> 
>> 'define u10  = const(ugrd10m,0,-u)'
>> 'define v10  = const(vgrd10m,0,-u)'
>> 'define wind = mag(u10,v10)'
>> 'set gxout shaded'
>> 'set csmooth on'
>> 'set clevs 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
>> 24 25 26 27 28 29 30'
>> 'set ccols 80 82 84 86 88 20 22 22 24 26 28 30 32 33 34 35 36 37 38 39
>> 40 41 42 44 46 48 49 51 52 53 54'
>> 'd wind'
>> 
>> 
>> 'set gxout contour'
>> 'set ccolor 1'
>> 'set cint 5'
>> 'set clopts 1'
>> 'set clab masked'
>> *'d wind'
>> 
>> 'set gxout stream'
>> 'set ccolor 1'
>> 'd u10;v10'
>> 
>> 'cbarn'
>> 
>> 'q dims'
>> times  = sublin(result,5)
>> hub = subwrd(times,6)
>> 
>> 'set strsiz 0.12'
>> 'set string 1 r 3 0' ; 'draw string 9.40 0.6 ChorleyWeather.com (c)'
>> 
>> 'set strsiz 0.12'
>> 'set string 1 r 6 90' ; 'draw string 9.8 5.6 m/s'
>> 'set string 1 r 6 0' ; 'draw string 9.27 0.2 Valid: 'hub
>> 'set string 1 l 6 0' ; 'draw string 0.30 0.2 GFS model run: 'huh
>> 
>> * Draw Labels at the top of the page
>> 'set string 1 r 11 0'
>> 'set strsiz 0.14'
>> 'set string 1 l 6 0' ; 'draw string 0.30 0.6 Wind & Direction'
>> 
>> 
>> Many thanks,
>> 
>> Stuart.
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
Hi Bill,

Worked a treat, thank you very much.

Best regards,

Stuart.
-- 
Chief Forecaster & Owner


More information about the gradsusr mailing list