<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000"><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;">Hi everybody</div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><br></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;">I am building a script to calculate the probability that the 10m windspeed wil surpass the 20 m/s mark (&gt;= 9 beafort), using the GEFS with all 20 members including the control.</div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><br></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;">It looks like this</div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><br></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;">'set e 1'</div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;">'define spd = sqrt(ugrd10m*ugrd10m+vgrd10m*vgrd10m)'</div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;">'define wind1 = const( const( maskout( spd, spd - 20), 1), 0.0, -u)'</div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><br></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'set e 2'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'define spd = sqrt(ugrd10m*ugrd10m+vgrd10m*vgrd10m)'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'define wind2 = const( const( maskout( spd, spd - 20), 1), 0.0, -u)'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">...</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'set e 21'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'define spd = sqrt(ugrd10m*ugrd10m+vgrd10m*vgrd10m)'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'define wind21 = const( const( maskout( spd, spd - 20), 1), 0.0, -u)'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'define windavg = (wind1 + wind2 + ... + wind21)/21'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'define percentage = windavg * 100'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">'d percentage'</span></div><div style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; padding-left: 30px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">When there are no members, nor control with data at or above the treshold of 20 m/s the field is constant (zero, 0) throughout the plot.</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">When plotting such a probability, I always hit that pesky "constant field = 0" message and the plot is filled with a solid red color, while actually it should just show me a map with my color defined at "0%" probability (which is plain white)</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">The script itsself works because when I lower the treshold, say to 5, I do get a normal plot with the colorscale i have set.</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">Is there a way to turn off the "constant field = 0" message &amp; the resulting red plot, so the map i programmed can be plotted, even when there are no members or control that reach or surpass the given treshold? Is there another possibility to circumvent this problem or a trick any1 can think of?</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">&nbsp;</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">I am looking forward to a reply from the grads-community.</span></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><br></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><br></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;">Best regards,</div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;"><br></div><div style="font-size: 13.3333px; background-color: #fdfdfd;" data-mce-style="font-size: 13.3333px; background-color: #fdfdfd;">Jen</div><div><br></div></div></body></html>