Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-windDirToCompass

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  windDirToCompass   Lines 2083-2095 (12 lines)Added: 2021-02-11 file  utils.php   Last mod: Fri 2021-05-14 21:45:07

function windDirToCompass $deg )
        {
#-k     geo
#-      Given the wind direction in $deg degrees, return a string for human-understandable direction
#-d     2/11/21  - Added

        
$windDegree = array ( "N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW","N" );

        
$dir round($deg/22.5,0);
        return 
$windDegree[$dir];
        }

?>
?>