Example #1
0
 /**
  * Gets the average reported wave direction
  *
  * @access public
  * @param integer $dir Degree of direction
  * @return array If reported returns degree/compass direction
  */
 function getMeanWaveDirection($dir)
 {
     $ary = array("degree" => "", "compass" => "");
     if ($dir != "MM") {
         $ary['degree'] = $dir;
         $ary['compass'] = Conversions::getCompassDirection($dir);
     }
     return $ary;
 }