[gradsusr] Scripting in GRaDS
Jeff Lake
admin at michiganwxsystem.com
Mon Jan 9 16:06:54 EST 2012
soooooooooo close ...
* COMMON
'clear shp'
'set gxout shp'
'set mproj latlon'
'set ccols 0 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49'
'set clevs 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42
44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90
92 94 96 98 100'
'set shp -poly rtma_RH'
'd (pow(10, (1779.75 * ((DPT2m-273) - (TMP2m-273)) / ((237.3 +
(DPT2m-273)) * (237.3 + (TMP2m-273))) + 2)))'
'quit'
I get the dreaded Cannot contour grid - all undefined values
-Jeff Lake
MichiganWxSystem.com
WeatherMichigan.net
TheWeatherCenter.net
GRLevelXStuff.com
On 1/9/2012 2:10 PM, Rowell, Mason D. wrote:
> Jeff,
>
> Does this equation fail to provide you with physically relevant RH numbers, or does grads not accept the format? I'm unfamiliar with the formula. For a less precise route, I would use dew_c, convert to kelvin and use inverse CC equation to find find es, and divide e (from CC equation and t_c, converted to kelvin) by es. Use the pressure and these to instead get w/ws for more accurate result.
>
> Mason
> ________________________________________
> From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Jeff Lake [admin at michiganwxsystem.com]
> Sent: Monday, January 09, 2012 4:34 AM
> To: Grads
> Subject: [gradsusr] Scripting in GRaDS
>
> Greetings ..
> I have searched hi and low for someone else that has been in my situation.
> I need to plot relative humidity, wind chill and heat index..
> I have the needed perimeters from the GRIB data (Temp, Dewpt,& Wind speed)
> now if this php, I could do it all day ...
> I just can't seem to get a handle on the scripting language ..
>
> anybody want to lend a hand converting the following??
>
> rh = pow(10, (1779.75 * (dew_c - temp_c) / ((237.3 + dew_c) * (237.3 +
> temp_c)) + 2));
>
> --
> -Jeff Lake
> MichiganWxSystem.com
> WeatherMichigan.net
> TheWeatherCenter.net
> GRLevelXStuff.com
>
> _______________________________________________
> 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
>
More information about the gradsusr
mailing list